diff options
Diffstat (limited to 'dev-ml/camlidl')
-rw-r--r-- | dev-ml/camlidl/Manifest | 2 | ||||
-rw-r--r-- | dev-ml/camlidl/camlidl-1.12.ebuild | 66 |
2 files changed, 68 insertions, 0 deletions
diff --git a/dev-ml/camlidl/Manifest b/dev-ml/camlidl/Manifest index 1ed3f3e77513..a4e599656078 100644 --- a/dev-ml/camlidl/Manifest +++ b/dev-ml/camlidl/Manifest @@ -6,7 +6,9 @@ AUX tests.patch 931 BLAKE2B 0f18d35a22067f0189c413c1d52e8b8823b38bdc0024e35105b3 DIST camlidl-1.05.tar.gz 100640 BLAKE2B 38cbcebd43ced26c44803608aabdacfbd33734357097a542ee2558223b9699d89cf7be388feba59630b10e4dc3977bffd08c669d3cf676d2136f54a6a8d52aab SHA512 e8857aca818a06f8c861e5f55dddd7e8e3ab1efae51647534460b4f092166709d86c6de1215c792a0489d668d72064ccfb7635e9a6d3854cd5a62f74541a9d18 DIST camlidl109.tar.gz 125697 BLAKE2B c42e418525b9681a0e7042aea46fb581a1ffa93be416a9214325883407a62bcad7e8fd7a20fd997640deb42ddca394605f5569bc8f363721b8955629459ff49e SHA512 6cab1fa6bc2afba9b97874520eed2887c4fd341b59735854b120aa1ec8822710d9ebfadd1fecff56e629d4a1af7ee73befe6440c5462493f8408bdae8519a1fa DIST camlidl111.tar.gz 182421 BLAKE2B 5bd4bf2e2eb73f632c5e99a271e13d6a1b4b815476f2a17aaa6a05a4ccf048f4c58b099219e46d36659711f0473dbf91d484d5dcb12ee2e08327afec92a66b66 SHA512 dfd99cb10ee96de4e8a9a2ee86834a33ce10ba362aea93a061c373336db872ddf4017f2601bc47d1662de2f5699e885166dc984a213ff1c4142d41d7c99d7a21 +DIST camlidl112.tar.gz 182507 BLAKE2B 3a1e4f3f7341bb3e34397af995c660178850c9a774a44866f458cb7731e143e5e2252355c200c7d82f7d55d765749aa26105642027867623f0f6e3125f98c892 SHA512 b60b666c865bf923b1f2499238fd81232454a5d358960dd2038707bf71916d5dd7432044a01fa272e61cd2af6867aa23330f6f06398f213fd3e92072e1d784a1 EBUILD camlidl-1.05-r1.ebuild 1454 BLAKE2B 85091bfcc4b093ca6e712b9d64efb6197399278f53ad29efe17553139903e05df21235e9dff67e468f8f26330866cb456c71b0f49a9333727288493aac6bdc2c SHA512 8ad0e42cdfc979f3f4c23ac44d9572b7aa79f325c907bfcf33653b4721c58c604c1e47562070d6536ebd1addd3a0a49ef3a745754cb88086030b92a14e41ebf0 EBUILD camlidl-1.09.ebuild 1603 BLAKE2B 55254c6df8b8b58f1e42358f9b92b63c80474848f9b4a5ed0fea4b3c1680d1190e32c6ad319270647cb13cd162c2aba6f1ec691ae64fa2d847a05e15bf8e3566 SHA512 68c16d7c504b8f31310172c62ec1a108949f8a5a56ed3c6a66b5547d39859401d543ce168d115ffca9cb84f72beaa03f07e6d19eec7b5eb574cff016e3c8cf4a EBUILD camlidl-1.11-r1.ebuild 1530 BLAKE2B ab9cd9cb3a9684b736106e5445557894b38b5d29f6600ad1e2367aea0a03a34641087b250115a79e9d1fdce77a5bac2a96955f16bf37d6074cd2f62286644202 SHA512 e1dfbbed6a47783015008f3d1e38f1c1d6991f044f49c7227f0b97864e0f7af96a20abcaffff9ac60d69f2ace3328580748a4025c38aae6c3134f99312f02767 +EBUILD camlidl-1.12.ebuild 1523 BLAKE2B 381244df4ceba47e1eb0546c518ca727a9157b1e50a95495ceb2b4af99e4d2068b2874872ffd5ceb0321cb601bbb7b5ff0fcf37464ebe775b0b2104946b5f3c7 SHA512 0f0475f737e6f51594c0f9e0a442dbc1138ae4d9c6fd329a7845668c0c05ba882962a488d6e02ba6ff41e6e141d8113040a6d1ee82a29c52c8d7df73d315cc48 MISC metadata.xml 317 BLAKE2B f3eb4e29cb3181ba1fdf25471773a30feb3e45ab69f13cf748fb7b4e562314ee735a6861ba0a5707d73947fe9ef8de3af476088d1170c80567670d373ddc0c86 SHA512 5d0e4830dce77165bf1dce20fae2b3b2a1476429e01a140e2a77b33adcb1ccf328c5c90850685862b7388753295993d958ac4db01d1d7a5fdcb7c99fc85cba1f diff --git a/dev-ml/camlidl/camlidl-1.12.ebuild b/dev-ml/camlidl/camlidl-1.12.ebuild new file mode 100644 index 000000000000..949d6d9386a7 --- /dev/null +++ b/dev-ml/camlidl/camlidl-1.12.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2024 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 BINDIR="${ED}/usr/bin" OCAMLLIB="${D}${libdir}" 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 +} |