Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/camlp5/
Date: Tue, 29 Dec 2020 04:14:39
Message-Id: 1609214814.58a342de13ede0922b4f497247d1bffe8e72d0eb.sam@gentoo
1 commit: 58a342de13ede0922b4f497247d1bffe8e72d0eb
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 29 04:06:47 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 29 04:06:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58a342de
7
8 dev-ml/camlp5: bump to 7.14
9
10 * Adds 4.12.0 support
11 * Should support 4.10.2 now too
12 * Adds tests
13
14 Package-Manager: Portage-3.0.9, Repoman-3.0.2
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16
17 dev-ml/camlp5/Manifest | 1 +
18 dev-ml/camlp5/camlp5-7.14.ebuild | 59 ++++++++++++++++++++++++++++++++++++++++
19 2 files changed, 60 insertions(+)
20
21 diff --git a/dev-ml/camlp5/Manifest b/dev-ml/camlp5/Manifest
22 index ecf3d1602bd..87216412e8f 100644
23 --- a/dev-ml/camlp5/Manifest
24 +++ b/dev-ml/camlp5/Manifest
25 @@ -1,3 +1,4 @@
26 DIST camlp5-7.11.tar.gz 878224 BLAKE2B f384764da43653a2f75664681a4f202ec84497720470a0a33f99fc61a1ce7b4a9d494ffe6b523c74906c122ee04ae25a08bf1fcd356145e85a11e3e3095bbf7d SHA512 109a43f0a3aaa7a3ba9bd51b1fc1273b054d32787e189b138d69b39c42642b480c13abb9e91f15e6b6e889eaf4dc422ad3ff51e4dee298fb9d8cd9a2db99c159
27 DIST camlp5-7.12.tar.gz 1008350 BLAKE2B 8f390f6d617a6ef029462aa74ca4d80c0e2eb267bb6957aac43fdecc425aae34dfc7f3e572c8a1f4ee6b032dd90b3b8262094f80a19ea0bb19b80a88d22d3f28 SHA512 233d973b0a968a7812b977e8a37da8e8daa0f3ef81ca7c473d83c1602380dae6c14f94daffb6bb799f8d90fab121238a46e89a233202cd6f622b0da2f728c0c0
28 DIST camlp5-7.13.tar.gz 1031832 BLAKE2B 2afd7e269092d9c40f263e9ce92b3b9f66b0b3f0ae01da43e2094c6a919aa9f26790030f835b630547d51e7bb4a08e74ac8522e7f308864896fa0414370f8f2f SHA512 8ab94b951e6791be895c70e32b930e498229c9ba7bccc505a3e7c2a91ca12fe038b979b9d5822b43e9c74ee2bf552efa1af7a61f1d287100803efb540d5db8b2
29 +DIST camlp5-7.14.tar.gz 1044110 BLAKE2B c9aa5be80df8d2c376fc41c157b2cd86658dbb90e1babd346b7681afd7453649c7f3682f95f238e51b74b3b3a7a2c5b5a854be892b30a7d1e3b62c3272f5442e SHA512 1b39949c532ca622b01a8e800aa1dcad34f1c944ffe580003642bd742dedc158f3ee54602f3b05f89c0e259525d7feed101b971ebd589449b6d56046389a5bf6
30
31 diff --git a/dev-ml/camlp5/camlp5-7.14.ebuild b/dev-ml/camlp5/camlp5-7.14.ebuild
32 new file mode 100644
33 index 00000000000..cd630ba25bd
34 --- /dev/null
35 +++ b/dev-ml/camlp5/camlp5-7.14.ebuild
36 @@ -0,0 +1,59 @@
37 +# Copyright 1999-2020 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +
42 +inherit findlib vcs-clean
43 +
44 +DESCRIPTION="A preprocessor-pretty-printer of ocaml"
45 +HOMEPAGE="https://camlp5.github.io/"
46 +SRC_URI="https://github.com/camlp5/camlp5/archive/rel$(ver_rs 1- '').tar.gz -> ${P}.tar.gz"
47 +S="${WORKDIR}/${PN}-rel$(ver_rs 1- '')"
48 +
49 +LICENSE="BSD"
50 +SLOT="0/${PV}"
51 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
52 +IUSE="doc +ocamlopt"
53 +
54 +DEPEND="
55 + >=dev-lang/ocaml-3.10:=[ocamlopt?]
56 +"
57 +RDEPEND="${DEPEND}"
58 +
59 +PATCHES=( "${FILESDIR}/${PN}-7.12-destdir.patch" )
60 +
61 +src_prepare() {
62 + egit_clean
63 + default
64 +}
65 +
66 +src_configure() {
67 + ./configure \
68 + --strict \
69 + -prefix /usr \
70 + -bindir /usr/bin \
71 + -libdir /usr/$(get_libdir)/ocaml \
72 + -mandir /usr/share/man || die "configure failed"
73 +}
74 +
75 +src_compile() {
76 + emake out
77 + if use ocamlopt; then
78 + emake opt
79 + emake opt.opt
80 + fi
81 +}
82 +
83 +src_test() {
84 + emake bootstrap
85 +}
86 +
87 +src_install() {
88 + emake DESTDIR="${ED}" install
89 + # findlib support
90 + insinto "$(ocamlfind printconf destdir)/${PN}"
91 + doins etc/META
92 +
93 + dodoc -r doc/*
94 + dodoc CHANGES DEVEL ICHANGES README.md UPGRADING MODE
95 +}