commit: 69d1225e48079ccb09b060252b325d0cc492320f Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Wed Jul 9 20:41:42 2025 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Wed Jul 9 20:41:59 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69d1225e
dev-ml/camlidl: add 1.13 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> dev-ml/camlidl/Manifest | 1 + dev-ml/camlidl/camlidl-1.13.ebuild | 66 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/dev-ml/camlidl/Manifest b/dev-ml/camlidl/Manifest index eb1e0a710786..5119b3df0d9c 100644 --- a/dev-ml/camlidl/Manifest +++ b/dev-ml/camlidl/Manifest @@ -1 +1,2 @@ DIST camlidl112.tar.gz 182507 BLAKE2B 3a1e4f3f7341bb3e34397af995c660178850c9a774a44866f458cb7731e143e5e2252355c200c7d82f7d55d765749aa26105642027867623f0f6e3125f98c892 SHA512 b60b666c865bf923b1f2499238fd81232454a5d358960dd2038707bf71916d5dd7432044a01fa272e61cd2af6867aa23330f6f06398f213fd3e92072e1d784a1 +DIST camlidl113.tar.gz 183353 BLAKE2B bfbf1fcc8ca8ec6bbb55d38d48dd427d13e38917f3b74d00fb895419f0302f4b6caf16dea167aeeac35326ce116dc8620e9fa5024b1ddf9b25717956c6123ef0 SHA512 c9a33d6b49bf51f1957941bac591090e568ffc2d56b75ed777141ef4fd599c87ae968cdc473d8cee325083aa1a0bbc31215540f19fcfc8bb94f8db2ce9deb35c diff --git a/dev-ml/camlidl/camlidl-1.13.ebuild b/dev-ml/camlidl/camlidl-1.13.ebuild new file mode 100644 index 000000000000..fdf3776daf27 --- /dev/null +++ b/dev-ml/camlidl/camlidl-1.13.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Stub code generator for OCaml" +HOMEPAGE="https://github.com/xavierleroy/camlidl" +SRC_URI="https://github.com/xavierleroy/${PN}/archive/${PN}$(ver_rs 0-1 '').tar.gz" + +S="${WORKDIR}"/${PN}-${PN}$(ver_rs 0-1 '') + +LICENSE="QPL-1.0 LGPL-2" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" + +DEPEND="dev-lang/ocaml:=[ocamlopt]" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/nowarn.patch" +) + +src_prepare() { + sed -i \ + -e "s|ar rc|$(tc-getAR) rc|g" \ + runtime/Makefile.unix \ + || die + default +} + +src_compile() { + # Use the UNIX makefile + libdir=$(ocamlc -where || die) + + sed -i -e "s|OCAMLLIB=.*|OCAMLLIB=${libdir}|" config/Makefile.unix || die + sed -i -e "s|BINDIR=.*|BINDIR=${EPREFIX}/usr/bin|" config/Makefile.unix || die + ln -s Makefile.unix config/Makefile || die + + # Make + emake depend CPP="$(tc-getPROG CPP cpp)" + emake -j1 RANLIB="$(tc-getRANLIB)" +} + +src_test() { + einfo "Running tests..." + cd tests || die + emake CCPP="$(tc-getCXX)" CC="$(tc-getCC)" +} + +src_install() { + libdir=$(ocamlc -where || die) + dodir "${libdir#${EPREFIX}}"/caml + + dodir /usr/bin + dodir /usr/$(get_libdir)/ocaml/stublibs + # Install + emake DESTDIR="${D}" BINDIR="${ED}/usr/bin" RANLIB="$(tc-getRANLIB)" install + + # Add package header + sed -e "s/@VERSION/${P}/g" "${FILESDIR}/META.camlidl" > "${D}${libdir}/META.camlidl" || die + + # Documentation + dodoc README Changes +}
