1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils vcs-snapshot findlib multilib
8 DESCRIPTION="An image manipulation library for ocaml"
9 HOMEPAGE="http://gallium.inria.fr/camlimages/"
10 SRC_URI="https://bitbucket.org/camlspotter/camlimages/get/${PV}.tar.bz2 -> ${P}.tar.bz2"
14 KEYWORDS="~amd64 ~ppc ~x86"
15 IUSE="exif gif gtk jpeg png postscript tiff truetype X xpm"
17 RDEPEND=">=dev-lang/ocaml-3.10.2:=[X(+)?,ocamlopt]
18 exif? ( media-libs/libexif )
19 gif? ( media-libs/giflib )
20 gtk? ( dev-ml/lablgtk )
21 jpeg? ( virtual/jpeg )
22 tiff? ( media-libs/tiff )
23 png? ( >=media-libs/libpng-1.4:0 )
24 postscript? ( app-text/ghostscript-gpl )
25 truetype? ( >=media-libs/freetype-2 )
26 xpm? ( x11-libs/libXpm )
35 camlimages_arg_want() {
36 echo "ARG_WANT_${2}=$(usex $1 1 0)"
41 $(camlimages_arg_want exif EXIF ) \
42 $(camlimages_arg_want gif GIF ) \
43 $(camlimages_arg_want png PNG ) \
44 $(camlimages_arg_want jpeg JPEG ) \
45 $(camlimages_arg_want tiff TIFF ) \
46 $(camlimages_arg_want xpm XPM ) \
47 $(camlimages_arg_want postscript GS ) \
48 $(camlimages_arg_want gtk LABLGTK2) \
49 $(camlimages_arg_want X GRAPHICS) \
50 $(camlimages_arg_want truetype FREETYPE) \
52 --force-dotomake || die
57 omake --force-dotomake DESTDIR="${D}" install || die