Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/camlidl/
Date: Fri, 28 Jan 2022 06:54:20
Message-Id: 1643352844.433d3bbe432eb45f831fea70d2c47d2f8f078449.tupone@gentoo
1 commit: 433d3bbe432eb45f831fea70d2c47d2f8f078449
2 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 28 06:54:04 2022 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 28 06:54:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=433d3bbe
7
8 dev-ml/camlidl: 1.09 bump
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
12
13 dev-ml/camlidl/Manifest | 1 +
14 dev-ml/camlidl/camlidl-1.09.ebuild | 64 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 65 insertions(+)
16
17 diff --git a/dev-ml/camlidl/Manifest b/dev-ml/camlidl/Manifest
18 index 812a3761c903..fe60cb01eec5 100644
19 --- a/dev-ml/camlidl/Manifest
20 +++ b/dev-ml/camlidl/Manifest
21 @@ -1 +1,2 @@
22 DIST camlidl-1.05.tar.gz 100640 BLAKE2B 38cbcebd43ced26c44803608aabdacfbd33734357097a542ee2558223b9699d89cf7be388feba59630b10e4dc3977bffd08c669d3cf676d2136f54a6a8d52aab SHA512 e8857aca818a06f8c861e5f55dddd7e8e3ab1efae51647534460b4f092166709d86c6de1215c792a0489d668d72064ccfb7635e9a6d3854cd5a62f74541a9d18
23 +DIST camlidl109.tar.gz 125697 BLAKE2B c42e418525b9681a0e7042aea46fb581a1ffa93be416a9214325883407a62bcad7e8fd7a20fd997640deb42ddca394605f5569bc8f363721b8955629459ff49e SHA512 6cab1fa6bc2afba9b97874520eed2887c4fd341b59735854b120aa1ec8822710d9ebfadd1fecff56e629d4a1af7ee73befe6440c5462493f8408bdae8519a1fa
24
25 diff --git a/dev-ml/camlidl/camlidl-1.09.ebuild b/dev-ml/camlidl/camlidl-1.09.ebuild
26 new file mode 100644
27 index 000000000000..2861e48e26d7
28 --- /dev/null
29 +++ b/dev-ml/camlidl/camlidl-1.09.ebuild
30 @@ -0,0 +1,64 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit toolchain-funcs
37 +
38 +DESCRIPTION="CamlIDL is a stub code generator for using C/C++ libraries from O'Caml"
39 +HOMEPAGE="http://caml.inria.fr/camlidl/"
40 +SRC_URI="https://github.com/xavierleroy/${PN}/archive/${PN}$(ver_rs 0-1 '').tar.gz"
41 +
42 +LICENSE="QPL-1.0 LGPL-2"
43 +SLOT="0/${PV}"
44 +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
45 +
46 +DEPEND=">=dev-lang/ocaml-3.10.2:=[ocamlopt]"
47 +RDEPEND="${DEPEND}"
48 +
49 +S="${WORKDIR}"/${PN}-${PN}$(ver_rs 0-1 '')
50 +
51 +PATCHES=(
52 + "${FILESDIR}/nowarn.patch"
53 +)
54 +
55 +src_prepare() {
56 + sed -i \
57 + -e "s|ar rc|$(tc-getAR) rc|g" \
58 + runtime/Makefile.unix \
59 + || die
60 + default
61 +}
62 +
63 +src_compile() {
64 + # Use the UNIX makefile
65 + libdir=$(ocamlc -where || die)
66 +
67 + sed -i -e "s|OCAMLLIB=.*|OCAMLLIB=${libdir}|" config/Makefile.unix || die
68 + sed -i -e "s|BINDIR=.*|BINDIR=${EPREFIX}/usr/bin|" config/Makefile.unix || die
69 + ln -s Makefile.unix config/Makefile || die
70 +
71 + # Make
72 + emake -j1 RANLIB="$(tc-getRANLIB)"
73 +}
74 +
75 +src_test() {
76 + einfo "Running tests..."
77 + cd tests || die
78 + emake CCPP="$(tc-getCXX)" CC="$(tc-getCC)"
79 +}
80 +
81 +src_install() {
82 + libdir=$(ocamlc -where || die)
83 + dodir "${libdir#${EPREFIX}}"/caml
84 +
85 + dodir /usr/bin
86 + # Install
87 + emake BINDIR="${ED}/usr/bin" OCAMLLIB="${D}${libdir}" RANLIB="$(tc-getRANLIB)" install
88 +
89 + # Add package header
90 + sed -e "s/@VERSION/${P}/g" "${FILESDIR}/META.camlidl" > "${D}${libdir}/META.camlidl" || die
91 +
92 + # Documentation
93 + dodoc README Changes
94 +}