1 |
commit: 56525a8333f216dbe26167d840b544b144cfe833 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 27 23:36:48 2018 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 27 23:42:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56525a83 |
7 |
|
8 |
media-gfx/graphicsmagick: version bump to 1.3.30 |
9 |
|
10 |
media-gfx/graphicsmagick/Manifest | 1 + |
11 |
.../graphicsmagick/graphicsmagick-1.3.30.ebuild | 136 +++++++++++++++++++++ |
12 |
2 files changed, 137 insertions(+) |
13 |
|
14 |
diff --git a/media-gfx/graphicsmagick/Manifest b/media-gfx/graphicsmagick/Manifest |
15 |
index c45323e7718..7bb7147cb4d 100644 |
16 |
--- a/media-gfx/graphicsmagick/Manifest |
17 |
+++ b/media-gfx/graphicsmagick/Manifest |
18 |
@@ -1,2 +1,3 @@ |
19 |
DIST GraphicsMagick-1.3.27.tar.xz 5412544 BLAKE2B 130ce964f3745f4a9f3b54180529fb45afb4ecc63ecb88f626fa4dd2c6fb54675ff9b5b79527dc89d375cad5c4f1136063e612d91cc9d69b0c330c32c786fd96 SHA512 27c2fccebe1ae079040986979405f9840ad39f773e2e0399712695146ec1b0f92a53533e6052df124f5db38aacc95bbd4b2e8692e81c92dade4e169ddfcc9b8c |
20 |
DIST GraphicsMagick-1.3.28.tar.xz 5416660 BLAKE2B 874e1e2669db46c458b0e7aa68b24efa07249145b4dd3e1ff2802ec07ad7ea70e4484d0ffcc255454adf4b2be72d6e19f4352db65e22def6e12dfde4cf5987f8 SHA512 c372212e54e6403a44a973113764bf1fee6dde5df08a6ee015ae03c32823f96316018cafd34a355ff8a35ad3581aa7d455d30d664b9d68d3ea2ad277d7cf45e6 |
21 |
+DIST GraphicsMagick-1.3.30.tar.xz 5496116 BLAKE2B 408f68334b290ae30d06e4b0efa6e11e89ffa9c00781e2f0ceb25cd6fc308f1be86b5ed9bd52f594e1abd3351f1b7dbfb12e87117ba85f4b4c01d07d7480772a SHA512 4f04245b8abef85de96a1527ad4adc1fadea144a1917db3ea21632a9fe732bdaa7021ffdbbeb7c2ead814ca7b6a14e81bb68a962bbfb64fa6809a235f1b0be5c |
22 |
|
23 |
diff --git a/media-gfx/graphicsmagick/graphicsmagick-1.3.30.ebuild b/media-gfx/graphicsmagick/graphicsmagick-1.3.30.ebuild |
24 |
new file mode 100644 |
25 |
index 00000000000..c5f11fb693d |
26 |
--- /dev/null |
27 |
+++ b/media-gfx/graphicsmagick/graphicsmagick-1.3.30.ebuild |
28 |
@@ -0,0 +1,136 @@ |
29 |
+# Copyright 1999-2018 Gentoo Foundation |
30 |
+# Distributed under the terms of the GNU General Public License v2 |
31 |
+ |
32 |
+EAPI=6 |
33 |
+inherit autotools toolchain-funcs |
34 |
+ |
35 |
+MY_P=${P/graphicsm/GraphicsM} |
36 |
+ |
37 |
+DESCRIPTION="Collection of tools and libraries for many image formats" |
38 |
+HOMEPAGE="http://www.graphicsmagick.org/" |
39 |
+LICENSE="MIT" |
40 |
+SLOT="0/${PV%.*}" |
41 |
+ |
42 |
+if [[ ${PV} == "9999" ]] ; then |
43 |
+ inherit mercurial |
44 |
+ EHG_REPO_URI="http://hg.code.sf.net/p/${PN}/code" |
45 |
+else |
46 |
+ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz" |
47 |
+ KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos" |
48 |
+fi |
49 |
+ |
50 |
+IUSE="bzip2 cxx debug fpx imagemagick jbig jpeg jpeg2k lcms lzma modules openmp |
51 |
+ perl png postscript q16 q32 static-libs svg test threads tiff truetype |
52 |
+ webp wmf X zlib" |
53 |
+ |
54 |
+RDEPEND="dev-libs/libltdl:0 |
55 |
+ bzip2? ( app-arch/bzip2 ) |
56 |
+ fpx? ( media-libs/libfpx ) |
57 |
+ imagemagick? ( !media-gfx/imagemagick ) |
58 |
+ jbig? ( media-libs/jbigkit ) |
59 |
+ jpeg? ( virtual/jpeg:0 ) |
60 |
+ jpeg2k? ( media-libs/jasper:= ) |
61 |
+ lcms? ( media-libs/lcms:2 ) |
62 |
+ lzma? ( app-arch/xz-utils ) |
63 |
+ perl? ( dev-lang/perl ) |
64 |
+ png? ( media-libs/libpng:0 ) |
65 |
+ postscript? ( app-text/ghostscript-gpl ) |
66 |
+ svg? ( dev-libs/libxml2 ) |
67 |
+ tiff? ( media-libs/tiff:0 ) |
68 |
+ truetype? ( |
69 |
+ media-fonts/urw-fonts |
70 |
+ >=media-libs/freetype-2 |
71 |
+ ) |
72 |
+ webp? ( media-libs/libwebp:= ) |
73 |
+ wmf? ( media-libs/libwmf ) |
74 |
+ X? ( |
75 |
+ x11-libs/libSM |
76 |
+ x11-libs/libXext |
77 |
+ ) |
78 |
+ zlib? ( sys-libs/zlib )" |
79 |
+# corefonts are required because needed arial font (bug #588398). |
80 |
+DEPEND="${RDEPEND} |
81 |
+ test? ( media-fonts/corefonts )" |
82 |
+ |
83 |
+S=${WORKDIR}/${MY_P} |
84 |
+ |
85 |
+PATCHES=( |
86 |
+ "${FILESDIR}"/${PN}-1.3.19-flags.patch |
87 |
+ "${FILESDIR}"/${PN}-1.3.19-perl.patch |
88 |
+) |
89 |
+ |
90 |
+src_prepare() { |
91 |
+ default |
92 |
+ eautoreconf |
93 |
+} |
94 |
+ |
95 |
+src_configure() { |
96 |
+ local depth=8 |
97 |
+ use q16 && depth=16 |
98 |
+ use q32 && depth=32 |
99 |
+ |
100 |
+ local openmp=disable |
101 |
+ if use openmp && tc-has-openmp; then |
102 |
+ openmp=enable |
103 |
+ fi |
104 |
+ |
105 |
+ local myeconfargs=( |
106 |
+ --${openmp}-openmp |
107 |
+ --enable-largefile |
108 |
+ --enable-shared |
109 |
+ $(use_enable static-libs static) |
110 |
+ $(use_enable debug prof) |
111 |
+ $(use_enable debug gcov) |
112 |
+ $(use_enable imagemagick magick-compat) |
113 |
+ $(use_with threads) |
114 |
+ $(use_with modules) |
115 |
+ --with-quantum-depth=${depth} |
116 |
+ --without-frozenpaths |
117 |
+ $(use_with cxx magick-plus-plus) |
118 |
+ $(use_with perl) |
119 |
+ --with-perl-options=INSTALLDIRS=vendor |
120 |
+ $(use_with bzip2 bzlib) |
121 |
+ $(use_with postscript dps) |
122 |
+ $(use_with fpx) |
123 |
+ --without-gslib |
124 |
+ $(use_with jbig) |
125 |
+ $(use_with webp) |
126 |
+ $(use_with jpeg) |
127 |
+ $(use_with jpeg2k jp2) |
128 |
+ $(use_with lcms lcms2) |
129 |
+ $(use_with lzma) |
130 |
+ $(use_with png) |
131 |
+ $(use_with tiff) |
132 |
+ $(use_with truetype ttf) |
133 |
+ $(use_with wmf) |
134 |
+ --with-fontpath="${EPREFIX}"/usr/share/fonts |
135 |
+ --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts |
136 |
+ --with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts |
137 |
+ $(use_with svg xml) |
138 |
+ $(use_with zlib) |
139 |
+ $(use_with X x) |
140 |
+ ) |
141 |
+ econf "${myeconfargs[@]}" |
142 |
+} |
143 |
+ |
144 |
+src_compile() { |
145 |
+ default |
146 |
+ use perl && emake perl-build |
147 |
+} |
148 |
+ |
149 |
+src_test() { |
150 |
+ unset DISPLAY # some perl tests fail when DISPLAY is set |
151 |
+ default |
152 |
+} |
153 |
+ |
154 |
+src_install() { |
155 |
+ default |
156 |
+ |
157 |
+ if use perl; then |
158 |
+ emake -C PerlMagick DESTDIR="${D}" install |
159 |
+ find "${ED}" -type f -name perllocal.pod -exec rm -f {} + || die |
160 |
+ find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} + || die |
161 |
+ fi |
162 |
+ |
163 |
+ find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + || die |
164 |
+} |