From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A73E115817D for ; Sun, 16 Jun 2024 13:58:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2B21E2AFA; Sun, 16 Jun 2024 13:58:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9D7A8E2AFA for ; Sun, 16 Jun 2024 13:58:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8F9FA335D72 for ; Sun, 16 Jun 2024 13:58:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 26DA614B0 for ; Sun, 16 Jun 2024 13:58:06 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1718546219.6d6bf4f55b3539760b02ee05bc223b92e88e42c7.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/camlidl/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ml/camlidl/Manifest dev-ml/camlidl/camlidl-1.12.ebuild X-VCS-Directories: dev-ml/camlidl/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: 6d6bf4f55b3539760b02ee05bc223b92e88e42c7 X-VCS-Branch: master Date: Sun, 16 Jun 2024 13:58:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3236bc8a-e02c-477d-814c-b109490d2501 X-Archives-Hash: c21f4a13c97ab9b1aa2b7e5c15075c63 commit: 6d6bf4f55b3539760b02ee05bc223b92e88e42c7 Author: Alfredo Tupone gentoo org> AuthorDate: Sun Jun 16 13:55:13 2024 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Sun Jun 16 13:56:59 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d6bf4f5 dev-ml/camlidl: add 1.12 Signed-off-by: Alfredo Tupone gentoo.org> dev-ml/camlidl/Manifest | 1 + dev-ml/camlidl/camlidl-1.12.ebuild | 66 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/dev-ml/camlidl/Manifest b/dev-ml/camlidl/Manifest index 5a8705c56ec1..ed2eeb57e751 100644 --- a/dev-ml/camlidl/Manifest +++ b/dev-ml/camlidl/Manifest @@ -1,3 +1,4 @@ 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 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 +}