Gentoo Archives: gentoo-commits

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