summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjoerg <joerg>2010-01-30 19:10:25 +0000
committerjoerg <joerg>2010-01-30 19:10:25 +0000
commitf7bccae09e1d4cd0400bb70d0bc223d52cc011ca (patch)
tree38a8bd451e6c4434d25e7f1baf6b8f89229662db /devel
parenta5695c2b6f49f3222b98993aa17d49fa771b60b9 (diff)
downloadpkgsrc-f7bccae09e1d4cd0400bb70d0bc223d52cc011ca.tar.gz
DESTDIR support
Diffstat (limited to 'devel')
-rw-r--r--devel/ocaml-lwt/Makefile9
-rw-r--r--devel/ocaml-lwt/distinfo4
-rw-r--r--devel/ocaml-lwt/patches/patch-aa32
-rw-r--r--devel/pcre-ocaml/Makefile8
-rw-r--r--devel/pcre-ocaml/distinfo4
-rw-r--r--devel/pcre-ocaml/patches/patch-ab4
6 files changed, 45 insertions, 16 deletions
diff --git a/devel/ocaml-lwt/Makefile b/devel/ocaml-lwt/Makefile
index 7cba030532d..08e657b55b8 100644
--- a/devel/ocaml-lwt/Makefile
+++ b/devel/ocaml-lwt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2010/01/17 12:02:13 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2010/01/30 19:10:25 joerg Exp $
#
DISTNAME= lwt-1.1.0
@@ -11,6 +11,8 @@ MAINTAINER= jaapb@kerguelen.org
HOMEPAGE= http://www.ocsigen.org/
COMMENT= Cooperative threading library for OCaml
+PKG_DESTDIR_SUPPORT= user-destdir
+
MAKE_JOBS_SAFE= no
DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
@@ -29,9 +31,10 @@ PLIST_SRC+= PLIST.opt
BUILD_TARGET+= doc
PLIST_SRC+= PLIST
+INSTALLATION_DIRS+= share/doc/ocaml-lwt
+
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${PKGBASE}
- ${INSTALL_DATA} ${WRKSRC}/_build/lwt.docdir/* ${PREFIX}/share/doc/${PKGBASE}
+ ${INSTALL_DATA} ${WRKSRC}/_build/lwt.docdir/* ${DESTDIR}${PREFIX}/share/doc/ocaml-lwt
.include "../../security/ocaml-ssl/buildlink3.mk"
.include "../../lang/ocaml/buildlink3.mk"
diff --git a/devel/ocaml-lwt/distinfo b/devel/ocaml-lwt/distinfo
index f1af4705333..81542ce32a3 100644
--- a/devel/ocaml-lwt/distinfo
+++ b/devel/ocaml-lwt/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/09/02 11:19:35 obache Exp $
+$NetBSD: distinfo,v 1.2 2010/01/30 19:10:25 joerg Exp $
SHA1 (lwt-1.1.0.tar.gz) = 838d99ce53accb4d0a393c4dd0f757d130a6bc2c
RMD160 (lwt-1.1.0.tar.gz) = e7359a29af3c91ac006dfb3fc1150264aa27927b
Size (lwt-1.1.0.tar.gz) = 32844 bytes
-SHA1 (patch-aa) = 84e614fd2734309a4dc83fbda25a5cad175a3e0b
+SHA1 (patch-aa) = 69047b997d80e4d2177f62c581f19c4365326319
diff --git a/devel/ocaml-lwt/patches/patch-aa b/devel/ocaml-lwt/patches/patch-aa
index cfe1e9bab55..20d0fbb1112 100644
--- a/devel/ocaml-lwt/patches/patch-aa
+++ b/devel/ocaml-lwt/patches/patch-aa
@@ -1,8 +1,17 @@
-$NetBSD: patch-aa,v 1.1.1.1 2008/09/02 11:19:35 obache Exp $
+$NetBSD: patch-aa,v 1.2 2010/01/30 19:10:25 joerg Exp $
---- Makefile.orig 2008-07-07 11:24:41.000000000 +0200
-+++ Makefile 2008-07-07 11:24:56.000000000 +0200
-@@ -36,13 +36,13 @@
+--- Makefile.orig 2008-06-25 15:23:14.000000000 +0000
++++ Makefile
+@@ -22,7 +22,7 @@
+
+ OCAMLFIND := ocamlfind
+ OCAMLBUILD := ocamlbuild
+-DESTDIR := $(shell $(OCAMLFIND) printconf destdir)/$(NAME)
++INSTALLDIR := ${DESTDIR}$(shell $(OCAMLFIND) printconf destdir)/$(NAME)
+
+ NAME := lwt
+ VERSION := $(shell head -n 1 VERSION)
+@@ -36,13 +36,13 @@ TOINSTALL = $(wildcard $(ARCHIVES_BYTE)
all: META byte opt doc
byte:
@@ -18,3 +27,18 @@ $NetBSD: patch-aa,v 1.1.1.1 2008/09/02 11:19:35 obache Exp $
examples:
$(MAKE) -C examples
+@@ -54,11 +54,11 @@ dist:
+ DARCS_REPO=$(PWD) darcs dist -d $(NAME)-$(VERSION)
+
+ install:
+- mkdir -p "$(DESTDIR)"
+- $(OCAMLFIND) install $(NAME) -destdir "$(DESTDIR)" META $(TOINSTALL)
++ mkdir -p "$(INSTALLDIR)"
++ $(OCAMLFIND) install $(NAME) -destdir "$(INSTALLDIR)" META $(TOINSTALL)
+
+ uninstall:
+- $(OCAMLFIND) remove $(NAME) -destdir "$(DESTDIR)"
++ $(OCAMLFIND) remove $(NAME) -destdir "$(INSTALLDIR)"
+
+ clean:
+ $(OCAMLBUILD) -clean
diff --git a/devel/pcre-ocaml/Makefile b/devel/pcre-ocaml/Makefile
index a1097223241..94fa1c2bf4f 100644
--- a/devel/pcre-ocaml/Makefile
+++ b/devel/pcre-ocaml/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2008/08/31 13:20:34 obache Exp $
+# $NetBSD: Makefile,v 1.8 2010/01/30 19:16:09 joerg Exp $
#
DISTNAME= pcre-ocaml-5.15.0
@@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.ocaml.info/ocaml_sources/
COMMENT= Perl compatible regular expressions for OCaml
+PKG_DESTDIR_SUPPORT= user-destdir
+
DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
.include "../../mk/bsd.prefs.mk"
@@ -23,10 +25,10 @@ BUILD_TARGET= byte
.endif
EGDIR= ${PREFIX}/share/examples/pcre-ocaml
-INSTALLATION_DIRS= ${EGDIR}
+INSTALLATION_DIRS= ${EGDIR} lib/ocaml/site-lib/pcre
post-install:
- cd ${WRKSRC}/examples && pax -rw -pm . ${EGDIR}
+ cd ${WRKSRC}/examples && pax -rw -pm . ${DESTDIR}${EGDIR}
.include "../../devel/pcre/buildlink3.mk"
.include "../../lang/ocaml/buildlink3.mk"
diff --git a/devel/pcre-ocaml/distinfo b/devel/pcre-ocaml/distinfo
index 59bb16fa947..fb534fe1309 100644
--- a/devel/pcre-ocaml/distinfo
+++ b/devel/pcre-ocaml/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.4 2008/08/31 13:20:34 obache Exp $
+$NetBSD: distinfo,v 1.5 2010/01/30 19:16:09 joerg Exp $
SHA1 (pcre-ocaml-5.15.0.tar.bz2) = b7fb293867cf2c7d7deddc29e6a445359b0f7604
RMD160 (pcre-ocaml-5.15.0.tar.bz2) = b2a515f2120e2e6a25f03ee15d60fe766621f5a9
Size (pcre-ocaml-5.15.0.tar.bz2) = 51120 bytes
SHA1 (patch-aa) = ff7aaec3c2fb06b1c9ab410257b64c8d5d29dcf6
-SHA1 (patch-ab) = 1a4de1d021cc9ebafdab8f470750fe097d80905e
+SHA1 (patch-ab) = 95a3929612ebd5e81a1ab64b8bfbad9b63e9a330
diff --git a/devel/pcre-ocaml/patches/patch-ab b/devel/pcre-ocaml/patches/patch-ab
index 66d33c05327..34a71cbad70 100644
--- a/devel/pcre-ocaml/patches/patch-ab
+++ b/devel/pcre-ocaml/patches/patch-ab
@@ -1,10 +1,10 @@
-$NetBSD: patch-ab,v 1.1 2007/06/09 11:05:00 rillig Exp $
+$NetBSD: patch-ab,v 1.2 2010/01/30 19:16:10 joerg Exp $
--- lib/Makefile.orig 2007-03-21 11:30:21.000000000 +0100
+++ lib/Makefile 2007-03-21 11:30:33.000000000 +0100
@@ -1,4 +1,5 @@
OCAMLMAKEFILE = ../OCamlMakefile
-+OCAMLFIND_INSTFLAGS = -optional
++OCAMLFIND_INSTFLAGS = -optional -destdir ${DESTDIR}`$(OCAMLC) -where `/site-lib
SOURCES = pcre.mli pcre.ml pcre_stubs.c
CFLAGS = -O2