diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2021-01-23 19:07:55 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2021-01-23 19:12:57 +0100 |
commit | 790cb5cba8332dea7d0b013cef7644e71402fe36 (patch) | |
tree | 6c8100337d443febe76b4154c570ba8922da50f0 /media-gfx/xpaint | |
parent | sys-devel/gcc-config: bump up to 2.3.3 (diff) | |
download | gentoo-790cb5cba8332dea7d0b013cef7644e71402fe36.tar.gz gentoo-790cb5cba8332dea7d0b013cef7644e71402fe36.tar.bz2 gentoo-790cb5cba8332dea7d0b013cef7644e71402fe36.zip |
media-gfx/xpaint: Drop IUSE=jpeg2k, switch to media-libs/libjpeg-turbo
jpeg2k was blocking CVE-2018-21010 security cleanup, good riddance.
Bug: https://bugs.gentoo.org/735592
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-gfx/xpaint')
-rw-r--r-- | media-gfx/xpaint/xpaint-2.10.2-r1.ebuild | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/media-gfx/xpaint/xpaint-2.10.2-r1.ebuild b/media-gfx/xpaint/xpaint-2.10.2-r1.ebuild new file mode 100644 index 000000000000..dc92f046b92f --- /dev/null +++ b/media-gfx/xpaint/xpaint-2.10.2-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop toolchain-funcs + +DESCRIPTION="Image editor with tiff, jpeg and png support" +HOMEPAGE="http://sf-xpaint.sourceforge.net/" +SRC_URI="mirror://sourceforge/sf-xpaint/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="pgf tiff" +# jpeg2k disabled for blocking media-libs/openjpeg:0 security cleanup, bug 735592 + +RDEPEND=" + media-libs/fontconfig + media-libs/freetype:2 + media-libs/libpng:0= + x11-libs/libICE + x11-libs/libX11 + >=x11-libs/libXaw3dXft-1.6.2c[unicode] + x11-libs/libXext + x11-libs/libXft + x11-libs/libXmu + x11-libs/libXpm + x11-libs/libXt + sys-libs/zlib + media-libs/libjpeg-turbo:= + pgf? ( media-libs/libpgf ) + tiff? ( + media-libs/jbigkit:0= + media-libs/tiff:0 + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-devel/bison + sys-devel/flex + virtual/pkgconfig +" + +src_prepare() { + default + sed -i -e 's/-O3 -s//g' util/Makefile || die +} + +src_configure() { + econf \ + $(use_enable tiff) \ + --disable-libopenjpeg +} + +src_compile() { + # clean up + emake clean + emake -C util clean + + # parallel make still fails sometimes + emake substads + emake xpaint.1 + + default + emake \ + WITH_PGF="$(usex pgf "yes" "no")" \ + CC="$(tc-getCC)" \ + CXX="$(tc-getCXX)" \ + -C util +} + +src_install() { + default + emake \ + WITH_PGF="$(usex pgf "yes" "no")" \ + DESTDIR="${ED}" \ + -C util install + doicon icons/xpaint.svg + make_desktop_entry "${PN}" + find "${D}" -name '*.la' -type f -delete || die + find "${D}" -name '*.a' -type f -delete || die +} |