summaryrefslogtreecommitdiff
path: root/dev-ml/camlidl/files
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2024-06-17 17:56:28 +0200
committerAlfredo Tupone <tupone@gentoo.org>2024-06-17 17:57:11 +0200
commitb05fc288cb8b51f7ca14f758dd52392c1bfdf368 (patch)
tree8e1f89b9caac70121db1bd04dfecb1a3e14a7684 /dev-ml/camlidl/files
parent0b686f8bff9addb5b5eddabdcaa11998d954cf52 (diff)
downloadgentoo-b05fc288cb8b51f7ca14f758dd52392c1bfdf368.tar.gz
gentoo-b05fc288cb8b51f7ca14f758dd52392c1bfdf368.tar.bz2
gentoo-b05fc288cb8b51f7ca14f758dd52392c1bfdf368.zip
dev-ml/camlidl: fix install, rm old versions
Closes: https://bugs.gentoo.org/934424 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ml/camlidl/files')
-rw-r--r--dev-ml/camlidl/files/camlidl-1.12-destdir.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/dev-ml/camlidl/files/camlidl-1.12-destdir.patch b/dev-ml/camlidl/files/camlidl-1.12-destdir.patch
new file mode 100644
index 000000000000..6f2b14f8f583
--- /dev/null
+++ b/dev-ml/camlidl/files/camlidl-1.12-destdir.patch
@@ -0,0 +1,32 @@
+--- a/runtime/Makefile.unix 2024-06-17 10:03:13.524360767 +0200
++++ b/runtime/Makefile.unix 2024-06-17 10:03:55.768905814 +0200
+@@ -26,10 +26,10 @@
+ # $(RANLIB) $@
+
+ install:
+- cp camlidlruntime.h $(OCAMLLIB)/caml/camlidlruntime.h
+- cp libcamlidl.a $(OCAMLLIB)/libcamlidl.a
+- cp dllcamlidl.so $(OCAMLLIB)/stublibs/dllcamlidl.so
+- cd $(OCAMLLIB); $(RANLIB) libcamlidl.a
++ cp camlidlruntime.h $(DESTDIR)$(OCAMLLIB)/caml/camlidlruntime.h
++ cp libcamlidl.a $(DESTDIR)$(OCAMLLIB)/libcamlidl.a
++ cp dllcamlidl.so $(DESTDIR)$(OCAMLLIB)/stublibs/dllcamlidl.so
++ cd $(DESTDIR)$(OCAMLLIB); $(RANLIB) libcamlidl.a
+
+ clean:
+ rm -f *.a *.o *.so
+--- a/lib/Makefile 2024-06-17 10:06:49.145036983 +0200
++++ b/lib/Makefile 2024-06-17 10:07:44.366441218 +0200
+@@ -40,10 +40,10 @@
+ $(OCAMLOPT) -a -o $(NATIVELIB) -cclib -lcamlidl $(NATIVEOBJS)
+
+ installbyt:
+- cp -p $(INTERFACES) $(BYTELIB) $(OCAMLLIB)
++ cp -p $(INTERFACES) $(BYTELIB) $(DESTDIR)$(OCAMLLIB)
+
+ installopt:
+- cp -p $(NATIVELIB) $(NATIVELIB:.cmxa=.$(LIBEXT)) $(OCAMLLIB)
++ cp -p $(NATIVELIB) $(NATIVELIB:.cmxa=.$(LIBEXT)) $(DESTDIR)$(OCAMLLIB)
+
+ .SUFFIXES: .mli .ml .cmi .cmo .cmx
+