From c952bf4dc186a298c5ef1596e2c52642072db500 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 1 Apr 2023 11:14:56 +0100 Subject: gentoo auto-resync : 01:04:2023 - 11:14:56 --- dev-ml/findlib/Manifest | 2 +- dev-ml/findlib/findlib-1.9.6-r1.ebuild | 85 ++++++++++++++++++++++++++++++++++ dev-ml/findlib/findlib-1.9.6.ebuild | 78 ------------------------------- 3 files changed, 86 insertions(+), 79 deletions(-) create mode 100644 dev-ml/findlib/findlib-1.9.6-r1.ebuild delete mode 100644 dev-ml/findlib/findlib-1.9.6.ebuild (limited to 'dev-ml/findlib') diff --git a/dev-ml/findlib/Manifest b/dev-ml/findlib/Manifest index fc98410de4a7..e09f044be474 100644 --- a/dev-ml/findlib/Manifest +++ b/dev-ml/findlib/Manifest @@ -6,5 +6,5 @@ DIST findlib-1.9.6.tar.gz 271246 BLAKE2B c9c98b9e92c0cf690e2c8794a1ed606c0288d49 EBUILD findlib-1.8.1-r2.ebuild 1686 BLAKE2B fd37fe0b5b698b8c454c0f13cfc0a59157d9233bc8f75a81045cd2bebf14493f8f72fce5df84eaec1d3b5a73aabee840165bc9898cfac6bd2bfd9a84a75247fd SHA512 147a1448f6988851f2e515bf132956759f80c2515250fffb30ab73ccafcf2625ca838417e08f1ce1c4073d6101425795232ae930dbb759837a4671d5f7e5498c EBUILD findlib-1.9.3.ebuild 1736 BLAKE2B f20a10ae2494692bcfa9917cdbdcf4bcda35a3298d42d4d1bca75356672e9cd74b4e55db1e620b66b302efaeece4e05f99de38aa17871fa0dd87d11d5fdda291 SHA512 2489cb7571bfafd101ed61b49be354697bb029236e5fb2f2f33a4ed40dfae5ad0bf289bb2db70fef4b5d21f08723a5cbc115ef4444047d1e4732889aa69f7ebd EBUILD findlib-1.9.5.ebuild 1763 BLAKE2B 5c7b6bf74a729291f37b31c4973d2aa93fe42df93d01cc2adcd9d97884fe599bd326ba975ac8bf02dcfe653a1a23695be3278d5855a289a41e91e7bba9ff8e8d SHA512 e17d94e26975d0f4df18773e0ff3909ffcd9727a544dfe6166d07adab4e75f9121b0155e8de39b22c15bbae94cb2dd688de9a2869ee4142044366120df6f9b42 -EBUILD findlib-1.9.6.ebuild 1812 BLAKE2B a365cf23b73b7293785b242b755d82de66f7c4bc0ac92c22a196a70c090aad7dd53475d50d54a35c9b1f720811c3b8db89bafc0fa1394fc1ea170ca5b04809bc SHA512 a4399be01ee356570a6d7002ac35199626fe42b081987240095a2a7ad861f429461a176205a4d1ba22d37977d082549b40a3f794360aa553a99937f62765e7c8 +EBUILD findlib-1.9.6-r1.ebuild 1899 BLAKE2B 30adb7940d08b25cbaee605aa0f900f29a7a42f63378f3563b5663602d718fcf37968671a937352bbe7c2dc19e6567a2d07dccda877c3eec0bba84224d45971f SHA512 3f677b22fa3fccef2549209e93f4d520a201461b0e3f910997c399f8b460ac0b1a771cf4e962f78313610b1da5d298f681687a608a80972520192f5d24db4437 MISC metadata.xml 418 BLAKE2B 59a2e1618b3ebec5343c419a335c5cef124f844ee5beff5e8deb3d94b48aed5f1b9f85301f348f85a518d30516a40bab613f3750a8612e8b7a4baef2966dc15a SHA512 5451f3a709e9aa824bd3159dba3f50060e7df6d097ddbfe1cec93e933c34869b5eda66e5fc8b6cfb54940820fbb829ed8b3b1fc6555e06b117bc738f7ea7a1fe diff --git a/dev-ml/findlib/findlib-1.9.6-r1.ebuild b/dev-ml/findlib/findlib-1.9.6-r1.ebuild new file mode 100644 index 000000000000..a344a50250c8 --- /dev/null +++ b/dev-ml/findlib/findlib-1.9.6-r1.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2023 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 ~ia64 ~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 +} + +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 +} diff --git a/dev-ml/findlib/findlib-1.9.6.ebuild b/dev-ml/findlib/findlib-1.9.6.ebuild deleted file mode 100644 index 277e992bd77e..000000000000 --- a/dev-ml/findlib/findlib-1.9.6.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2023 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 ~ia64 ~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" -} - -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 dbm graphics labltk num num-top ocamlbuild; 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 -} -- cgit v1.2.3