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