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/camlp4/
Date: Tue, 29 Nov 2016 15:05:57
Message-Id: 1480431923.9230f6843712294085ba488ba1b9af4dedaa8916.aballier@gentoo
1 commit: 9230f6843712294085ba488ba1b9af4dedaa8916
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 29 14:54:12 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 29 15:05:23 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9230f684
7
8 dev-ml/camlp4: bump to 4.04_p1
9
10 Package-Manager: portage-2.3.2
11
12 dev-ml/camlp4/Manifest | 1 +
13 dev-ml/camlp4/camlp4-4.04_p1.ebuild | 44 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 45 insertions(+)
15
16 diff --git a/dev-ml/camlp4/Manifest b/dev-ml/camlp4/Manifest
17 index 5431eba..40cc127 100644
18 --- a/dev-ml/camlp4/Manifest
19 +++ b/dev-ml/camlp4/Manifest
20 @@ -1,2 +1,3 @@
21 DIST camlp4-4.02.1_p3.tar.gz 646389 SHA256 c28058b20016dac51d492b1a98e6453d2c7097100542c99a0593cc240a3eeada SHA512 59d196be0bb7410ffd48a3d2debff4502ca58e7b032027b27b9d126381c02336f177a47585a7d7a3142049930c21dbe075068852e6369fe7e8a58e3339d96041 WHIRLPOOL bedcbaa86a1282bed6d51a64b1877575e727cbf2485abf38bcbed49b18cbad9e8548e0fb413daf216f3d78fde2710c95de49a5055cbb3548eb284515148a3e7d
22 DIST camlp4-4.03_p1.tar.gz 648030 SHA256 6eefeacced81cca59ddf90c2538505fd5cd6596a3fc1acf4971e9796c2e7f2ae SHA512 0a329e18deffebb5245415f822f91e692076fca4dbe38748f18e72f417ce7354faed744fdff25f9976659192cb02d56ceb2cf1be5c64da463413ec4a28a9d3ac WHIRLPOOL a9aa6ff12957025ab796b02eec2268d51f71ebd64d395b0b5cad2d9d8bde91da4129f4f6606514c0e1b9480cf2e648158b0bdd6878ee29c3adadee64937bc87d
23 +DIST camlp4-4.04_p1.tar.gz 648320 SHA256 6044f24a44053684d1260f19387e59359f59b0605cdbf7295e1de42783e48ff1 SHA512 7db8eebcf3d230f60650ba62d9cb630c069394237e97b678a40b61d3dcaded752a2b7e089a50ff528f1ea0740d0291b722df123a072f2cee489cadc5201c6776 WHIRLPOOL 6cfed59e81dbd92debe23670657eb7e96125105fccb7b20a8e16553090cc9a0e8c732b8e0cac1a9b39e172aa8dfaae145ba8827948f371aeaa69345f3ba39096
24
25 diff --git a/dev-ml/camlp4/camlp4-4.04_p1.ebuild b/dev-ml/camlp4/camlp4-4.04_p1.ebuild
26 new file mode 100644
27 index 00000000..51f53e2
28 --- /dev/null
29 +++ b/dev-ml/camlp4/camlp4-4.04_p1.ebuild
30 @@ -0,0 +1,44 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +
37 +MY_PV=${PV/_p/+}
38 +MY_P=${PN}-${MY_PV}
39 +
40 +DESCRIPTION="System for writing extensible parsers for programming languages"
41 +HOMEPAGE="https://github.com/ocaml/camlp4"
42 +SRC_URI="https://github.com/ocaml/camlp4/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="LGPL-2-with-linking-exception"
45 +SLOT="0/${PV}"
46 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
47 +IUSE="+ocamlopt"
48 +
49 +DEPEND=">=dev-lang/ocaml-4.04_beta:=[ocamlopt?]"
50 +RDEPEND="${DEPEND}
51 + !<dev-lang/ocaml-4.02
52 + !<dev-ml/findlib-1.5.5-r1"
53 +DEPEND="${DEPEND}
54 + || ( dev-ml/ocamlbuild <dev-lang/ocaml-4.02.3-r1 )"
55 +
56 +S=${WORKDIR}/${P/_p/-}
57 +
58 +src_configure() {
59 + ./configure \
60 + --bindir="${EPREFIX}/usr/bin" \
61 + --libdir="$(ocamlc -where)" \
62 + --pkgdir="$(ocamlc -where)" \
63 + || die
64 +}
65 +
66 +src_compile() {
67 + emake byte
68 + use ocamlopt && emake native
69 +}
70 +
71 +src_install() {
72 + emake DESTDIR="${D}" install install-META
73 + dodoc CHANGES.md README.md
74 +}