Import ocaml-re - dependency of OPAM.

ok krw@
This commit is contained in:
chrisz 2014-10-25 16:59:17 +00:00
parent b647760146
commit 7fe84de7cc
6 changed files with 140 additions and 0 deletions

30
devel/ocaml-re/Makefile Normal file
View File

@ -0,0 +1,30 @@
# $OpenBSD: Makefile,v 1.1.1.1 2014/10/25 16:59:17 chrisz Exp $
COMMENT = regular expression library for OCaml
CATEGORIES = devel
V = 1.2.2
GH_ACCOUNT = ocaml
GH_PROJECT = ocaml-re
GH_TAGNAME = ${GH_PROJECT}-${V}
DISTNAME = ${GH_PROJECT}-${V}
HOMEPAGE = https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/
# LGPLv2.1+
PERMIT_PACKAGE_CDROM = Yes
MODULES = lang/ocaml
USE_GMAKE = Yes
CONFIGURE_STYLE = oasis
CONFIGURE_ARGS = --enable-tests
post-install:
${INSTALL_DATA} \
${WRKSRC}/{CHANGES,README.md,TODO.txt} \
${PREFIX}/share/doc/ocaml-re/
.include <bsd.port.mk>

2
devel/ocaml-re/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (ocaml-re-1.2.2.tar.gz) = /cUjPI/xQ5TzmwE3Ap/WHzbMF8cDy9VLFzqUzbgn1i4=
SIZE (ocaml-re-1.2.2.tar.gz) = 89639

19
devel/ocaml-re/pkg/DESCR Normal file
View File

@ -0,0 +1,19 @@
RE is a regular expression library for OCaml. It is still under
developpement, but is already rather usable.
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).
It is also possible to build regular expressions by combining simpler
regular expressions (module Re)
The most notable missing features are back-references and
look-ahead/look-behind assertions.
There is also a subset of the PCRE interface available in the Re.pcre
library. This makes it easier to port code from that library to Re
without any changes beyond replacing the `pcre` findlib package with
`re.pcre`.

View File

@ -0,0 +1,8 @@
@comment $OpenBSD: PFRAG.dynlink-native,v 1.1.1.1 2014/10/25 16:59:17 chrisz Exp $
@bin lib/ocaml/re/re.cmxs
@bin lib/ocaml/re/re_emacs.cmxs
@bin lib/ocaml/re/re_glob.cmxs
@bin lib/ocaml/re/re_pcre.cmxs
@bin lib/ocaml/re/re_perl.cmxs
@bin lib/ocaml/re/re_posix.cmxs
@bin lib/ocaml/re/re_str.cmxs

View File

@ -0,0 +1,25 @@
@comment $OpenBSD: PFRAG.native,v 1.1.1.1 2014/10/25 16:59:17 chrisz Exp $
%%dynlink%%
lib/ocaml/re/automata.cmx
lib/ocaml/re/cset.cmx
lib/ocaml/re/re.a
lib/ocaml/re/re.cmx
lib/ocaml/re/re.cmxa
lib/ocaml/re/re_emacs.a
lib/ocaml/re/re_emacs.cmx
lib/ocaml/re/re_emacs.cmxa
lib/ocaml/re/re_glob.a
lib/ocaml/re/re_glob.cmx
lib/ocaml/re/re_glob.cmxa
lib/ocaml/re/re_pcre.a
lib/ocaml/re/re_pcre.cmx
lib/ocaml/re/re_pcre.cmxa
lib/ocaml/re/re_perl.a
lib/ocaml/re/re_perl.cmx
lib/ocaml/re/re_perl.cmxa
lib/ocaml/re/re_posix.a
lib/ocaml/re/re_posix.cmx
lib/ocaml/re/re_posix.cmxa
lib/ocaml/re/re_str.a
lib/ocaml/re/re_str.cmx
lib/ocaml/re/re_str.cmxa

56
devel/ocaml-re/pkg/PLIST Normal file
View File

@ -0,0 +1,56 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2014/10/25 16:59:17 chrisz Exp $
%%native%%
lib/ocaml/re/
lib/ocaml/re/META
lib/ocaml/re/re.cma
lib/ocaml/re/re.cmi
lib/ocaml/re/re.mli
lib/ocaml/re/re_emacs.cma
lib/ocaml/re/re_emacs.cmi
lib/ocaml/re/re_emacs.mli
lib/ocaml/re/re_glob.cma
lib/ocaml/re/re_glob.cmi
lib/ocaml/re/re_glob.mli
lib/ocaml/re/re_pcre.cma
lib/ocaml/re/re_pcre.cmi
lib/ocaml/re/re_pcre.ml
lib/ocaml/re/re_perl.cma
lib/ocaml/re/re_perl.cmi
lib/ocaml/re/re_perl.mli
lib/ocaml/re/re_posix.cma
lib/ocaml/re/re_posix.cmi
lib/ocaml/re/re_posix.mli
lib/ocaml/re/re_str.cma
lib/ocaml/re/re_str.cmi
lib/ocaml/re/re_str.mli
share/doc/ocaml-re/
share/doc/ocaml-re/CHANGES
share/doc/ocaml-re/README.md
share/doc/ocaml-re/TODO.txt
share/doc/ocaml-re/api/
share/doc/ocaml-re/api/Re.html
share/doc/ocaml-re/api/Re_emacs.html
share/doc/ocaml-re/api/Re_glob.html
share/doc/ocaml-re/api/Re_pcre.html
share/doc/ocaml-re/api/Re_perl.html
share/doc/ocaml-re/api/Re_posix.html
share/doc/ocaml-re/api/Re_str.html
share/doc/ocaml-re/api/index.html
share/doc/ocaml-re/api/index_attributes.html
share/doc/ocaml-re/api/index_class_types.html
share/doc/ocaml-re/api/index_classes.html
share/doc/ocaml-re/api/index_exceptions.html
share/doc/ocaml-re/api/index_extensions.html
share/doc/ocaml-re/api/index_methods.html
share/doc/ocaml-re/api/index_module_types.html
share/doc/ocaml-re/api/index_modules.html
share/doc/ocaml-re/api/index_types.html
share/doc/ocaml-re/api/index_values.html
share/doc/ocaml-re/api/style.css
share/doc/ocaml-re/api/type_Re.html
share/doc/ocaml-re/api/type_Re_emacs.html
share/doc/ocaml-re/api/type_Re_glob.html
share/doc/ocaml-re/api/type_Re_pcre.html
share/doc/ocaml-re/api/type_Re_perl.html
share/doc/ocaml-re/api/type_Re_posix.html
share/doc/ocaml-re/api/type_Re_str.html