/[gentoo-x86]/dev-ml/camlimages/camlimages-3.0.2.ebuild
Gentoo

Contents of /dev-ml/camlimages/camlimages-3.0.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sat Jun 16 16:37:51 2012 UTC (2 years, 10 months ago) by ssuominen
Branch: MAIN
Changes since 1.9: +6 -6 lines
Use global USE flag "postscript" instead of local USE flag "gs" for PostScript support

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ml/camlimages/camlimages-3.0.2.ebuild,v 1.9 2011/02/28 18:10:41 ssuominen Exp $
4
5 EAPI=2
6
7 inherit eutils autotools
8
9 IUSE="doc gif gtk jpeg postscript tiff truetype xpm"
10
11 DESCRIPTION="An image manipulation library for ocaml"
12 HOMEPAGE="http://cristal.inria.fr/camlimages/"
13 SRC_URI="http://cristal.inria.fr/camlimages/${P}.tgz"
14
15 LICENSE="LGPL-2.1"
16 SLOT="0"
17 KEYWORDS="~amd64 ppc x86"
18
19 RDEPEND=">=dev-lang/ocaml-3.10.2[X,ocamlopt]
20 gif? ( media-libs/giflib )
21 gtk? ( dev-ml/lablgtk )
22 jpeg? ( virtual/jpeg )
23 postscript? ( app-text/ghostscript-gpl )
24 tiff? ( media-libs/tiff )
25 >=media-libs/libpng-1.4:0
26 truetype? ( >=media-libs/freetype-2 )
27 xpm? ( x11-libs/libXpm )
28 "
29 DEPEND="${DEPEND}
30 dev-ml/ocaml-autoconf
31 dev-ml/findlib"
32
33 src_prepare() {
34 epatch "${FILESDIR}/${P}-tiffread-CVE-2009-3296.patch"
35 epatch "${FILESDIR}/${P}-ocaml-autoconf11.patch"
36 epatch "${FILESDIR}/${P}-annot.patch"
37 epatch "${FILESDIR}/${P}-noxpm.patch"
38 epatch "${FILESDIR}/${P}-libpng15.patch"
39 eautoreconf
40 }
41
42 src_configure() {
43 econf \
44 $(use_with gif) \
45 $(use_with postscript gs) \
46 $(use_with gtk lablgtk2) \
47 --without-lablgtk \
48 $(use_with jpeg) \
49 --with-png \
50 $(use_with tiff) \
51 $(use_with truetype freetype) \
52 $(use_with xpm)
53 }
54
55 src_compile() {
56 emake -j1 || die
57 }
58
59 src_install() {
60 emake DESTDIR="${D}" ocamlsitelibdir="$(ocamlfind printconf destdir)/${PN}" install || die
61 dodoc README
62 use doc && dohtml doc/*
63 }

  ViewVC Help
Powered by ViewVC 1.1.20