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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Tue Jul 24 10:50:03 2012 UTC (23 months, 4 weeks ago) by johu
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #416527

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

1 aballier 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 johu 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-ml/camlimages/camlimages-4.0.1.ebuild,v 1.2 2012/06/16 16:37:51 ssuominen Exp $
4 aballier 1.1
5     EAPI=4
6    
7     inherit eutils vcs-snapshot findlib multilib
8    
9     DESCRIPTION="An image manipulation library for ocaml"
10     HOMEPAGE="http://gallium.inria.fr/camlimages/"
11     SRC_URI="http://bitbucket.org/camlspotter/camlimages/get/v4.0.1.tar.bz2 -> ${P}.tar.bz2"
12    
13     LICENSE="LGPL-2.1"
14     SLOT="0"
15 johu 1.3 KEYWORDS="~amd64 ~ppc x86"
16 ssuominen 1.2 IUSE="doc gif gtk jpeg png postscript tiff truetype X xpm zlib"
17 aballier 1.1
18     RDEPEND=">=dev-lang/ocaml-3.10.2[X?,ocamlopt]
19     gif? ( media-libs/giflib )
20     gtk? ( dev-ml/lablgtk )
21     jpeg? ( virtual/jpeg )
22     tiff? ( media-libs/tiff )
23 ssuominen 1.2 png? ( >=media-libs/libpng-1.4:0 )
24     postscript? ( app-text/ghostscript-gpl )
25 aballier 1.1 truetype? ( >=media-libs/freetype-2 )
26     xpm? ( x11-libs/libXpm )
27     X? ( x11-apps/rgb )
28     zlib? ( sys-libs/zlib )
29     "
30     DEPEND="${DEPEND}
31     doc? ( dev-python/sphinx[latex] )
32     dev-util/omake
33     dev-ml/findlib"
34    
35     REQUIRED_USE="png? ( zlib )"
36    
37     src_prepare() {
38     epatch "${FILESDIR}/${P}-libpng15.patch"
39     }
40    
41     camlimages_disable_have() {
42     if ! use $1 ; then
43     sed -i -e "s/^[[:space:]]*HAVE_$2.*\$/ HAVE_$2 = false/" OMakefile || die
44     sed -i -e "s/^[[:space:]]*SUPPORT_$2.*\$/\0\n SUPPORT_$2 = false/" OMakefile || die
45     fi
46     }
47    
48     src_configure() {
49 ssuominen 1.2 camlimages_disable_have gif GIF
50     camlimages_disable_have zlib Z
51     camlimages_disable_have png PNG
52     camlimages_disable_have jpeg JPEG
53     camlimages_disable_have tiff TIFF
54     camlimages_disable_have xpm XPM
55     camlimages_disable_have postscript PS
56     camlimages_disable_have gtk LABLGTK2
57     camlimages_disable_have X GRAPHICS
58     camlimages_disable_have X RGB_TXT
59     camlimages_disable_have truetype FREETYPE
60 aballier 1.1 }
61    
62     src_compile() {
63     omake --force-dotomake || die
64     if use doc ; then
65     sphinx-build doc/sphinx sphinxdoc || die
66     fi
67     }
68    
69     src_install() {
70     findlib_src_preinst
71     omake --force-dotomake DESTDIR="${D}" install || die
72     dodoc README
73     use doc && dohtml -r sphinxdoc/*
74     }

  ViewVC Help
Powered by ViewVC 1.1.20