From a86821de73ec6c33eec1e440237ff484a9df8dc6 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 6 Jul 2024 15:19:55 +0100 Subject: [PATCH 1/2] dev-python/proto-plus: Stabilize 1.24.0 amd64, #935595 Signed-off-by: Sam James --- dev-python/proto-plus/proto-plus-1.24.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-python/proto-plus/proto-plus-1.24.0.ebuild b/dev-python/proto-plus/proto-plus-1.24.0.ebuild index 5f4ec69a8c60d..e71f9a45d8dc6 100644 --- a/dev-python/proto-plus/proto-plus-1.24.0.ebuild +++ b/dev-python/proto-plus/proto-plus-1.24.0.ebuild @@ -22,7 +22,7 @@ S=${WORKDIR}/${MY_P} LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~amd64 arm64 x86" +KEYWORDS="amd64 arm64 x86" RDEPEND=" Date: Sat, 6 Jul 2024 16:27:30 +0200 Subject: [PATCH 2/2] dev-ml/cudf: make it work with ocaml-5 Signed-off-by: Alfredo Tupone --- dev-ml/cudf/cudf-0.10-r1.ebuild | 99 +++++++++++++++++++++++++++++++++ dev-ml/cudf/cudf-0.10.ebuild | 6 +- 2 files changed, 102 insertions(+), 3 deletions(-) create mode 100644 dev-ml/cudf/cudf-0.10-r1.ebuild diff --git a/dev-ml/cudf/cudf-0.10-r1.ebuild b/dev-ml/cudf/cudf-0.10-r1.ebuild new file mode 100644 index 0000000000000..c77436962e307 --- /dev/null +++ b/dev-ml/cudf/cudf-0.10-r1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit dune toolchain-funcs + +MYP=${PN}-v${PV} +DESCRIPTION="Library to parse, pretty print, and evaluate CUDF documents" +HOMEPAGE="http://www.mancoosi.org/cudf/" +SRC_URI="https://gitlab.com/irill/${PN}/-/archive/v${PV}/${MYP}.tar.bz2" + +S="${WORKDIR}"/${MYP} + +LICENSE="LGPL-3+" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" +IUSE="+ocamlopt llvm-libunwind test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-ml/extlib:= + dev-ml/findlib:= + dev-libs/glib:2 + llvm-libunwind? ( sys-libs/llvm-libunwind:= ) + !llvm-libunwind? ( sys-libs/libunwind:= ) + sys-libs/ncurses:= + app-arch/zstd +" +DEPEND="${RDEPEND} + test? ( dev-ml/ounit2 ) + dev-ml/ocamlbuild + dev-lang/perl +" +BDEPEND="virtual/pkgconfig" + +QA_FLAGS_IGNORED='.*' + +src_prepare() { + default + + sed -i \ + -e 's|make|$(MAKE)|g' \ + Makefile || die + + if has_version ">=dev-lang/ocaml-5" ; then + sed -i \ + -e 's|-lncurses|$(shell ${PKG_CONFIG} --libs ncurses glib-2.0) -lunwind -lzstd|g' \ + -e "s|ar r|$(tc-getAR) r|g" \ + c-lib/Makefile || die + sed -i \ + -e 's|-lcurses|$(shell ${PKG_CONFIG} --libs ncurses glib-2.0) -lunwind -lzstd|g' \ + c-lib/Makefile.variants || die + if use ocamlopt ; then + sed -i \ + -e 's|-lunix|-lunixnat|g' \ + c-lib/Makefile || die + else + sed -i \ + -e 's|-lunix|-lunixbyt|g' \ + c-lib/Makefile || die + fi + else + sed -i \ + -e 's|-lncurses|$(shell ${PKG_CONFIG} --libs ncurses glib-2.0) -lunwind|g' \ + -e "s|ar r|$(tc-getAR) r|g" \ + c-lib/Makefile || die + sed -i \ + -e 's|-lcurses|$(shell ${PKG_CONFIG} --libs ncurses glib-2.0) -lunwind|g' \ + c-lib/Makefile.variants || die + fi + + tc-export CC PKG_CONFIG + + sed -i \ + -e "s|-lncurses|$( $(tc-getPKG_CONFIG) --libs ncurses)|g" \ + c-lib/cudf.pc.in || die +} + +src_compile() { + dune_src_compile + emake c-lib + if use ocamlopt ; then + emake c-lib-opt + fi +} + +src_test() { + dune_src_test + emake c-lib-test +} + +src_install() { + dune_src_install + mv "${ED}"/usr/share/doc/${PF}/{cudf/README,} || die + rmdir "${ED}"/usr/share/doc/${PF}/cudf || die + emake DESTDIR="${ED}" -C c-lib/ LIBDIR="/usr/$(get_libdir)" -e install + dodoc BUGS ChangeLog +} diff --git a/dev-ml/cudf/cudf-0.10.ebuild b/dev-ml/cudf/cudf-0.10.ebuild index 00c999757bff9..d4e45e0e014f5 100644 --- a/dev-ml/cudf/cudf-0.10.ebuild +++ b/dev-ml/cudf/cudf-0.10.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -10,6 +10,8 @@ DESCRIPTION="Library to parse, pretty print, and evaluate CUDF documents" HOMEPAGE="http://www.mancoosi.org/cudf/" SRC_URI="https://gitlab.com/irill/${PN}/-/archive/v${PV}/${MYP}.tar.bz2" +S="${WORKDIR}"/${MYP} + LICENSE="LGPL-3" SLOT="0/${PV}" KEYWORDS="amd64 arm arm64 ~ppc ppc64 ~riscv x86" @@ -34,8 +36,6 @@ BDEPEND="virtual/pkgconfig" QA_FLAGS_IGNORED='.*' -S="${WORKDIR}"/${MYP} - src_prepare() { default