1 |
commit: 809d96b4c6ed7975726e1ce1b94e8ac1147a0473 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 27 00:19:57 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 27 00:24:09 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=809d96b4 |
7 |
|
8 |
media-gfx/graphicsmagick: sync live ebuild |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
.../graphicsmagick/graphicsmagick-9999.ebuild | 39 +++++++++++++++------- |
13 |
1 file changed, 27 insertions(+), 12 deletions(-) |
14 |
|
15 |
diff --git a/media-gfx/graphicsmagick/graphicsmagick-9999.ebuild b/media-gfx/graphicsmagick/graphicsmagick-9999.ebuild |
16 |
index 06f0f8f71c40..c640b1b4cc74 100644 |
17 |
--- a/media-gfx/graphicsmagick/graphicsmagick-9999.ebuild |
18 |
+++ b/media-gfx/graphicsmagick/graphicsmagick-9999.ebuild |
19 |
@@ -9,10 +9,11 @@ MY_P=${P/graphicsm/GraphicsM} |
20 |
DESCRIPTION="Collection of tools and libraries for many image formats" |
21 |
HOMEPAGE="http://www.graphicsmagick.org/ http://hg.code.sf.net/p/graphicsmagick/code/" |
22 |
|
23 |
-if [[ ${PV} == "9999" ]] ; then |
24 |
+if [[ ${PV} == 9999 ]] ; then |
25 |
inherit mercurial |
26 |
EHG_REPO_URI="http://hg.code.sf.net/p/${PN}/code" |
27 |
else |
28 |
+ VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/bobfriesenhahn.asc |
29 |
inherit verify-sig |
30 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz" |
31 |
SRC_URI+=" verify-sig? ( mirror://sourceforge/${PN}/${MY_P}.tar.xz.sig )" |
32 |
@@ -26,23 +27,25 @@ fi |
33 |
LICENSE="MIT" |
34 |
SLOT="0/${PV%.*}" |
35 |
|
36 |
-IUSE="bzip2 +cxx debug dynamic-loading fpx imagemagick jbig jpeg lcms lzma" |
37 |
+IUSE="bzip2 +cxx debug dynamic-loading fpx heif imagemagick jbig jpeg jpegxl lcms lzma" |
38 |
IUSE+=" openmp perl png postscript q16 q32 static-libs svg threads tiff truetype" |
39 |
IUSE+=" webp wmf X zlib" |
40 |
|
41 |
-RDEPEND="dev-libs/libltdl:0 |
42 |
+RDEPEND="dev-libs/libltdl |
43 |
bzip2? ( app-arch/bzip2 ) |
44 |
fpx? ( media-libs/libfpx ) |
45 |
+ heif? ( media-libs/libheif:= ) |
46 |
imagemagick? ( !media-gfx/imagemagick ) |
47 |
jbig? ( media-libs/jbigkit ) |
48 |
- jpeg? ( virtual/jpeg:0 ) |
49 |
+ jpeg? ( virtual/jpeg ) |
50 |
+ jpegxl? ( media-libs/libjxl:= ) |
51 |
lcms? ( media-libs/lcms:2 ) |
52 |
lzma? ( app-arch/xz-utils ) |
53 |
perl? ( dev-lang/perl:= ) |
54 |
- png? ( media-libs/libpng:0= ) |
55 |
+ png? ( media-libs/libpng:= ) |
56 |
postscript? ( app-text/ghostscript-gpl ) |
57 |
svg? ( dev-libs/libxml2 ) |
58 |
- tiff? ( media-libs/tiff:0 ) |
59 |
+ tiff? ( media-libs/tiff ) |
60 |
truetype? ( |
61 |
media-fonts/urw-fonts |
62 |
>=media-libs/freetype-2 |
63 |
@@ -61,6 +64,14 @@ PATCHES=( |
64 |
"${FILESDIR}"/${PN}-1.3.19-perl.patch |
65 |
) |
66 |
|
67 |
+pkg_pretend() { |
68 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
69 |
+} |
70 |
+ |
71 |
+pkg_setup() { |
72 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
73 |
+} |
74 |
+ |
75 |
src_prepare() { |
76 |
default |
77 |
|
78 |
@@ -69,16 +80,11 @@ src_prepare() { |
79 |
|
80 |
src_configure() { |
81 |
local depth=8 |
82 |
+ |
83 |
use q16 && depth=16 |
84 |
use q32 && depth=32 |
85 |
|
86 |
- local openmp=disable |
87 |
- if use openmp && tc-has-openmp ; then |
88 |
- openmp=enable |
89 |
- fi |
90 |
- |
91 |
local myeconfargs=( |
92 |
- --${openmp}-openmp |
93 |
--enable-largefile |
94 |
--enable-shared |
95 |
$(use_enable static-libs static) |
96 |
@@ -90,6 +96,8 @@ src_configure() { |
97 |
--with-quantum-depth=${depth} |
98 |
--without-frozenpaths |
99 |
$(use_with cxx magick-plus-plus) |
100 |
+ $(use_with heif) |
101 |
+ $(use_with jpegxl jxl) |
102 |
$(use_with perl) |
103 |
--with-perl-options=INSTALLDIRS=vendor |
104 |
$(use_with bzip2 bzlib) |
105 |
@@ -113,6 +121,12 @@ src_configure() { |
106 |
$(use_with X x) |
107 |
) |
108 |
|
109 |
+ if use openmp && tc-has-openmp ; then |
110 |
+ myeconfargs+=( --enable-openmp ) |
111 |
+ else |
112 |
+ myeconfargs+=( --disable-openmp ) |
113 |
+ fi |
114 |
+ |
115 |
econf "${myeconfargs[@]}" |
116 |
} |
117 |
|
118 |
@@ -133,6 +147,7 @@ src_install() { |
119 |
|
120 |
if use perl ; then |
121 |
emake -C PerlMagick DESTDIR="${D}" install |
122 |
+ |
123 |
find "${ED}" -type f -name perllocal.pod -exec rm -f {} + || die |
124 |
find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} + || die |
125 |
fi |