diff --git a/devel/ocaml-calendar/Makefile b/devel/ocaml-calendar/Makefile new file mode 100644 index 00000000000..793609f8671 --- /dev/null +++ b/devel/ocaml-calendar/Makefile @@ -0,0 +1,25 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2005/09/22 14:38:41 avsm Exp $ + +COMMENT= "Objective Caml bindings for calendar functions" +CATEGORIES= devel + +V= 1.09.3 +DISTNAME= calendar-${V} +PKGNAME= ocaml-calendar-${V} +MASTER_SITES= http://www.lri.fr/~signoles/prog/calendar/ + +MAINTAINER= Anil Madhavapeddy +HOMEPAGE= http://www.lri.fr/~signoles/prog.en.html + +PERMIT_PACKAGE_FTP= Yes +PERMIT_PACKAGE_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes + +MODULES= lang/ocaml +NO_REGRESS= Yes +ALL_TARGET= all +CONFIGURE_STYLE= gnu +USE_GMAKE= yes + +.include diff --git a/devel/ocaml-calendar/distinfo b/devel/ocaml-calendar/distinfo new file mode 100644 index 00000000000..e03794419fc --- /dev/null +++ b/devel/ocaml-calendar/distinfo @@ -0,0 +1,4 @@ +MD5 (calendar-1.09.3.tar.gz) = 1ece7e999bc401f7f5c8c16a6e254459 +RMD160 (calendar-1.09.3.tar.gz) = 3a8dc30212809608a28bceaa8b642dbb2dfcaaca +SHA1 (calendar-1.09.3.tar.gz) = f4da27fd92c9f0b3105e4f792480dbe72803e6d8 +SIZE (calendar-1.09.3.tar.gz) = 154413 diff --git a/devel/ocaml-calendar/patches/patch-Makefile_in b/devel/ocaml-calendar/patches/patch-Makefile_in new file mode 100644 index 00000000000..ec1eb874ede --- /dev/null +++ b/devel/ocaml-calendar/patches/patch-Makefile_in @@ -0,0 +1,20 @@ +$OpenBSD: patch-Makefile_in,v 1.1.1.1 2005/09/22 14:38:41 avsm Exp $ +--- Makefile.in.orig Mon Jan 17 13:27:36 2005 ++++ Makefile.in Thu Sep 22 14:56:14 2005 +@@ -142,14 +142,8 @@ doc: $(CMO) + ######### + + 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) $(LIBS) $(CLIBS) $(MLI) $(CMI) META\ +- )else \ +- (echo; echo "Not the good version. Please, do :"; \ +- echo " make clean && make"; \ +- echo "next reinstall"; echo) \ +- fi ++ mkdir -p $(DESTDIR)/$(CAMLLIB) ++ cp $(LIBS) $(CLIBS) $(MLI) $(CMI) $(DESTDIR)/$(CAMLLIB) + + uninstall: + $(CAMLFIND) remove $(NAME) diff --git a/devel/ocaml-calendar/patches/patch-configure b/devel/ocaml-calendar/patches/patch-configure new file mode 100644 index 00000000000..a343049a23e --- /dev/null +++ b/devel/ocaml-calendar/patches/patch-configure @@ -0,0 +1,14 @@ +$OpenBSD: patch-configure,v 1.1.1.1 2005/09/22 14:38:41 avsm Exp $ +--- configure.orig Thu Sep 22 14:53:52 2005 ++++ configure Thu Sep 22 14:54:14 2005 +@@ -1515,9 +1515,7 @@ echo "${ECHO_T}no" >&6 + fi + + if test "$OCAMLFIND" = no ; then +- { { echo "$as_me:$LINENO: error: Cannot find ocamlfind." >&5 +-echo "$as_me: error: Cannot find ocamlfind." >&2;} +- { (exit 1); exit 1; }; } ++ OCAMLFIND="" + fi + + # Not mandatory tools diff --git a/devel/ocaml-calendar/pkg/DESCR b/devel/ocaml-calendar/pkg/DESCR new file mode 100644 index 00000000000..5a25c3ab471 --- /dev/null +++ b/devel/ocaml-calendar/pkg/DESCR @@ -0,0 +1,3 @@ +The Calendar library is a library providing a set of operations +over dates and times. This library is written for version 3.06 +or greater of Objective Caml. diff --git a/devel/ocaml-calendar/pkg/PFRAG.native b/devel/ocaml-calendar/pkg/PFRAG.native new file mode 100644 index 00000000000..4ae16723d2b --- /dev/null +++ b/devel/ocaml-calendar/pkg/PFRAG.native @@ -0,0 +1,3 @@ +@comment $OpenBSD: PFRAG.native,v 1.1.1.1 2005/09/22 14:38:41 avsm Exp $ +lib/ocaml/calendar.a +lib/ocaml/calendar.cmxa diff --git a/devel/ocaml-calendar/pkg/PLIST b/devel/ocaml-calendar/pkg/PLIST new file mode 100644 index 00000000000..ebe93800d74 --- /dev/null +++ b/devel/ocaml-calendar/pkg/PLIST @@ -0,0 +1,16 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2005/09/22 14:38:41 avsm Exp $ +lib/ocaml/ +lib/ocaml/calendar.cma +lib/ocaml/calendar.cmi +lib/ocaml/calendar.mli +lib/ocaml/date.cmi +lib/ocaml/date.mli +lib/ocaml/period.cmi +lib/ocaml/period.mli +lib/ocaml/printer.cmi +lib/ocaml/printer.mli +lib/ocaml/time.cmi +lib/ocaml/time.mli +lib/ocaml/time_Zone.cmi +lib/ocaml/time_Zone.mli +%%native%%