Gentoo Archives: gentoo-commits

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