public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alfredo Tupone" <tupone@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/findlib/
Date: Mon, 18 Nov 2024 07:03:15 +0000 (UTC)	[thread overview]
Message-ID: <1731913379.fbbf5f0f5e0be92fa427e2f89e6476b969370a57.tupone@gentoo> (raw)

commit:     fbbf5f0f5e0be92fa427e2f89e6476b969370a57
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 18 07:02:59 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Nov 18 07:02:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbbf5f0f

dev-ml/findlib: add 1.9.8

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ml/findlib/Manifest             |  1 +
 dev-ml/findlib/findlib-1.9.8.ebuild | 90 +++++++++++++++++++++++++++++++++++++
 2 files changed, 91 insertions(+)

diff --git a/dev-ml/findlib/Manifest b/dev-ml/findlib/Manifest
index 9460a897817a..7576d45e6170 100644
--- a/dev-ml/findlib/Manifest
+++ b/dev-ml/findlib/Manifest
@@ -3,3 +3,4 @@ DIST findlib-1.9.3.tar.gz 264132 BLAKE2B 3779cb437c607d04ae6c7d8124270f36c9bd9ba
 DIST findlib-1.9.5.tar.gz 271240 BLAKE2B 6f43281298a9e443f9b92bcb8996bc2a55c2be86df492540fe8b5fb3fbb199daf1daef68e14c981d153c885c443ebc4af9ffb957235dd14904b9d75ca387cfa2 SHA512 03514c618a16b02889db997c6c4789b3436b3ad7d974348d2c6dea53eb78898ab285ce5f10297c074bab4fd2c82931a8b7c5c113b994447a44abb30fca74c715
 DIST findlib-1.9.6.tar.gz 271246 BLAKE2B c9c98b9e92c0cf690e2c8794a1ed606c0288d49a016dfa08592c9f617be1020385f52bf37345a7cbcbc7f0fcb19750a6617036cbf90afef231eccdbc7132baf8 SHA512 cfaf1872d6ccda548f07d32cc6b90c3aafe136d2aa6539e03143702171ee0199add55269bba894c77115535dc46a5835901a5d7c75768999e72db503bfd83027
 DIST findlib-1.9.7.tar.gz 274563 BLAKE2B c8cead9b51beb0798229c270705284d168b3c667f7eeade1a0187bf9024f41648764b520409c61dcb01f687fc037745dc9eb7361b097e8b4939cf877e12c7a94 SHA512 3aa1f06d5a230d7467b6f42257ba4b6a2481c8bd6cb5e51df87f86d652d47a08bd3efffe48edaeb9fcbb4b38a7aed65767f265901c5d6570acc131f7afce66bb
+DIST findlib-1.9.8.tar.gz 274668 BLAKE2B 2483d2b833d566508680a5b9b3949aef187c290ab5602ef423ede214cb57f4b8f61dfeb9cc712499d8c7d0590388bf5e481263bbc841488e1fb62e866f9b64d8 SHA512 64aa28ac27358e1bc5d118e283fb64757fb96329151860bb9c1e9352a9fa1728ebcb4320b8d2eeb57ed2eea83c9849ea89d06c0fa25e1884ececb431341f9f1a

