Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/camlimages/
Date: Sun, 05 Feb 2017 18:29:29
Message-Id: 1486319201.8bf1f69d1aec15bb2732cd937e2d5b66a24d6a14.aballier@gentoo
1 commit: 8bf1f69d1aec15bb2732cd937e2d5b66a24d6a14
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 5 18:02:31 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 5 18:26:41 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bf1f69d
7
8 dev-ml/camlimages: Bump to 4.2.3
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-ml/camlimages/Manifest | 1 +
13 dev-ml/camlimages/camlimages-4.2.3.ebuild | 66 +++++++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/dev-ml/camlimages/Manifest b/dev-ml/camlimages/Manifest
17 index 4bb36cc..b7ef55f 100644
18 --- a/dev-ml/camlimages/Manifest
19 +++ b/dev-ml/camlimages/Manifest
20 @@ -1 +1,2 @@
21 DIST camlimages-4.2.2.tar.bz2 789441 SHA256 eb96aa60afb139797836c2569ba1d4e3f2d0e4dbb025c117d7325468ce6c9633 SHA512 672e192255a9335c45d208b7589a344f712baa798dfc7bc7ccee7d3bda71e603bc06c7b012761f9c6372c683560c67ffa9d2af2742552884211ad4ffb541e3dd WHIRLPOOL dfe61d34da78b1d70feba1c2cf2717430ae4c99386d39fde3cfe14163665bd35a02947fcbc05f67c03de56b2fba1a13cd60a40031e1adbf6320ac239c1485c15
22 +DIST camlimages-4.2.3.tar.bz2 789523 SHA256 eb1fcbbe3eaebf74f5ecacc68dc428e584f297f023267b305f5cb5e0fc389d8e SHA512 c67775394ab97d0c0111d3e4e49ceb8213a405d48e133c321db920e291dc2ad79e1e7876a0bdff8fe1ad3b3f27ea0effe79bd26d29f92d5bb1ebd74f03d13bd5 WHIRLPOOL 1596a84baf80883ed543ce0c3bc0b734cec1ad46a445bef2a69fcbe99db4f6fe1b2b258ccd03f780d59fe96d6b92b44629c1fe00ce2d7fa06a618fac9c1d021f
23
24 diff --git a/dev-ml/camlimages/camlimages-4.2.3.ebuild b/dev-ml/camlimages/camlimages-4.2.3.ebuild
25 new file mode 100644
26 index 00000000..35ea52c
27 --- /dev/null
28 +++ b/dev-ml/camlimages/camlimages-4.2.3.ebuild
29 @@ -0,0 +1,66 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +inherit eutils vcs-snapshot findlib multilib
37 +
38 +DESCRIPTION="An image manipulation library for ocaml"
39 +HOMEPAGE="http://gallium.inria.fr/camlimages/"
40 +SRC_URI="https://bitbucket.org/camlspotter/camlimages/get/${PV}.tar.bz2 -> ${P}.tar.bz2"
41 +
42 +LICENSE="LGPL-2.1"
43 +SLOT="0/${PV}"
44 +KEYWORDS="~amd64 ~ppc ~x86"
45 +IUSE="doc exif gif gtk jpeg png postscript tiff truetype X xpm"
46 +
47 +RDEPEND=">=dev-lang/ocaml-3.10.2:=[X?,ocamlopt]
48 + exif? ( media-libs/libexif )
49 + gif? ( media-libs/giflib )
50 + gtk? ( dev-ml/lablgtk )
51 + jpeg? ( virtual/jpeg )
52 + tiff? ( media-libs/tiff )
53 + png? ( >=media-libs/libpng-1.4:0 )
54 + postscript? ( app-text/ghostscript-gpl )
55 + truetype? ( >=media-libs/freetype-2 )
56 + xpm? ( x11-libs/libXpm )
57 + X? ( x11-apps/rgb )
58 + sys-libs/zlib
59 + "
60 +DEPEND="${DEPEND}
61 + doc? ( dev-python/sphinx[latex] )
62 + dev-util/omake
63 + virtual/pkgconfig
64 + dev-ml/findlib"
65 +
66 +camlimages_arg_want() {
67 + echo "ARG_WANT_${2}=$(usex $1 1 0)"
68 +}
69 +
70 +src_compile() {
71 + omake \
72 + $(camlimages_arg_want exif EXIF ) \
73 + $(camlimages_arg_want gif GIF ) \
74 + $(camlimages_arg_want png PNG ) \
75 + $(camlimages_arg_want jpeg JPEG ) \
76 + $(camlimages_arg_want tiff TIFF ) \
77 + $(camlimages_arg_want xpm XPM ) \
78 + $(camlimages_arg_want postscript GS ) \
79 + $(camlimages_arg_want gtk LABLGTK2) \
80 + $(camlimages_arg_want X GRAPHICS) \
81 + $(camlimages_arg_want truetype FREETYPE) \
82 + PATH_GS=/bin/true \
83 + --force-dotomake || die
84 +
85 + if use doc ; then
86 + sphinx-build doc/sphinx sphinxdoc || die
87 + fi
88 +}
89 +
90 +src_install() {
91 + findlib_src_preinst
92 + omake --force-dotomake DESTDIR="${D}" install || die
93 + dodoc README.md
94 + use doc && dohtml -r sphinxdoc/*
95 +}