The following commit has been merged in the master branch:
commit 47ec46f8e66c8f4cde8096c30e7786d2fe7278d0
Author: Ralf Treinen <trei...@debian.org>
Date:   Fri Jan 27 16:53:53 2012 +0100

    honor $(PREFIX) when installing stuff

diff --git a/debian/patches/make_install b/debian/patches/make_install
new file mode 100644
index 0000000..d954294
--- /dev/null
+++ b/debian/patches/make_install
@@ -0,0 +1,20 @@
+Author: Ralf Treinen <trei...@debian.org>
+Description: honor $(PREFIX) when installing libraries
+
+Index: ocaml-gnuplot/Makefile
+===================================================================
+--- ocaml-gnuplot.orig/Makefile        2012-01-27 16:56:36.000000000 +0100
++++ ocaml-gnuplot/Makefile     2012-01-27 16:57:56.000000000 +0100
+@@ -73,10 +73,10 @@
+ # Installation
+ .PHONY: install
+ install: META all
+-      $(OCAMLFIND) install $(PKGNAME) META $(INSTALL_FILES)
++      $(OCAMLFIND) install -destdir $(PREFIX) $(PKGNAME) META $(INSTALL_FILES)
+ 
+ uninstall:
+-      $(OCAMLFIND) remove $(PKGNAME)
++      $(OCAMLFIND) remove -destdir $(PREFIX) $(PKGNAME)
+ 
+ META: META.in
+       $(COPY) $^ $@
diff --git a/debian/patches/series b/debian/patches/series
index 8d1f96d..dee6a7c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 make_clean
+make_install

-- 
ocaml-gnuplot packaging

_______________________________________________
Pkg-ocaml-maint-commits mailing list
Pkg-ocaml-maint-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits

Reply via email to