diff options
Diffstat (limited to 'media-gfx/pngcrush/pngcrush-1.7.17.ebuild')
-rw-r--r-- | media-gfx/pngcrush/pngcrush-1.7.17.ebuild | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/media-gfx/pngcrush/pngcrush-1.7.17.ebuild b/media-gfx/pngcrush/pngcrush-1.7.17.ebuild index 7670a110d317..fae481708095 100644 --- a/media-gfx/pngcrush/pngcrush-1.7.17.ebuild +++ b/media-gfx/pngcrush/pngcrush-1.7.17.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/pngcrush/pngcrush-1.7.17.ebuild,v 1.1 2011/09/16 16:44:39 mattst88 Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/pngcrush/pngcrush-1.7.17.ebuild,v 1.2 2011/09/18 08:41:31 ssuominen Exp $ EAPI=4 inherit toolchain-funcs @@ -16,13 +16,21 @@ SLOT="0" KEYWORDS="~alpha ~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" IUSE="" -RDEPEND=">=media-libs/libpng-1.2.40 +RDEPEND=">=media-libs/libpng-1.4 sys-libs/zlib" DEPEND="${RDEPEND} app-arch/xz-utils" S=${WORKDIR}/${MY_P} +pkg_setup() { + if has_version ">=media-libs/libpng-1.5"; then + local msg="Sorry, but libpng 1.5 is not yet supported. See bug 356127" + eerror "${msg}" + die "${msg}" + fi +} + src_prepare() { cp -f "${FILESDIR}"/Makefile . tc-export CC |