summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorwiz <wiz>2012-06-04 14:28:15 +0000
committerwiz <wiz>2012-06-04 14:28:15 +0000
commitf0e27abd6947aa3d23f6c7a772fb0cba074e89f4 (patch)
treebc087e52de667fa1f802c93083caf50f0034b8c3 /textproc
parent6edd0d58c6959560020824c0c2f1aa534895e274 (diff)
downloadpkgsrc-f0e27abd6947aa3d23f6c7a772fb0cba074e89f4.tar.gz
Initial import of ocaml-text, packaged by Jaap Boender.
OCaml-Text is an OCaml library for dealing with Unicode.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/ocaml-text/DESCR1
-rw-r--r--textproc/ocaml-text/Makefile45
-rw-r--r--textproc/ocaml-text/PLIST20
-rw-r--r--textproc/ocaml-text/distinfo5
4 files changed, 71 insertions, 0 deletions
diff --git a/textproc/ocaml-text/DESCR b/textproc/ocaml-text/DESCR
new file mode 100644
index 00000000000..a7cab796bef
--- /dev/null
+++ b/textproc/ocaml-text/DESCR
@@ -0,0 +1 @@
+OCaml-Text is an OCaml library for dealing with Unicode.
diff --git a/textproc/ocaml-text/Makefile b/textproc/ocaml-text/Makefile
new file mode 100644
index 00000000000..4ac6223487f
--- /dev/null
+++ b/textproc/ocaml-text/Makefile
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1.1.1 2012/06/04 14:28:15 wiz Exp $
+#
+
+DISTNAME= ocaml-text-0.5
+CATEGORIES= textproc
+MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/641/
+
+MAINTAINER= jaapb@kerguelen.org
+HOMEPAGE= http://ocaml-text.forge.ocamlcore.org/
+COMMENT= OCaml Unicode library
+LICENSE= modified-bsd
+
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS+= --prefix ${PREFIX} --destdir ${DESTDIR}
+PKG_DESTDIR_SUPPORT= user-destdir
+
+DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
+
+SUBST_CLASSES+= destdir
+SUBST_STAGE.destdir= post-configure
+SUBST_MESSAGE.destdir= Changing install location to DESTDIR
+SUBST_FILES.destdir= setup.ml
+SUBST_SED.destdir= -e 's,"install" :: findlib_name,"install" :: "-destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,'
+
+PLIST_VARS= opt
+.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
+ (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
+PLIST.opt= yes
+.endif
+
+do-configure:
+ cd ${WRKSRC} && ocaml setup.ml -configure ${CONFIGURE_ARGS}
+
+do-build:
+ cd ${WRKSRC} && ocaml setup.ml -build
+
+pre-install:
+ ${RM} -rf ${DESTDIR}/${PREFIX}/lib/ocaml/site-lib/text
+ ${MKDIR} ${DESTDIR}/${PREFIX}/lib/ocaml/site-lib
+
+do-install:
+ cd ${WRKSRC} && ocaml setup.ml -install
+
+.include "../../lang/ocaml/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/ocaml-text/PLIST b/textproc/ocaml-text/PLIST
new file mode 100644
index 00000000000..6b49a3436f0
--- /dev/null
+++ b/textproc/ocaml-text/PLIST
@@ -0,0 +1,20 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2012/06/04 14:28:15 wiz Exp $
+@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/text
+lib/ocaml/site-lib/text/META
+lib/ocaml/site-lib/text/dlltext-bigarray.so
+lib/ocaml/site-lib/text/dlltext.so
+lib/ocaml/site-lib/text/encoding.cmi
+lib/ocaml/site-lib/text/encoding.mli
+lib/ocaml/site-lib/text/encoding_bigarray.cmi
+lib/ocaml/site-lib/text/encoding_bigarray.mli
+${PLIST.opt}lib/ocaml/site-lib/text/libtext-bigarray.a
+${PLIST.opt}lib/ocaml/site-lib/text/libtext.a
+${PLIST.opt}lib/ocaml/site-lib/text/text-bigarray.a
+lib/ocaml/site-lib/text/text-bigarray.cma
+${PLIST.opt}lib/ocaml/site-lib/text/text-bigarray.cmxa
+${PLIST.opt}lib/ocaml/site-lib/text/text.a
+lib/ocaml/site-lib/text/text.cma
+lib/ocaml/site-lib/text/text.cmi
+${PLIST.opt}lib/ocaml/site-lib/text/text.cmxa
+lib/ocaml/site-lib/text/text.mli
+@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/text
diff --git a/textproc/ocaml-text/distinfo b/textproc/ocaml-text/distinfo
new file mode 100644
index 00000000000..bc1b831f330
--- /dev/null
+++ b/textproc/ocaml-text/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2012/06/04 14:28:15 wiz Exp $
+
+SHA1 (ocaml-text-0.5.tar.gz) = 26d02d1a5340c24c0ed2ecf852f5857a8c49c646
+RMD160 (ocaml-text-0.5.tar.gz) = 860fbfc66511d008ab4f18c53bcadc78e961c5ad
+Size (ocaml-text-0.5.tar.gz) = 248862 bytes