aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorwen <wen@FreeBSD.org>2011-06-01 16:48:18 +0800
committerwen <wen@FreeBSD.org>2011-06-01 16:48:18 +0800
commitca710dcf8767a29be0e83fca743086d2f4d04887 (patch)
tree7e9063c2d402885d4a63f4e49a0843e11d16e909 /textproc
parentefcc73424045c0eca88de2f90eebf8f5f8c93f87 (diff)
downloadfreebsd-ports-gnome-ca710dcf8767a29be0e83fca743086d2f4d04887.tar.gz
freebsd-ports-gnome-ca710dcf8767a29be0e83fca743086d2f4d04887.tar.zst
freebsd-ports-gnome-ca710dcf8767a29be0e83fca743086d2f4d04887.zip
OCaml-Text is a library for dealing with ``text'', i.e. a sequence of Unicode
characters, in a convenient way. WWW: http://forge.ocamlcore.org/projects/ocaml-text/ PR: ports/156473 Submitted by: Jaap Boender <jaapb@kerguelen.org>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/ocaml-text/Makefile51
-rw-r--r--textproc/ocaml-text/distinfo2
-rw-r--r--textproc/ocaml-text/pkg-descr4
-rw-r--r--textproc/ocaml-text/pkg-plist18
5 files changed, 76 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index a6770c67f371..63e652144ec5 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -418,6 +418,7 @@
SUBDIR += ocaml-csv
SUBDIR += ocaml-expat
SUBDIR += ocaml-pxp
+ SUBDIR += ocaml-text
SUBDIR += odt2txt
SUBDIR += openfts
SUBDIR += openjade
diff --git a/textproc/ocaml-text/Makefile b/textproc/ocaml-text/Makefile
new file mode 100644
index 000000000000..d094d21c9653
--- /dev/null
+++ b/textproc/ocaml-text/Makefile
@@ -0,0 +1,51 @@
+# New ports collection makefile for: ocaml-text
+# Date created: April 18, 2011
+# Whom: Jaap Boender <jaapb@kerguelen.org>
+#
+# $FreeBSD$
+
+PORTNAME= text
+PORTVERSION= 0.4
+CATEGORIES= textproc
+MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/537/
+PKGNAMEPREFIX= ocaml-
+DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= jaapb@kerguelen.org
+COMMENT= OCaml library for dealing with text
+
+DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
+
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --docdir ${DOCSDIR} --prefix ${PREFIX} --mandir ${PREFIX}/man
+USE_GMAKE= yes
+
+USE_OCAML= yes
+USE_OCAML_FINDLIB= yes
+USE_OCAML_LDCONFIG= yes
+USE_OCAMLFIND_PLIST= yes
+
+OPTIONS= PCRE "Compile with PCRE support" ON
+
+SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR}
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITHOUT_PCRE)
+CONFIGURE_ARGS+= --disable-pcre
+.else
+CONFIGURE_ARGS+= --enable-pcre
+BUILD_DEPENDS+= ${SA_DIR}/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre
+RUN_DEPENDS+= ${SA_DIR}/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre
+.endif
+
+post-extract:
+# For nonstandard prefixes
+.if !exists(${OCAMLFIND_DESTDIR})
+ ${MKDIR} ${OCAMLFIND_DESTDIR}
+.endif
+.if !exists(${OCAMLFIND_LDCONF})
+ ${TOUCH} ${OCAMLFIND_LDCONF}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/ocaml-text/distinfo b/textproc/ocaml-text/distinfo
new file mode 100644
index 000000000000..19587a111ec6
--- /dev/null
+++ b/textproc/ocaml-text/distinfo
@@ -0,0 +1,2 @@
+SHA256 (ocaml-text-0.4.tar.gz) = 1837f3eb4e823e0c332ff96c6873795c804bd6c5e9604262d1510ca8999e0f31
+SIZE (ocaml-text-0.4.tar.gz) = 240358
diff --git a/textproc/ocaml-text/pkg-descr b/textproc/ocaml-text/pkg-descr
new file mode 100644
index 000000000000..ca9142be443e
--- /dev/null
+++ b/textproc/ocaml-text/pkg-descr
@@ -0,0 +1,4 @@
+OCaml-Text is a library for dealing with ``text'', i.e. a sequence of Unicode
+characters, in a convenient way.
+
+WWW: http://forge.ocamlcore.org/projects/ocaml-text/
diff --git a/textproc/ocaml-text/pkg-plist b/textproc/ocaml-text/pkg-plist
new file mode 100644
index 000000000000..06550d7d2dc5
--- /dev/null
+++ b/textproc/ocaml-text/pkg-plist
@@ -0,0 +1,18 @@
+%%DOCSDIR%%/api/Encoding.html
+%%DOCSDIR%%/api/Text.html
+%%DOCSDIR%%/api/index.html
+%%DOCSDIR%%/api/index_attributes.html
+%%DOCSDIR%%/api/index_class_types.html
+%%DOCSDIR%%/api/index_classes.html
+%%DOCSDIR%%/api/index_exceptions.html
+%%DOCSDIR%%/api/index_methods.html
+%%DOCSDIR%%/api/index_module_types.html
+%%DOCSDIR%%/api/index_modules.html
+%%DOCSDIR%%/api/index_types.html
+%%DOCSDIR%%/api/index_values.html
+%%DOCSDIR%%/api/style.css
+%%DOCSDIR%%/api/type_Encoding.html
+%%DOCSDIR%%/api/type_Text.html
+@dirrm %%DOCSDIR%%/api
+%%DOCSDIR%%/manual.pdf
+@dirrm %%DOCSDIR%%