diff options
author | 2021-03-08 10:36:30 +0000 | |
---|---|---|
committer | 2021-03-08 10:44:48 +0000 | |
commit | 754fd8465bd589b63a735a00efa67084241788be (patch) | |
tree | 6481f92a521eea60f55c346643af6d5262192c76 /media-gfx/pngcrush/pngcrush-1.8.13.ebuild | |
parent | dev-python/pillow: Stabilize 8.1.2 ppc, #774387 (diff) | |
download | gentoo-754fd8465bd589b63a735a00efa67084241788be.tar.gz gentoo-754fd8465bd589b63a735a00efa67084241788be.tar.bz2 gentoo-754fd8465bd589b63a735a00efa67084241788be.zip |
media-gfx/pngcrush: always use system libs
pngcrush comes with bundled libpng-1.6.32 and zlib-1.2.11. The former is
outdated and contains several known security vulnerabilities, the latter
causes build failures on some architectures which standalone sys-libs/zlib
does support. And why do we need bundled libraries for something like this
anyway, especially given it uses two different source tarballs?
Closes: https://bugs.gentoo.org/774417
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'media-gfx/pngcrush/pngcrush-1.8.13.ebuild')
-rw-r--r-- | media-gfx/pngcrush/pngcrush-1.8.13.ebuild | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/media-gfx/pngcrush/pngcrush-1.8.13.ebuild b/media-gfx/pngcrush/pngcrush-1.8.13.ebuild index a84cc5c727f0..ba4efcf233b3 100644 --- a/media-gfx/pngcrush/pngcrush-1.8.13.ebuild +++ b/media-gfx/pngcrush/pngcrush-1.8.13.ebuild @@ -2,29 +2,23 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 + inherit toolchain-funcs DESCRIPTION="Portable Network Graphics (PNG) optimizing utility" HOMEPAGE="https://pmt.sourceforge.io/pngcrush/" -SRC_URI="system-libs? ( mirror://sourceforge/pmt/${P}-nolib.tar.xz ) - !system-libs? ( mirror://sourceforge/pmt/${P}.tar.xz )" +SRC_URI="mirror://sourceforge/pmt/${P}-nolib.tar.xz" LICENSE="pngcrush" SLOT="0" KEYWORDS="~alpha amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" -IUSE="+system-libs" -RDEPEND=" - system-libs? ( - media-libs/libpng:0= - sys-libs/zlib:= - )" +RDEPEND="media-libs/libpng:0= + sys-libs/zlib:=" DEPEND="${RDEPEND} app-arch/xz-utils" -pkg_setup() { - use system-libs && S+="-nolib" -} +S="${WORKDIR}"/${P}-nolib src_compile() { emake \ |