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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Oct 23 10:57:44 2014 UTC (3 years, 11 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
version bump & fix build without postscript

Signed-off-by: aballier@gentoo.org
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 160F534A)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ml/camlimages/camlimages-4.1.1.ebuild,v 1.1 2013/10/22 20:45:45 aballier Exp $
4
5 EAPI=5
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/${PV}.tar.bz2 -> ${P}.tar.bz2"
12
13 LICENSE="LGPL-2.1"
14 SLOT="0/${PV}"
15 KEYWORDS="~amd64 ~ppc ~x86"
16 IUSE="doc exif gif gtk jpeg png postscript tiff truetype X xpm"
17
18 RDEPEND=">=dev-lang/ocaml-3.10.2:=[X?,ocamlopt]
19 exif? ( media-libs/libexif )
20 gif? ( media-libs/giflib )
21 gtk? ( dev-ml/lablgtk )
22 jpeg? ( virtual/jpeg )
23 tiff? ( media-libs/tiff )
24 png? ( >=media-libs/libpng-1.4:0 )
25 postscript? ( app-text/ghostscript-gpl )
26 truetype? ( >=media-libs/freetype-2 )
27 xpm? ( x11-libs/libXpm )
28 X? ( x11-apps/rgb )
29 sys-libs/zlib
30 "
31 DEPEND="${DEPEND}
32 doc? ( dev-python/sphinx[latex] )
33 dev-util/omake
34 virtual/pkgconfig
35 dev-ml/findlib"
36
37 camlimages_arg_want() {
38 echo "ARG_WANT_${2}=$(usex $1 1 0)"
39 }
40
41 src_compile() {
42 omake \
43 $(camlimages_arg_want exif EXIF ) \
44 $(camlimages_arg_want gif GIF ) \
45 $(camlimages_arg_want png PNG ) \
46 $(camlimages_arg_want jpeg JPEG ) \
47 $(camlimages_arg_want tiff TIFF ) \
48 $(camlimages_arg_want xpm XPM ) \
49 $(camlimages_arg_want postscript GS ) \
50 $(camlimages_arg_want gtk LABLGTK2) \
51 $(camlimages_arg_want X GRAPHICS) \
52 $(camlimages_arg_want truetype FREETYPE) \
53 PATH_GS=/bin/true \
54 --force-dotomake || die
55
56 if use doc ; then
57 sphinx-build doc/sphinx sphinxdoc || die
58 fi
59 }
60
61 src_install() {
62 findlib_src_preinst
63 omake --force-dotomake DESTDIR="${D}" install || die
64 dodoc README.rst
65 use doc && dohtml -r sphinxdoc/*
66 }

  ViewVC Help
Powered by ViewVC 1.1.20