summaryrefslogtreecommitdiff
path: root/time/ocaml-calendar
diff options
context:
space:
mode:
authorjaapb <jaapb@pkgsrc.org>2015-04-29 09:37:40 +0000
committerjaapb <jaapb@pkgsrc.org>2015-04-29 09:37:40 +0000
commit21ec7f050fceccbc5de3e515b8f3a561846f1afe (patch)
treeb00771876f79b70dc7e4e134c97689f2b5177806 /time/ocaml-calendar
parent638a29107c892149083ddc295133d8c317177648 (diff)
downloadpkgsrc-21ec7f050fceccbc5de3e515b8f3a561846f1afe.tar.gz
Updated to latest version, 2.04. Changes include:
* [Makefile] Fix minor issues with ocamlfind and 'make install' (from Christopher Zimmermann). o [Printer] In function from_fstring of sub-module Ftime, Fcalendar, and Precise_Fcalendar, the number of seconds corresponding to %S may be a floating point number (from Christophe Troestler' suggestion). Added buildlink file, and updated package to use ocaml.mk framework.
Diffstat (limited to 'time/ocaml-calendar')
-rw-r--r--time/ocaml-calendar/Makefile24
-rw-r--r--time/ocaml-calendar/PLIST12
-rw-r--r--time/ocaml-calendar/buildlink3.mk14
-rw-r--r--time/ocaml-calendar/distinfo9
-rw-r--r--time/ocaml-calendar/patches/patch-Makefile.in21
5 files changed, 29 insertions, 51 deletions
diff --git a/time/ocaml-calendar/Makefile b/time/ocaml-calendar/Makefile
index 4f12b82f8a9..bca7aec81a3 100644
--- a/time/ocaml-calendar/Makefile
+++ b/time/ocaml-calendar/Makefile
@@ -1,36 +1,22 @@
-# $NetBSD: Makefile,v 1.10 2015/01/20 14:24:37 jaapb Exp $
+# $NetBSD: Makefile,v 1.11 2015/04/29 09:37:40 jaapb Exp $
#
-DISTNAME= calendar-2.03.2
-PKGNAME= ocaml-${DISTNAME}
-PKGREVISION= 4
+DISTNAME= calendar-2.04
CATEGORIES= time devel
-MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/915/
+MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/1481/
MAINTAINER= jaapb@kerguelen.org
HOMEPAGE= http://calendar.forge.ocamlcore.org/
COMMENT= OCaml library managing dates and times
LICENSE= gnu-lgpl-v2.1
-DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
-
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
+OCAML_USE_FINDLIB= yes
.include "../../mk/bsd.prefs.mk"
-PLIST_VARS= opt
-.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
- (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
-PLIST.opt= yes
-.endif
-
TEST_TARGET= tests
-INSTALLATION_DIRS+= lib/ocaml/site-lib
-
-pre-install:
- ${MKDIR} ${DESTDIR}${PREFIX}/lib/ocaml/site-lib
-
-.include "../../lang/ocaml/buildlink3.mk"
+.include "../../mk/ocaml.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/time/ocaml-calendar/PLIST b/time/ocaml-calendar/PLIST
index c30347ee416..2c1458e4155 100644
--- a/time/ocaml-calendar/PLIST
+++ b/time/ocaml-calendar/PLIST
@@ -1,15 +1,15 @@
-@comment $NetBSD: PLIST,v 1.3 2012/08/12 17:40:59 wiz Exp $
+@comment $NetBSD: PLIST,v 1.4 2015/04/29 09:37:40 jaapb Exp $
@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/calendar
lib/ocaml/site-lib/calendar/META
lib/ocaml/site-lib/calendar/calendar.mli
lib/ocaml/site-lib/calendar/calendarLib.a
-${PLIST.opt}lib/ocaml/site-lib/calendar/calendarLib.cma
+${PLIST.ocaml-opt}lib/ocaml/site-lib/calendar/calendarLib.cma
lib/ocaml/site-lib/calendar/calendarLib.cmi
lib/ocaml/site-lib/calendar/calendarLib.cmo
-${PLIST.opt}lib/ocaml/site-lib/calendar/calendarLib.cmx
-${PLIST.opt}lib/ocaml/site-lib/calendar/calendarLib.cmxa
-${PLIST.opt}lib/ocaml/site-lib/calendar/calendarLib.cmxs
-${PLIST.opt}lib/ocaml/site-lib/calendar/calendarLib.o
+${PLIST.ocaml-opt}lib/ocaml/site-lib/calendar/calendarLib.cmx
+${PLIST.ocaml-opt}lib/ocaml/site-lib/calendar/calendarLib.cmxa
+${PLIST.ocaml-opt}lib/ocaml/site-lib/calendar/calendarLib.cmxs
+${PLIST.ocaml-opt}lib/ocaml/site-lib/calendar/calendarLib.o
lib/ocaml/site-lib/calendar/calendar_builder.mli
lib/ocaml/site-lib/calendar/calendar_sig.mli
lib/ocaml/site-lib/calendar/date.mli
diff --git a/time/ocaml-calendar/buildlink3.mk b/time/ocaml-calendar/buildlink3.mk
new file mode 100644
index 00000000000..ce3cd1069e4
--- /dev/null
+++ b/time/ocaml-calendar/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2015/04/29 09:37:40 jaapb Exp $
+
+BUILDLINK_TREE+= ocaml-calendar
+
+.if !defined(OCAML_CALENDAR_BUILDLINK3_MK)
+OCAML_CALENDAR_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ocaml-calendar+= ocaml-calendar>=2.03.2nb4
+BUILDLINK_PKGSRCDIR.ocaml-calendar?= ../../time/ocaml-calendar
+
+#.include "../../lang/ocaml/buildlink3.mk"
+.endif # OCAML_CALENDAR_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -ocaml-calendar
diff --git a/time/ocaml-calendar/distinfo b/time/ocaml-calendar/distinfo
index da31614c28a..9a0ad3f08db 100644
--- a/time/ocaml-calendar/distinfo
+++ b/time/ocaml-calendar/distinfo
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.3 2012/08/12 17:40:59 wiz Exp $
+$NetBSD: distinfo,v 1.4 2015/04/29 09:37:40 jaapb Exp $
-SHA1 (calendar-2.03.2.tar.gz) = 64336839fdc24e4bd99e08e01419b183b598831b
-RMD160 (calendar-2.03.2.tar.gz) = b065bb9dcd7a756fd7f77c5fca36b7e2c7e20902
-Size (calendar-2.03.2.tar.gz) = 270225 bytes
-SHA1 (patch-Makefile.in) = 886482162f242a25daf1be9483e9ca932aae7c01
+SHA1 (calendar-2.04.tar.gz) = 20193984bd685170d546102dd57eb1fce34058d9
+RMD160 (calendar-2.04.tar.gz) = ac002410334f008300c74d7ec3ef4a4cff909e6f
+Size (calendar-2.04.tar.gz) = 271522 bytes
diff --git a/time/ocaml-calendar/patches/patch-Makefile.in b/time/ocaml-calendar/patches/patch-Makefile.in
deleted file mode 100644
index 81e08d47367..00000000000
--- a/time/ocaml-calendar/patches/patch-Makefile.in
+++ /dev/null
@@ -1,21 +0,0 @@
-$NetBSD: patch-Makefile.in,v 1.1 2012/08/12 17:41:00 wiz Exp $
-
-remove version detection (doesn't work in NetBSD environment) and add destdir
---- Makefile.in.orig 2010-07-05 07:54:32.000000000 +0000
-+++ Makefile.in
-@@ -198,14 +198,7 @@ headers:
- #########
-
- install: $(LIBS) $(CLIBS) META
-- @if [ "`sed -n -e 's/version = "\([0-9.+dev]*\)"/\1/p' META`" = "$(VERSION)" ]; then \
-- (if test -d `ocamlfind install -help | grep destdir | sed -e "s/.*default: \(.*\))/\1/"`/$(NAME); then $(MAKE) uninstall; fi;\
-- $(CAMLFIND) install $(NAME) target/*.cm[ioxa] target/*.cmx[as] $(MLI) $(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[ioxa] target/*.cmx[as] $(MLI) $(CLIBS) META
-
- uninstall:
- $(CAMLFIND) remove $(NAME)