summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2017-02-05 19:02:31 +0100
committerAlexis Ballier <aballier@gentoo.org>2017-02-05 19:26:41 +0100
commit8bf1f69d1aec15bb2732cd937e2d5b66a24d6a14 (patch)
treeaa21466a6e7369b0f7daadc6bfa5e06f76d50490 /dev-ml/camlimages
parentros-meta/rqt_common_plugins: Bump to 0.4.5. (diff)
downloadgentoo-8bf1f69d1aec15bb2732cd937e2d5b66a24d6a14.tar.gz
gentoo-8bf1f69d1aec15bb2732cd937e2d5b66a24d6a14.tar.bz2
gentoo-8bf1f69d1aec15bb2732cd937e2d5b66a24d6a14.zip
dev-ml/camlimages: Bump to 4.2.3
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-ml/camlimages')
-rw-r--r--dev-ml/camlimages/Manifest1
-rw-r--r--dev-ml/camlimages/camlimages-4.2.3.ebuild66
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-ml/camlimages/Manifest b/dev-ml/camlimages/Manifest
index 4bb36ccca024..b7ef55f52273 100644
--- a/dev-ml/camlimages/Manifest
+++ b/dev-ml/camlimages/Manifest
@@ -1 +1,2 @@
DIST camlimages-4.2.2.tar.bz2 789441 SHA256 eb96aa60afb139797836c2569ba1d4e3f2d0e4dbb025c117d7325468ce6c9633 SHA512 672e192255a9335c45d208b7589a344f712baa798dfc7bc7ccee7d3bda71e603bc06c7b012761f9c6372c683560c67ffa9d2af2742552884211ad4ffb541e3dd WHIRLPOOL dfe61d34da78b1d70feba1c2cf2717430ae4c99386d39fde3cfe14163665bd35a02947fcbc05f67c03de56b2fba1a13cd60a40031e1adbf6320ac239c1485c15
+DIST camlimages-4.2.3.tar.bz2 789523 SHA256 eb1fcbbe3eaebf74f5ecacc68dc428e584f297f023267b305f5cb5e0fc389d8e SHA512 c67775394ab97d0c0111d3e4e49ceb8213a405d48e133c321db920e291dc2ad79e1e7876a0bdff8fe1ad3b3f27ea0effe79bd26d29f92d5bb1ebd74f03d13bd5 WHIRLPOOL 1596a84baf80883ed543ce0c3bc0b734cec1ad46a445bef2a69fcbe99db4f6fe1b2b258ccd03f780d59fe96d6b92b44629c1fe00ce2d7fa06a618fac9c1d021f
diff --git a/dev-ml/camlimages/camlimages-4.2.3.ebuild b/dev-ml/camlimages/camlimages-4.2.3.ebuild
new file mode 100644
index 000000000000..35ea52c455a8
--- /dev/null
+++ b/dev-ml/camlimages/camlimages-4.2.3.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils vcs-snapshot findlib multilib
+
+DESCRIPTION="An image manipulation library for ocaml"
+HOMEPAGE="http://gallium.inria.fr/camlimages/"
+SRC_URI="https://bitbucket.org/camlspotter/camlimages/get/${PV}.tar.bz2 -> ${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc exif gif gtk jpeg png postscript tiff truetype X xpm"
+
+RDEPEND=">=dev-lang/ocaml-3.10.2:=[X?,ocamlopt]
+ exif? ( media-libs/libexif )
+ gif? ( media-libs/giflib )
+ gtk? ( dev-ml/lablgtk )
+ jpeg? ( virtual/jpeg )
+ tiff? ( media-libs/tiff )
+ png? ( >=media-libs/libpng-1.4:0 )
+ postscript? ( app-text/ghostscript-gpl )
+ truetype? ( >=media-libs/freetype-2 )
+ xpm? ( x11-libs/libXpm )
+ X? ( x11-apps/rgb )
+ sys-libs/zlib
+ "
+DEPEND="${DEPEND}
+ doc? ( dev-python/sphinx[latex] )
+ dev-util/omake
+ virtual/pkgconfig
+ dev-ml/findlib"
+
+camlimages_arg_want() {
+ echo "ARG_WANT_${2}=$(usex $1 1 0)"
+}
+
+src_compile() {
+ omake \
+ $(camlimages_arg_want exif EXIF ) \
+ $(camlimages_arg_want gif GIF ) \
+ $(camlimages_arg_want png PNG ) \
+ $(camlimages_arg_want jpeg JPEG ) \
+ $(camlimages_arg_want tiff TIFF ) \
+ $(camlimages_arg_want xpm XPM ) \
+ $(camlimages_arg_want postscript GS ) \
+ $(camlimages_arg_want gtk LABLGTK2) \
+ $(camlimages_arg_want X GRAPHICS) \
+ $(camlimages_arg_want truetype FREETYPE) \
+ PATH_GS=/bin/true \
+ --force-dotomake || die
+
+ if use doc ; then
+ sphinx-build doc/sphinx sphinxdoc || die
+ fi
+}
+
+src_install() {
+ findlib_src_preinst
+ omake --force-dotomake DESTDIR="${D}" install || die
+ dodoc README.md
+ use doc && dohtml -r sphinxdoc/*
+}