/[gentoo-x86]/media-gfx/imagemagick/imagemagick-6.9.1.4.ebuild
Gentoo

Contents of /media-gfx/imagemagick/imagemagick-6.9.1.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Jul 4 13:24:46 2015 UTC (3 years ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Version bump. Fixes bug #552034 partially.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key )

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/imagemagick/imagemagick-6.9.0.3.ebuild,v 1.10 2015/01/16 08:08:33 ago Exp $
4
5 EAPI=5
6
7 inherit eutils flag-o-matic libtool multilib toolchain-funcs versionator
8
9 MY_P=ImageMagick-$(replace_version_separator 3 '-')
10
11 DESCRIPTION="A collection of tools and libraries for many image formats"
12 HOMEPAGE="http://www.imagemagick.org/"
13 SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
14
15 LICENSE="imagemagick"
16 SLOT="0/${PV}"
17 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
18 IUSE="autotrace bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl png postscript q32 q64 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
19
20 RESTRICT="perl? ( userpriv )"
21
22 # Drop the libtool dep once libltdl goes stable.
23 RDEPEND="
24 || ( dev-libs/libltdl:0 <sys-devel/libtool-2.4.3-r2:2 )
25 autotrace? ( >=media-gfx/autotrace-0.31.1 )
26 bzip2? ( app-arch/bzip2 )
27 corefonts? ( media-fonts/corefonts )
28 djvu? ( app-text/djvu )
29 fftw? ( sci-libs/fftw:3.0 )
30 fontconfig? ( media-libs/fontconfig )
31 fpx? ( >=media-libs/libfpx-1.3.0-r1 )
32 graphviz? ( media-gfx/graphviz )
33 jbig? ( >=media-libs/jbigkit-2:= )
34 jpeg? ( virtual/jpeg:0 )
35 jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
36 lcms? ( media-libs/lcms:2= )
37 lqr? ( media-libs/liblqr )
38 opencl? ( virtual/opencl )
39 openexr? ( media-libs/openexr:0= )
40 pango? ( x11-libs/pango )
41 perl? ( >=dev-lang/perl-5.8.8:0= )
42 png? ( media-libs/libpng:0= )
43 postscript? ( app-text/ghostscript-gpl )
44 raw? ( media-gfx/ufraw )
45 svg? ( gnome-base/librsvg )
46 tiff? ( media-libs/tiff:0= )
47 truetype? (
48 media-fonts/urw-fonts
49 >=media-libs/freetype-2
50 )
51 webp? ( media-libs/libwebp:0= )
52 wmf? ( media-libs/libwmf )
53 X? (
54 x11-libs/libICE
55 x11-libs/libSM
56 x11-libs/libXext
57 x11-libs/libXt
58 )
59 xml? ( dev-libs/libxml2:= )
60 lzma? ( app-arch/xz-utils )
61 zlib? ( sys-libs/zlib:= )"
62 DEPEND="${RDEPEND}
63 !media-gfx/graphicsmagick[imagemagick]
64 virtual/pkgconfig
65 X? ( x11-proto/xextproto )"
66
67 REQUIRED_USE="corefonts? ( truetype )
68 test? ( corefonts )"
69
70 S=${WORKDIR}/${MY_P}
71
72 src_prepare() {
73 epatch_user
74
75 elibtoolize # for Darwin modules
76
77 # For testsuite, see http://bugs.gentoo.org/show_bug.cgi?id=500580#c3
78 shopt -s nullglob
79 mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
80 if test -n "${mesa_cards}"; then
81 addpredict "${mesa_cards}"
82 fi
83 ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
84 if test -n "${ati_cards}"; then
85 addpredict "${ati_cards}"
86 fi
87 shopt -u nullglob
88 addpredict /dev/nvidiactl
89 }
90
91 src_configure() {
92 local depth=16
93 use q8 && depth=8
94 use q32 && depth=32
95 use q64 && depth=64
96
97 local openmp=disable
98 use openmp && { tc-has-openmp && openmp=enable; }
99
100 [[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
101
102 CONFIG_SHELL=$(type -P bash) \
103 econf \
104 $(use_enable static-libs static) \
105 $(use_enable hdri) \
106 $(use_enable opencl) \
107 --with-threads \
108 --with-modules \
109 --with-quantum-depth=${depth} \
110 $(use_with cxx magick-plus-plus) \
111 $(use_with perl) \
112 --with-perl-options='INSTALLDIRS=vendor' \
113 --with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \
114 $(use_with bzip2 bzlib) \
115 $(use_with X x) \
116 $(use_with zlib) \
117 $(use_with autotrace) \
118 $(use_with postscript dps) \
119 $(use_with djvu) \
120 --with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu \
121 $(use_with fftw) \
122 $(use_with fpx) \
123 $(use_with fontconfig) \
124 $(use_with truetype freetype) \
125 $(use_with postscript gslib) \
126 $(use_with graphviz gvc) \
127 $(use_with jbig) \
128 $(use_with jpeg) \
129 $(use_with jpeg2k openjp2) \
130 --without-lcms \
131 $(use_with lcms lcms2) \
132 $(use_with lqr) \
133 $(use_with lzma) \
134 $(use_with openexr) \
135 $(use_with pango) \
136 $(use_with png) \
137 $(use_with svg rsvg) \
138 $(use_with tiff) \
139 $(use_with webp) \
140 $(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts) \
141 $(use_with wmf) \
142 $(use_with xml) \
143 --${openmp}-openmp \
144 --with-gcc-arch=no-automagic
145 }
146
147 src_test() {
148 LD_LIBRARY_PATH="${S}/coders/.libs:${S}/filters/.libs:${S}/Magick++/lib/.libs:${S}/magick/.libs:${S}/wand/.libs" \
149 emake -j1 check
150 }
151
152 src_install() {
153 # Ensure documentation installation files and paths with each release!
154 emake \
155 DESTDIR="${D}" \
156 DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
157 install
158
159 rm -f "${ED}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
160 dodoc {AUTHORS,README}.txt ChangeLog
161
162 if use perl; then
163 find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
164 find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
165 fi
166
167 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
168
169 if use opencl; then
170 cat <<-EOF > "${T}"/99${PN}
171 SANDBOX_PREDICT="/dev/nvidiactl:/dev/ati/card:/dev/dri/card"
172 EOF
173
174 insinto /etc/sandbox.d
175 doins "${T}"/99${PN} #472766
176 fi
177
178 insinto /usr/share/${PN}
179 doins config/*icm
180 }

  ViewVC Help
Powered by ViewVC 1.1.20