pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/time/ocaml-calendar DESTDIR support
details: https://anonhg.NetBSD.org/pkgsrc/rev/8d50d7db9c8d
branches: trunk
changeset: 571423:8d50d7db9c8d
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri Feb 12 00:31:52 2010 +0000
description:
DESTDIR support
diffstat:
time/ocaml-calendar/Makefile | 6 +++++-
time/ocaml-calendar/distinfo | 3 ++-
time/ocaml-calendar/patches/patch-aa | 20 ++++++++++++++++++++
3 files changed, 27 insertions(+), 2 deletions(-)
diffs (61 lines):
diff -r 5d12d932cbc0 -r 8d50d7db9c8d time/ocaml-calendar/Makefile
--- a/time/ocaml-calendar/Makefile Fri Feb 12 00:21:17 2010 +0000
+++ b/time/ocaml-calendar/Makefile Fri Feb 12 00:31:52 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2009/05/30 01:00:11 zafer Exp $
+# $NetBSD: Makefile,v 1.3 2010/02/12 00:31:52 joerg Exp $
#
DISTNAME= calendar-2.0.4
@@ -10,6 +10,8 @@
HOMEPAGE= http://www.lri.fr/~signoles/prog.en.html/
COMMENT= OCaml library managing dates and times
+PKG_DESTDIR_SUPPORT= user-destdir
+
DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
GNU_CONFIGURE= yes
@@ -25,5 +27,7 @@
TEST_TARGET= tests
+INSTALLATION_DIRS+= lib/ocaml/site-lib
+
.include "../../lang/ocaml/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 5d12d932cbc0 -r 8d50d7db9c8d time/ocaml-calendar/distinfo
--- a/time/ocaml-calendar/distinfo Fri Feb 12 00:21:17 2010 +0000
+++ b/time/ocaml-calendar/distinfo Fri Feb 12 00:31:52 2010 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/11/01 12:09:44 obache Exp $
+$NetBSD: distinfo,v 1.2 2010/02/12 00:31:52 joerg Exp $
SHA1 (calendar-2.0.4.tar.gz) = 60917d141a79b07b3bf4289ef906e97bd657814a
RMD160 (calendar-2.0.4.tar.gz) = 23c2a5a8d030cdf19d4d98b7b7bdf67d87146b59
Size (calendar-2.0.4.tar.gz) = 221843 bytes
+SHA1 (patch-aa) = 0a0520e4d63ef4315f8519e953d47d61f76bc6a6
diff -r 5d12d932cbc0 -r 8d50d7db9c8d time/ocaml-calendar/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/time/ocaml-calendar/patches/patch-aa Fri Feb 12 00:31:52 2010 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.1 2010/02/12 00:31:52 joerg Exp $
+
+--- Makefile.in.orig 2010-02-12 00:29:07.000000000 +0000
++++ Makefile.in
+@@ -190,14 +190,7 @@ headers:
+ #########
+
+ install: $(LIBS) $(CLIBS) META
+- @if [ "`sed -n -e 's/version = "\([0-9.]*\)"/\1/p' META`" = "$(VERSION)" ]; then \
+- (if test -d $(CAMLLIB)/site-lib/$(NAME); then $(MAKE) uninstall; fi;\
+- $(CAMLFIND) install $(NAME) target/*.cm[iox] $(MLI) $(CMI) $(CLIBS) META\
+- )else \
+- (echo; echo "Not the good version. Please, do :"; \
+- echo " make clean && make"; \
+- echo "next reinstall"; echo) \
+- fi
++ $(CAMLFIND) install -destdir ${DESTDIR}${CAMLLIB}/site-lib -ldconf /dev/null $(NAME) target/*.cm[iox] $(MLI) $(CMI) $(CLIBS) META\
+
+ uninstall:
+ $(CAMLFIND) remove $(NAME)
Home |
Main Index |
Thread Index |
Old Index