dev-ml/num: find install

Closes: https://bugs.gentoo.org/961950
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2025-08-24 20:40:56 +02:00
parent 2da3080f96
commit 746c2f724f
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
--- a/src/Makefile 2025-08-24 20:37:54.276261621 +0200
+++ b/src/Makefile 2025-08-24 20:34:04.708721094 +0200
@@ -156,9 +156,9 @@
install: num-top-install
$(INSTALL_DIR) $(DESTDIR)$(STDLIBDIR)
- cp META.num META
+ mv META.num META
$(OCAMLFIND) install num META
- rm -f META
+ mv META META.num
$(INSTALL_DATA) $(TOINSTALL) $(DESTDIR)$(STDLIBDIR)
ifeq "$(NATDYNLINK)" "true"
$(INSTALL_DLL) $(TOINSTALL_CMXS) $(DESTDIR)$(STDLIBDIR)

View File

@@ -15,6 +15,8 @@ SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="+ocamlopt"
PATCHES=( "${FILESDIR}"/${P}-META.patch )
src_compile() {
emake CFLAGS="${CFLAGS}" \
NATDYNLINK="$(usex ocamlopt true false)" \