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/findlib/
Date: Sat, 29 Jan 2022 20:36:24
Message-Id: 1643488569.b8b476ca476297f8c6b2302f198913fd88771900.tupone@gentoo
1 commit: b8b476ca476297f8c6b2302f198913fd88771900
2 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 29 20:36:09 2022 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 29 20:36:09 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8b476ca
7
8 dev-ml/findlib: 1.9.3 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/findlib/Manifest | 1 +
14 dev-ml/findlib/findlib-1.9.3.ebuild | 75 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 76 insertions(+)
16
17 diff --git a/dev-ml/findlib/Manifest b/dev-ml/findlib/Manifest
18 index 080ad5e1099d..b559fe7dc73d 100644
19 --- a/dev-ml/findlib/Manifest
20 +++ b/dev-ml/findlib/Manifest
21 @@ -1,2 +1,3 @@
22 DIST findlib-1.8.1.tar.gz 261544 BLAKE2B acfa9d4e0d118ebbc0dd7b03da1fe5eaa994e5fec13dc54e60ba42f643d93968469a1a43fe4f832433dca6c3902e8846616fcf460c748bf037fe16cb2f93a847 SHA512 0d8e1ff21217fcc6823aab3ac71282789691e4ae8c3607703d0393468247f93e2d084bd4e2a8795b523f2c7f193521d3aae4b8122c934ebf8b58c3185a5bc9c1
23 DIST findlib-1.9.1.tar.gz 273012 BLAKE2B 8b51e3ca3dde04e77e225638f9d45166acf42fb1e3321aa5ce6e66fcddcfb978a301f2fa22a26172e1a8c2f8a879c5d1d10e8c984994d6b2879c21c4392955ce SHA512 83a05f3e310fa7cabb0475c5525f7a87c1b6bc2dc5e39f094cabfb5d944a826a5581844ba00ec1a48dd96184eb9de3c4d1055cdddee2b83c700a2de5a6dc6f84
24 +DIST findlib-1.9.3.tar.gz 264132 BLAKE2B 3779cb437c607d04ae6c7d8124270f36c9bd9baccce669f3785a9cd4a1a582302844019b69be14598ca807edecb26645d9d7b241e1d704c3f023ed039cad21f0 SHA512 27cc4ce141576bf477fb9d61a82ad65f55478740eed59fb43f43edb794140829fd2ff89ad27d8a890cfc336b54c073a06de05b31100fc7c01cacbd7d88e928ea
25
26 diff --git a/dev-ml/findlib/findlib-1.9.3.ebuild b/dev-ml/findlib/findlib-1.9.3.ebuild
27 new file mode 100644
28 index 000000000000..cee9e2b0d305
29 --- /dev/null
30 +++ b/dev-ml/findlib/findlib-1.9.3.ebuild
31 @@ -0,0 +1,75 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +DESCRIPTION="OCaml tool to find/use non-standard packages"
38 +HOMEPAGE="http://projects.camlcity.org/projects/findlib.html"
39 +SRC_URI="http://download.camlcity.org/download/${P}.tar.gz"
40 +
41 +LICENSE="MIT"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
44 +IUSE="doc +ocamlopt tk"
45 +
46 +DEPEND=">=dev-lang/ocaml-4.02.3-r1:=[ocamlopt?]
47 + tk? ( dev-ml/labltk:= )"
48 +RDEPEND="${DEPEND}"
49 +
50 +QA_FLAGS_IGNORED='.*'
51 +
52 +src_prepare() {
53 + default
54 + export ocamlfind_destdir="${EPREFIX}/usr/$(get_libdir)/ocaml"
55 + export stublibs="${ocamlfind_destdir}/stublibs"
56 +}
57 +
58 +src_configure() {
59 + local myconf
60 + use tk && myconf="-with-toolbox"
61 + ./configure -bindir "${EPREFIX}"/usr/bin -mandir "${EPREFIX}"/usr/share/man \
62 + -sitelib ${ocamlfind_destdir} \
63 + -config ${ocamlfind_destdir}/findlib/findlib.conf \
64 + -no-custom \
65 + ${myconf} || die "configure failed"
66 +}
67 +
68 +src_compile() {
69 + emake -j1 all
70 + if use ocamlopt; then
71 + emake -j1 opt # optimized code
72 + fi
73 +}
74 +
75 +src_install() {
76 + emake prefix="${D}" install
77 +
78 + dodir "${stublibs#${EPREFIX}}"
79 +
80 + if use doc; then
81 + cd "${S}/doc" || die
82 + dodoc QUICKSTART README DOCINFO
83 + docinto html
84 + dodoc -r ref-html guide-html
85 + fi
86 +}
87 +
88 +check_stublibs() {
89 + local ocaml_stdlib=`ocamlc -where`
90 + local ldconf="${ocaml_stdlib}/ld.conf"
91 +
92 + if [ ! -e ${ldconf} ]
93 + then
94 + echo "${ocaml_stdlib}" > ${ldconf}
95 + echo "${ocaml_stdlib}/stublibs" >> ${ldconf}
96 + fi
97 +
98 + if [ -z `grep -e ${stublibs} ${ldconf}` ]
99 + then
100 + echo ${stublibs} >> ${ldconf}
101 + fi
102 +}
103 +
104 +pkg_postinst() {
105 + check_stublibs
106 +}