summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjaapb <jaapb@pkgsrc.org>2014-10-26 11:42:52 +0000
committerjaapb <jaapb@pkgsrc.org>2014-10-26 11:42:52 +0000
commiteb91034b7122cdc0a3f1475adb427f0e019fcdd2 (patch)
tree2649687f187b894a9032be2e2b46686875b4a4ca /devel
parenta7729cff623a0b1a305fd1f45e21437c968438b7 (diff)
downloadpkgsrc-eb91034b7122cdc0a3f1475adb427f0e019fcdd2.tar.gz
Added ocaml-re, a pure OCaml regular expression library.
Diffstat (limited to 'devel')
-rw-r--r--devel/ocaml-re/DESCR7
-rw-r--r--devel/ocaml-re/Makefile32
-rw-r--r--devel/ocaml-re/PLIST53
-rw-r--r--devel/ocaml-re/buildlink3.mk12
-rw-r--r--devel/ocaml-re/distinfo5
5 files changed, 109 insertions, 0 deletions
diff --git a/devel/ocaml-re/DESCR b/devel/ocaml-re/DESCR
new file mode 100644
index 00000000000..14a903d6b67
--- /dev/null
+++ b/devel/ocaml-re/DESCR
@@ -0,0 +1,7 @@
+Re is a regular expression library for OCaml that does not use C bindings.
+
+The following styles of regular expressions are supported:
+Perl-style regular expressions (module Re_perl);
+Posix extended regular expressions (module Re_posix);
+Emacs-style regular expressions (module Re_emacs);
+Shell-style file globbing (module Re_glob).
diff --git a/devel/ocaml-re/Makefile b/devel/ocaml-re/Makefile
new file mode 100644
index 00000000000..16a1d760937
--- /dev/null
+++ b/devel/ocaml-re/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1 2014/10/26 11:42:52 jaapb Exp $
+
+DISTNAME= ocaml-re-1.2.2
+PKGNAME= ${DISTNAME} # avoid prefixing with ocaml-
+CATEGORIES= devel
+MASTER_SITES= https://github.com/ocaml/ocaml-re/archive/
+
+MAINTAINER= jaapb@NetBSD.org
+HOMEPAGE= http://github.com/ocaml/ocaml-re/
+COMMENT= Pure OCaml regular expression library
+LICENSE= gnu-lgpl-v2.1
+
+USE_TOOLS+= gmake
+OCAML_USE_FINDLIB= yes
+CONFIGURE_ARGS+= --prefix ${PREFIX}
+
+WRKSRC= ${WRKDIR}/ocaml-re-${DISTNAME}
+
+pre-configure:
+ cd ${WRKSRC} && gmake setup.bin
+
+do-configure:
+ cd ${WRKSRC} && ./setup.bin -configure ${CONFIGURE_ARGS}
+
+do-build:
+ cd ${WRKSRC} && ./setup.bin -build
+
+do-install:
+ cd ${WRKSRC} && ./setup.bin -install
+
+.include "../../mk/ocaml.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ocaml-re/PLIST b/devel/ocaml-re/PLIST
new file mode 100644
index 00000000000..b46133cf5a6
--- /dev/null
+++ b/devel/ocaml-re/PLIST
@@ -0,0 +1,53 @@
+@comment $NetBSD: PLIST,v 1.1 2014/10/26 11:42:52 jaapb Exp $
+${OCAML_SITELIB}/re/META
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/automata.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/cset.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re.a
+${OCAML_SITELIB}/re/re.cma
+${OCAML_SITELIB}/re/re.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re.cmxs
+${OCAML_SITELIB}/re/re.mli
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_emacs.a
+${OCAML_SITELIB}/re/re_emacs.cma
+${OCAML_SITELIB}/re/re_emacs.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_emacs.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_emacs.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_emacs.cmxs
+${OCAML_SITELIB}/re/re_emacs.mli
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_glob.a
+${OCAML_SITELIB}/re/re_glob.cma
+${OCAML_SITELIB}/re/re_glob.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_glob.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_glob.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_glob.cmxs
+${OCAML_SITELIB}/re/re_glob.mli
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_pcre.a
+${OCAML_SITELIB}/re/re_pcre.cma
+${OCAML_SITELIB}/re/re_pcre.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_pcre.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_pcre.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_pcre.cmxs
+${OCAML_SITELIB}/re/re_pcre.ml
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_perl.a
+${OCAML_SITELIB}/re/re_perl.cma
+${OCAML_SITELIB}/re/re_perl.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_perl.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_perl.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_perl.cmxs
+${OCAML_SITELIB}/re/re_perl.mli
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_posix.a
+${OCAML_SITELIB}/re/re_posix.cma
+${OCAML_SITELIB}/re/re_posix.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_posix.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_posix.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_posix.cmxs
+${OCAML_SITELIB}/re/re_posix.mli
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_str.a
+${OCAML_SITELIB}/re/re_str.cma
+${OCAML_SITELIB}/re/re_str.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_str.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_str.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/re/re_str.cmxs
+${OCAML_SITELIB}/re/re_str.mli
diff --git a/devel/ocaml-re/buildlink3.mk b/devel/ocaml-re/buildlink3.mk
new file mode 100644
index 00000000000..ee8718f4bcc
--- /dev/null
+++ b/devel/ocaml-re/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/10/26 11:42:52 jaapb Exp $
+
+BUILDLINK_TREE+= ocaml-re
+
+.if !defined(OCAML_RE_BUILDLINK3_MK)
+OCAML_RE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ocaml-re+= ocaml-re>=1.2.2
+BUILDLINK_PKGSRCDIR.ocaml-re?= ../../devel/ocaml-re
+.endif # OCAML_RE_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -ocaml-re
diff --git a/devel/ocaml-re/distinfo b/devel/ocaml-re/distinfo
new file mode 100644
index 00000000000..f3dadaa713e
--- /dev/null
+++ b/devel/ocaml-re/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/10/26 11:42:52 jaapb Exp $
+
+SHA1 (ocaml-re-1.2.2.tar.gz) = 045bf41966f804c5acb3938202130f10fb29020c
+RMD160 (ocaml-re-1.2.2.tar.gz) = 4368ea40f328d338d3fb4e84f5820d6bda6fda65
+Size (ocaml-re-1.2.2.tar.gz) = 89639 bytes