diff --git a/dev-ml/findlib/findlib-1.9.8.ebuild b/dev-ml/findlib/findlib-1.9.8.ebuild
new file mode 100644
index 000000000000..df488e936207
--- /dev/null
+++ b/dev-ml/findlib/findlib-1.9.8.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="OCaml tool to find/use non-standard packages"
+HOMEPAGE="http://projects.camlcity.org/projects/findlib.html"
+SRC_URI="http://download.camlcity.org/download/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="doc +ocamlopt tk"
+
+DEPEND=">=dev-lang/ocaml-4.02.3-r1:=[ocamlopt?]
+	tk? ( dev-ml/labltk:= )"
+RDEPEND="${DEPEND}"
+
+QA_FLAGS_IGNORED='.*'
+
+src_prepare() {
+	default
+	export ocamlfind_destdir="${EPREFIX}/usr/$(get_libdir)/ocaml"
+	export stublibs="${ocamlfind_destdir}/stublibs"
+	sed -i \
+		-e "/dbm/d" \
+		-e "/graphics/d" \
+		-e "/ocamlbuild/d" \
+		-e "/check_library num/d" \
+		configure \
+		|| die
+	sed -i \
+		-e "s|capitalize |capitalize_ascii |" \
+		-e "s|Pervasives.||" \
+		src/findlib-toolbox/make_wizard.ml \
+		|| die
+}
+
+src_configure() {
+	local myconf
+	use tk && myconf="-with-toolbox"
+	./configure -bindir "${EPREFIX}"/usr/bin -mandir "${EPREFIX}"/usr/share/man \
+		-sitelib ${ocamlfind_destdir} \
+		-config ${ocamlfind_destdir}/findlib/findlib.conf \
+		-no-custom \
+		${myconf} || die "configure failed"
+}
+
+src_compile() {
+	emake -j1 all
+	if use ocamlopt; then
+		emake -j1 opt # optimized code
+	fi
+}
+
+src_install() {
+	emake prefix="${D}" install
+
+	dodir "${stublibs#${EPREFIX}}"
+
+	if use doc; then
+		cd "${S}/doc" || die
+		dodoc QUICKSTART README DOCINFO
+		docinto html
+		dodoc -r ref-html guide-html
+	fi
+
+	# See bug #803275 and bug #833604
+	for x in camlp4 labltk; do
+		rm -rf "${ED}"/usr/$(get_libdir)/ocaml/${x} || die
+	done
+}
+
+check_stublibs() {
+	local ocaml_stdlib=$(ocamlc -where)
+	local ldconf="${ocaml_stdlib}/ld.conf"
+
+	if [[ ! -e ${ldconf} ]] ; then
+		echo "${ocaml_stdlib}" > ${ldconf} || die
+		echo "${ocaml_stdlib}/stublibs" >> ${ldconf} || die
+	fi
+
+	if ! grep -qe ${stublibs} ${ldconf} ; then
+		echo ${stublibs} >> ${ldconf} || die
+	fi
+}
+
+pkg_postinst() {
+	check_stublibs
+}


             reply	other threads:[~2024-11-18  7:03 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-18  7:03 Alfredo Tupone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-09-29 10:16 [gentoo-commits] repo/gentoo:master commit in: dev-ml/findlib/ Alfredo Tupone
2025-03-12 20:05 Alfredo Tupone
2025-03-12 14:44 Alfredo Tupone
2024-06-01 21:27 Alfredo Tupone
2023-04-03 19:08 Arthur Zamarin
2023-04-02 16:22 Sam James
2023-04-01  7:00 Alfredo Tupone
2023-03-26  7:44 Alfredo Tupone
2023-03-25 19:26 Arthur Zamarin
2023-03-25 12:58 Arthur Zamarin
2023-03-22 10:16 Sam James
2023-03-22  7:35 Sam James
2023-03-22  7:35 Sam James
2023-03-22  3:46 Sam James
2023-02-15 18:38 Matt Turner
2023-01-07 11:10 Maciej Barć
2022-12-04 17:28 WANG Xuerui
2022-07-22  2:26 Maciej Barć
2022-07-22  2:26 Maciej Barć
2022-01-29 20:36 Alfredo Tupone
2022-01-07 20:00 Alfredo Tupone
2021-07-20 18:18 Alfredo Tupone
2021-01-26 18:22 Alfredo Tupone
2021-01-17 17:38 Sam James
2021-01-17 17:38 Sam James
2020-12-20 18:43 Sam James
2020-12-17 14:50 Aaron Bauman
2020-12-17 12:10 Sam James
2020-12-17  6:44 Sam James
2020-12-02 23:31 Thomas Deutschmann
2020-12-02 22:32 Sam James
2020-12-02 14:58 Sam James
2020-11-29 17:11 Sergei Trofimovich
2020-11-28 18:37 Aaron Bauman
2020-03-31 17:51 Mart Raudsepp
2020-02-11 11:30 Agostino Sarubbo
2020-02-11 11:09 Agostino Sarubbo
2020-02-11 10:58 Agostino Sarubbo
2020-02-11 10:55 Agostino Sarubbo
2020-02-11  9:52 Agostino Sarubbo
2020-02-10 18:10 Agostino Sarubbo
2020-02-09 20:44 Miroslav Šulc
2019-12-27 18:07 Jason A. Donenfeld
2018-04-02  6:23 Matt Turner
2017-06-18 15:14 Alexis Ballier
2017-02-12 19:57 Markus Meier
2017-02-08 18:10 Alexis Ballier
2017-01-29 23:02 Jeroen Roovers
2017-01-26 15:28 Agostino Sarubbo
2017-01-26 11:00 Agostino Sarubbo
2017-01-26 10:22 Agostino Sarubbo
2017-01-25 19:21 Tobias Klausmann
2017-01-25 15:52 Agostino Sarubbo
2017-01-25 15:35 Agostino Sarubbo
2017-01-25 14:29 Agostino Sarubbo
2017-01-14 17:14 Mikle Kolyada
2016-10-03 17:17 Alexis Ballier
2016-03-01 18:47 Alexis Ballier
2016-02-04 17:24 Tobias Klausmann
2015-11-21 14:26 Markus Meier
2015-11-12 11:21 Agostino Sarubbo
2015-11-11  9:54 Agostino Sarubbo
2015-11-10 12:01 Agostino Sarubbo
2015-11-03  4:14 Jeroen Roovers
2015-11-01 11:12 Jeroen Roovers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1731913379.fbbf5f0f5e0be92fa427e2f89e6476b969370a57.tupone@gentoo \
    --to=tupone@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox