From b62381b18b4bf2e919cbfbae11ebcad391e38e77 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 16 Dec 2022 03:35:12 +0000 Subject: gentoo auto-resync : 16:12:2022 - 03:35:12 --- media-gfx/graphicsmagick/Manifest | 4 +- .../graphicsmagick/graphicsmagick-1.3.38-r3.ebuild | 161 --------------------- .../graphicsmagick/graphicsmagick-1.3.38-r5.ebuild | 161 +++++++++++++++++++++ .../graphicsmagick/graphicsmagick-9999-r1.ebuild | 160 ++++++++++++++++++++ .../graphicsmagick/graphicsmagick-9999.ebuild | 160 -------------------- 5 files changed, 323 insertions(+), 323 deletions(-) delete mode 100644 media-gfx/graphicsmagick/graphicsmagick-1.3.38-r3.ebuild create mode 100644 media-gfx/graphicsmagick/graphicsmagick-1.3.38-r5.ebuild create mode 100644 media-gfx/graphicsmagick/graphicsmagick-9999-r1.ebuild delete mode 100644 media-gfx/graphicsmagick/graphicsmagick-9999.ebuild (limited to 'media-gfx/graphicsmagick') diff --git a/media-gfx/graphicsmagick/Manifest b/media-gfx/graphicsmagick/Manifest index 0657fc1b8f10..1804b8a540ef 100644 --- a/media-gfx/graphicsmagick/Manifest +++ b/media-gfx/graphicsmagick/Manifest @@ -3,6 +3,6 @@ AUX graphicsmagick-1.3.36-flags.patch 2009 BLAKE2B 1d58f03cfeac9be92e2e85a2b6274 AUX graphicsmagick-1.3.38-configure-bashism.patch 1203 BLAKE2B 0aa4a6cccd1f7e392446db33446b706df0e5a82b77abba3901ea7e8190ed592a4ce17b0544f08b59900cd48b3e57e029862ef94120ceca75536959fba15b9f7f SHA512 e45bc482381e4c58cd854d9d28b8a3a7bf83bc707f5d3a6290f28b1b333c84778c5e185f0a637348a2fbaac56790d6b9ddee1f2ee660ba67912300039d872330 DIST GraphicsMagick-1.3.38.tar.xz 5958352 BLAKE2B 132c8b2303690dbe84b0e9ab33db0c0861845ef0260915e33197912dbcae02ae70c27bce634cfe0ab6b739ef6f3e828cbea9043fc90be993fb2c4a5e33e20ee9 SHA512 478f9e2907d4cb1099b0cbd1a73e4ab58aef94edf6cb1636ce48a378084ec1671599fd4f369455e5af898e94d1386f7149f6933b7c668027a6f6952bc763ec3a DIST GraphicsMagick-1.3.38.tar.xz.sig 119 BLAKE2B 166b7bb6de30af22d1f2317812f76dee43dd69c5557613deea35de3767624466c07001fe029ec9d33d0c61ed2fe5ca3f48bf435853374c722963a1293bfaa7a1 SHA512 c6dfee7e4b63b646460f9045ca5c8f3105d1a761ec3cd3471b53293178ed9a963884539c8026d934ce1915654d517a9b30232d7260a13f6d7dbeb5a592485b09 -EBUILD graphicsmagick-1.3.38-r3.ebuild 3886 BLAKE2B b505f1bee7f36743d1e3e1da903bcc7bd2de92127b6c366dfd397a29a4b783395f61200e62ece858b322186703c9adcd1a92ce11e51ead10525ed81e9c482635 SHA512 8831c4252414b3712a53bd82125d719baaa58470d32de45781effc289c6147c7afb568f4730accfa17cc1fb78d3737613c517f7cdba979ea1839c0bd8a4a9b68 -EBUILD graphicsmagick-9999.ebuild 3850 BLAKE2B bb31d53b6a222d7ce4785880415dbdf17ca1ec4d2dbb2f8feebc63cec4316dd85aa33c5896d307500898fd91d7eb143d1910ab21acf690b13978536d515d8883 SHA512 0e15cfb1b4ac09717c5951a9f9e96d94a912e73f3f625ee02018bfa34f2b35bbf8a9865226542ea32418df9734872b73780aa067e04737c4171c687c792475bf +EBUILD graphicsmagick-1.3.38-r5.ebuild 3888 BLAKE2B 887dae54344fa0d5cf2ce66d4d3c42ec43bdc57af36520dc1203ba4e4b5d2eedaa7508657da8b3c68969318a1ff0ca78ff6c17972113a00ce34bcd03acae3563 SHA512 7b9f180f034b966e271591b76b368d2155afa7e2c7bb74c22bbf4b68c9349990dd3f004c58cda6a17e90476f96541197a54ed740eb6db5b5e38c14d287ca02c8 +EBUILD graphicsmagick-9999-r1.ebuild 3852 BLAKE2B 2df8ecfb5aee652210749fb39157764eef5b8bbe3d4cfec33cd56c6cc64080422c275a65304a900140e5882c5dca9b95999ef3c7b41c6bcd912f97fd126dbdea SHA512 7089692079fee221e90d25bf590e77214af1ccc7e1859fc6ada9eec57a208d94d6bfd0f6134026dacdc7d380f39988dab1fd8d63e0f13afc0523f3e5de43f532 MISC metadata.xml 1354 BLAKE2B 06f26407c7bbdbea6bb6ed510c3f497960a3ce8bf2ec296d3ff69eea8377774b7f7a1b37cb43eb63f7e7a31c4f74d978bb1ef863db9f87dba8d769aeca5e80c5 SHA512 9caa2359b6b15b397ce6108ebe941fd029e6b3d371c779a7bb3df5e0276b681067502aa10d12f5ab3eb427679818fdaa525dfdfba09c1fccf2511e23156aef7c diff --git a/media-gfx/graphicsmagick/graphicsmagick-1.3.38-r3.ebuild b/media-gfx/graphicsmagick/graphicsmagick-1.3.38-r3.ebuild deleted file mode 100644 index ed1b6d6f78e8..000000000000 --- a/media-gfx/graphicsmagick/graphicsmagick-1.3.38-r3.ebuild +++ /dev/null @@ -1,161 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools toolchain-funcs - -MY_P=${P/graphicsm/GraphicsM} -DESCRIPTION="Collection of tools and libraries for many image formats" -HOMEPAGE="http://www.graphicsmagick.org/ https://hg.osdn.net/view/graphicsmagick/GM" - -if [[ ${PV} == 9999 ]] ; then - inherit mercurial - EHG_REPO_URI="http://hg.code.sf.net/p/${PN}/code" -else - VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/bobfriesenhahn.asc - inherit verify-sig - SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz" - SRC_URI+=" verify-sig? ( mirror://sourceforge/${PN}/${MY_P}.tar.xz.sig )" - S="${WORKDIR}/${MY_P}" - - KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" - - BDEPEND="verify-sig? ( sec-keys/openpgp-keys-bobfriesenhahn )" -fi - -LICENSE="MIT" -SLOT="0/${PV%.*}" - -IUSE="bzip2 +cxx debug dynamic-loading fpx heif imagemagick jbig jpeg jpegxl lcms lzma" -IUSE+=" openmp perl png postscript q16 q32 static-libs svg tcmalloc tiff truetype" -IUSE+=" webp wmf X zlib zstd" - -RDEPEND=" - dev-libs/libltdl - bzip2? ( app-arch/bzip2 ) - fpx? ( media-libs/libfpx ) - heif? ( media-libs/libheif:= ) - imagemagick? ( !media-gfx/imagemagick ) - jbig? ( media-libs/jbigkit ) - jpeg? ( media-libs/libjpeg-turbo:= ) - jpegxl? ( media-libs/libjxl:= ) - lcms? ( media-libs/lcms:2 ) - lzma? ( app-arch/xz-utils ) - perl? ( dev-lang/perl:= ) - png? ( media-libs/libpng:= ) - postscript? ( app-text/ghostscript-gpl ) - svg? ( dev-libs/libxml2 ) - tcmalloc? ( dev-util/google-perftools:= ) - tiff? ( media-libs/tiff ) - truetype? ( - media-fonts/urw-fonts - >=media-libs/freetype-2 - ) - webp? ( media-libs/libwebp:= ) - wmf? ( media-libs/libwmf ) - X? ( - x11-libs/libSM - x11-libs/libX11 - x11-libs/libXext - ) - zlib? ( sys-libs/zlib ) - zstd? ( app-arch/zstd:= ) -" -DEPEND="${RDEPEND}" - -PATCHES=( - "${FILESDIR}"/${PN}-1.3.36-flags.patch - "${FILESDIR}"/${PN}-1.3.19-perl.patch - "${FILESDIR}"/${P}-configure-bashism.patch -) - -pkg_pretend() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -pkg_setup() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -src_prepare() { - default - - eautoreconf -} - -src_configure() { - local depth=8 - - use q16 && depth=16 - use q32 && depth=32 - - local myeconfargs=( - --enable-largefile - --enable-shared - $(use_enable static-libs static) - $(use_enable debug prof) - $(use_enable debug gcov) - $(use_enable imagemagick magick-compat) - $(use_enable openmp) - --with-threads - $(use_with dynamic-loading modules) - --with-quantum-depth=${depth} - --without-frozenpaths - $(use_with cxx magick-plus-plus) - $(use_with heif) - $(use_with jpegxl jxl) - $(use_with perl) - --with-perl-options=INSTALLDIRS=vendor - $(use_with bzip2 bzlib) - $(use_with postscript dps) - $(use_with fpx) - $(use_with jbig) - $(use_with webp) - $(use_with jpeg) - # Needs last-rited/unpackaged jasper - --without-jp2 - $(use_with lcms lcms2) - $(use_with lzma) - $(use_with png) - $(use_with tcmalloc) - $(use_with tiff) - --without-trio - $(use_with truetype ttf) - $(use_with wmf) - --with-fontpath="${EPREFIX}"/usr/share/fonts - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts - --with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts - $(use_with svg xml) - $(use_with zlib) - $(use_with zstd) - $(use_with X x) - ) - - econf "${myeconfargs[@]}" -} - -src_compile() { - default - - use perl && emake perl-build -} - -src_test() { - unset DISPLAY # some perl tests fail when DISPLAY is set - - default -} - -src_install() { - default - - if use perl ; then - emake -C PerlMagick DESTDIR="${D}" install - - find "${ED}" -type f -name perllocal.pod -exec rm -f {} + || die - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} + || die - fi - - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + || die -} diff --git a/media-gfx/graphicsmagick/graphicsmagick-1.3.38-r5.ebuild b/media-gfx/graphicsmagick/graphicsmagick-1.3.38-r5.ebuild new file mode 100644 index 000000000000..18c3f3286591 --- /dev/null +++ b/media-gfx/graphicsmagick/graphicsmagick-1.3.38-r5.ebuild @@ -0,0 +1,161 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools toolchain-funcs + +MY_P=${P/graphicsm/GraphicsM} +DESCRIPTION="Collection of tools and libraries for many image formats" +HOMEPAGE="http://www.graphicsmagick.org/ https://hg.osdn.net/view/graphicsmagick/GM" + +if [[ ${PV} == 9999 ]] ; then + inherit mercurial + EHG_REPO_URI="http://hg.code.sf.net/p/${PN}/code" +else + VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/bobfriesenhahn.asc + inherit verify-sig + SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz" + SRC_URI+=" verify-sig? ( mirror://sourceforge/${PN}/${MY_P}.tar.xz.sig )" + S="${WORKDIR}/${MY_P}" + + KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" + + BDEPEND="verify-sig? ( sec-keys/openpgp-keys-bobfriesenhahn )" +fi + +LICENSE="MIT" +SLOT="0/${PV%.*}" + +IUSE="bzip2 +cxx debug dynamic-loading fpx heif imagemagick jbig jpeg jpegxl lcms lzma" +IUSE+=" openmp perl png postscript q16 q32 static-libs svg tcmalloc tiff truetype" +IUSE+=" webp wmf X zlib zstd" + +RDEPEND=" + dev-libs/libltdl + bzip2? ( app-arch/bzip2 ) + fpx? ( media-libs/libfpx ) + heif? ( media-libs/libheif:= ) + imagemagick? ( !media-gfx/imagemagick ) + jbig? ( media-libs/jbigkit ) + jpeg? ( media-libs/libjpeg-turbo:= ) + jpegxl? ( media-libs/libjxl:= ) + lcms? ( media-libs/lcms:2 ) + lzma? ( app-arch/xz-utils ) + perl? ( dev-lang/perl:= ) + png? ( media-libs/libpng:= ) + postscript? ( app-text/ghostscript-gpl ) + svg? ( dev-libs/libxml2 ) + tcmalloc? ( dev-util/google-perftools:= ) + tiff? ( media-libs/tiff:= ) + truetype? ( + media-fonts/urw-fonts + >=media-libs/freetype-2 + ) + webp? ( media-libs/libwebp:= ) + wmf? ( media-libs/libwmf ) + X? ( + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXext + ) + zlib? ( sys-libs/zlib ) + zstd? ( app-arch/zstd:= ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.3.36-flags.patch + "${FILESDIR}"/${PN}-1.3.19-perl.patch + "${FILESDIR}"/${P}-configure-bashism.patch +) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + local depth=8 + + use q16 && depth=16 + use q32 && depth=32 + + local myeconfargs=( + --enable-largefile + --enable-shared + $(use_enable static-libs static) + $(use_enable debug prof) + $(use_enable debug gcov) + $(use_enable imagemagick magick-compat) + $(use_enable openmp) + --with-threads + $(use_with dynamic-loading modules) + --with-quantum-depth=${depth} + --without-frozenpaths + $(use_with cxx magick-plus-plus) + $(use_with heif) + $(use_with jpegxl jxl) + $(use_with perl) + --with-perl-options=INSTALLDIRS=vendor + $(use_with bzip2 bzlib) + $(use_with postscript dps) + $(use_with fpx) + $(use_with jbig) + $(use_with webp) + $(use_with jpeg) + # Needs last-rited/unpackaged jasper + --without-jp2 + $(use_with lcms lcms2) + $(use_with lzma) + $(use_with png) + $(use_with tcmalloc) + $(use_with tiff) + --without-trio + $(use_with truetype ttf) + $(use_with wmf) + --with-fontpath="${EPREFIX}"/usr/share/fonts + --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts + --with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts + $(use_with svg xml) + $(use_with zlib) + $(use_with zstd) + $(use_with X x) + ) + + econf "${myeconfargs[@]}" +} + +src_compile() { + default + + use perl && emake perl-build +} + +src_test() { + unset DISPLAY # some perl tests fail when DISPLAY is set + + default +} + +src_install() { + default + + if use perl ; then + emake -C PerlMagick DESTDIR="${D}" install + + find "${ED}" -type f -name perllocal.pod -exec rm -f {} + || die + find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} + || die + fi + + find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + || die +} diff --git a/media-gfx/graphicsmagick/graphicsmagick-9999-r1.ebuild b/media-gfx/graphicsmagick/graphicsmagick-9999-r1.ebuild new file mode 100644 index 000000000000..2c1c95d1eb59 --- /dev/null +++ b/media-gfx/graphicsmagick/graphicsmagick-9999-r1.ebuild @@ -0,0 +1,160 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools toolchain-funcs + +MY_P=${P/graphicsm/GraphicsM} +DESCRIPTION="Collection of tools and libraries for many image formats" +HOMEPAGE="http://www.graphicsmagick.org/ https://hg.osdn.net/view/graphicsmagick/GM" + +if [[ ${PV} == 9999 ]] ; then + inherit mercurial + EHG_REPO_URI="http://hg.code.sf.net/p/${PN}/code" +else + VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/bobfriesenhahn.asc + inherit verify-sig + SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz" + SRC_URI+=" verify-sig? ( mirror://sourceforge/${PN}/${MY_P}.tar.xz.sig )" + S="${WORKDIR}/${MY_P}" + + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" + + BDEPEND="verify-sig? ( sec-keys/openpgp-keys-bobfriesenhahn )" +fi + +LICENSE="MIT" +SLOT="0/${PV%.*}" + +IUSE="bzip2 +cxx debug dynamic-loading fpx heif imagemagick jbig jpeg jpegxl lcms lzma" +IUSE+=" openmp perl png postscript q16 q32 static-libs svg tcmalloc tiff truetype" +IUSE+=" webp wmf X zlib zstd" + +RDEPEND=" + dev-libs/libltdl + bzip2? ( app-arch/bzip2 ) + fpx? ( media-libs/libfpx ) + heif? ( media-libs/libheif:= ) + imagemagick? ( !media-gfx/imagemagick ) + jbig? ( media-libs/jbigkit ) + jpeg? ( media-libs/libjpeg-turbo:= ) + jpegxl? ( media-libs/libjxl:= ) + lcms? ( media-libs/lcms:2 ) + lzma? ( app-arch/xz-utils ) + perl? ( dev-lang/perl:= ) + png? ( media-libs/libpng:= ) + postscript? ( app-text/ghostscript-gpl ) + svg? ( dev-libs/libxml2 ) + tcmalloc? ( dev-util/google-perftools:= ) + tiff? ( media-libs/tiff:= ) + truetype? ( + media-fonts/urw-fonts + >=media-libs/freetype-2 + ) + webp? ( media-libs/libwebp:= ) + wmf? ( media-libs/libwmf ) + X? ( + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXext + ) + zlib? ( sys-libs/zlib ) + zstd? ( app-arch/zstd:= ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.3.36-flags.patch + "${FILESDIR}"/${PN}-1.3.19-perl.patch +) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + local depth=8 + + use q16 && depth=16 + use q32 && depth=32 + + local myeconfargs=( + --enable-largefile + --enable-shared + $(use_enable static-libs static) + $(use_enable debug prof) + $(use_enable debug gcov) + $(use_enable imagemagick magick-compat) + $(use_enable openmp) + --with-threads + $(use_with dynamic-loading modules) + --with-quantum-depth=${depth} + --without-frozenpaths + $(use_with cxx magick-plus-plus) + $(use_with heif) + $(use_with jpegxl jxl) + $(use_with perl) + --with-perl-options=INSTALLDIRS=vendor + $(use_with bzip2 bzlib) + $(use_with postscript dps) + $(use_with fpx) + $(use_with jbig) + $(use_with webp) + $(use_with jpeg) + # Needs last-rited/unpackaged jasper + --without-jp2 + $(use_with lcms lcms2) + $(use_with lzma) + $(use_with png) + $(use_with tcmalloc) + $(use_with tiff) + --without-trio + $(use_with truetype ttf) + $(use_with wmf) + --with-fontpath="${EPREFIX}"/usr/share/fonts + --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts + --with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts + $(use_with svg xml) + $(use_with zlib) + $(use_with zstd) + $(use_with X x) + ) + + econf "${myeconfargs[@]}" +} + +src_compile() { + default + + use perl && emake perl-build +} + +src_test() { + unset DISPLAY # some perl tests fail when DISPLAY is set + + default +} + +src_install() { + default + + if use perl ; then + emake -C PerlMagick DESTDIR="${D}" install + + find "${ED}" -type f -name perllocal.pod -exec rm -f {} + || die + find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} + || die + fi + + find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + || die +} diff --git a/media-gfx/graphicsmagick/graphicsmagick-9999.ebuild b/media-gfx/graphicsmagick/graphicsmagick-9999.ebuild deleted file mode 100644 index e67843f1b019..000000000000 --- a/media-gfx/graphicsmagick/graphicsmagick-9999.ebuild +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools toolchain-funcs - -MY_P=${P/graphicsm/GraphicsM} -DESCRIPTION="Collection of tools and libraries for many image formats" -HOMEPAGE="http://www.graphicsmagick.org/ https://hg.osdn.net/view/graphicsmagick/GM" - -if [[ ${PV} == 9999 ]] ; then - inherit mercurial - EHG_REPO_URI="http://hg.code.sf.net/p/${PN}/code" -else - VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/bobfriesenhahn.asc - inherit verify-sig - SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz" - SRC_URI+=" verify-sig? ( mirror://sourceforge/${PN}/${MY_P}.tar.xz.sig )" - S="${WORKDIR}/${MY_P}" - - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" - - BDEPEND="verify-sig? ( sec-keys/openpgp-keys-bobfriesenhahn )" -fi - -LICENSE="MIT" -SLOT="0/${PV%.*}" - -IUSE="bzip2 +cxx debug dynamic-loading fpx heif imagemagick jbig jpeg jpegxl lcms lzma" -IUSE+=" openmp perl png postscript q16 q32 static-libs svg tcmalloc tiff truetype" -IUSE+=" webp wmf X zlib zstd" - -RDEPEND=" - dev-libs/libltdl - bzip2? ( app-arch/bzip2 ) - fpx? ( media-libs/libfpx ) - heif? ( media-libs/libheif:= ) - imagemagick? ( !media-gfx/imagemagick ) - jbig? ( media-libs/jbigkit ) - jpeg? ( media-libs/libjpeg-turbo:= ) - jpegxl? ( media-libs/libjxl:= ) - lcms? ( media-libs/lcms:2 ) - lzma? ( app-arch/xz-utils ) - perl? ( dev-lang/perl:= ) - png? ( media-libs/libpng:= ) - postscript? ( app-text/ghostscript-gpl ) - svg? ( dev-libs/libxml2 ) - tcmalloc? ( dev-util/google-perftools:= ) - tiff? ( media-libs/tiff ) - truetype? ( - media-fonts/urw-fonts - >=media-libs/freetype-2 - ) - webp? ( media-libs/libwebp:= ) - wmf? ( media-libs/libwmf ) - X? ( - x11-libs/libSM - x11-libs/libX11 - x11-libs/libXext - ) - zlib? ( sys-libs/zlib ) - zstd? ( app-arch/zstd:= ) -" -DEPEND="${RDEPEND}" - -PATCHES=( - "${FILESDIR}"/${PN}-1.3.36-flags.patch - "${FILESDIR}"/${PN}-1.3.19-perl.patch -) - -pkg_pretend() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -pkg_setup() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -src_prepare() { - default - - eautoreconf -} - -src_configure() { - local depth=8 - - use q16 && depth=16 - use q32 && depth=32 - - local myeconfargs=( - --enable-largefile - --enable-shared - $(use_enable static-libs static) - $(use_enable debug prof) - $(use_enable debug gcov) - $(use_enable imagemagick magick-compat) - $(use_enable openmp) - --with-threads - $(use_with dynamic-loading modules) - --with-quantum-depth=${depth} - --without-frozenpaths - $(use_with cxx magick-plus-plus) - $(use_with heif) - $(use_with jpegxl jxl) - $(use_with perl) - --with-perl-options=INSTALLDIRS=vendor - $(use_with bzip2 bzlib) - $(use_with postscript dps) - $(use_with fpx) - $(use_with jbig) - $(use_with webp) - $(use_with jpeg) - # Needs last-rited/unpackaged jasper - --without-jp2 - $(use_with lcms lcms2) - $(use_with lzma) - $(use_with png) - $(use_with tcmalloc) - $(use_with tiff) - --without-trio - $(use_with truetype ttf) - $(use_with wmf) - --with-fontpath="${EPREFIX}"/usr/share/fonts - --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts - --with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts - $(use_with svg xml) - $(use_with zlib) - $(use_with zstd) - $(use_with X x) - ) - - econf "${myeconfargs[@]}" -} - -src_compile() { - default - - use perl && emake perl-build -} - -src_test() { - unset DISPLAY # some perl tests fail when DISPLAY is set - - default -} - -src_install() { - default - - if use perl ; then - emake -C PerlMagick DESTDIR="${D}" install - - find "${ED}" -type f -name perllocal.pod -exec rm -f {} + || die - find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} + || die - fi - - find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + || die -} -- cgit v1.2.3