From 4518902ba90728269b570a79ce028ebb04b67a93 Mon Sep 17 00:00:00 2001 From: jaapb Date: Thu, 6 Nov 2014 11:29:15 +0000 Subject: Added package textproc/ocaml-uutf, a Unicode library for ocaml. --- textproc/ocaml-uutf/DESCR | 2 ++ textproc/ocaml-uutf/Makefile | 36 ++++++++++++++++++++++++++++++++++++ textproc/ocaml-uutf/PLIST | 9 +++++++++ textproc/ocaml-uutf/buildlink3.mk | 12 ++++++++++++ textproc/ocaml-uutf/distinfo | 5 +++++ 5 files changed, 64 insertions(+) create mode 100644 textproc/ocaml-uutf/DESCR create mode 100644 textproc/ocaml-uutf/Makefile create mode 100644 textproc/ocaml-uutf/PLIST create mode 100644 textproc/ocaml-uutf/buildlink3.mk create mode 100644 textproc/ocaml-uutf/distinfo diff --git a/textproc/ocaml-uutf/DESCR b/textproc/ocaml-uutf/DESCR new file mode 100644 index 00000000000..24c0c2bf479 --- /dev/null +++ b/textproc/ocaml-uutf/DESCR @@ -0,0 +1,2 @@ +Uutf is an non-blocking streaming Unicode codec for OCaml to decode and encode +the UTF-8, UTF-16, UTF-16LE and UTF-16BE encoding schemes. diff --git a/textproc/ocaml-uutf/Makefile b/textproc/ocaml-uutf/Makefile new file mode 100644 index 00000000000..3db8b0c8473 --- /dev/null +++ b/textproc/ocaml-uutf/Makefile @@ -0,0 +1,36 @@ +# $NetBSD: Makefile,v 1.1 2014/11/06 11:29:15 jaapb Exp $ + +DISTNAME= uutf-0.9.3 +CATEGORIES= textproc +MASTER_SITES= http://erratique.ch/software/uutf/releases/ +EXTRACT_SUFX= .tbz + +MAINTAINER= jaapb@NetBSD.org +HOMEPAGE= http://erratique.ch/software/uutf/releases/ +COMMENT= TODO: Short description of the package +LICENSE= modified-bsd + +INSTALLATION_DIRS+= ${OCAML_SITELIBDIR}/uutf +OCAML_USE_FINDLIB= yes + +.include "../../mk/ocaml.mk" + +do-build: +.if ${OCAML_USE_OPT_COMPILER} == "yes" + cd ${WRKSRC} && ./pkg/build true +.else + cd ${WRKSRC} && ./pkg/build false +.endif + +do-install: + ${INSTALL_DATA} ${WRKSRC}/_build/pkg/META ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/uutf + for i in uutf.mli uutf.cmi uutf.cma; do \ + ${INSTALL_DATA} ${WRKSRC}/_build/src/$$i ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/uutf; \ + done +.if ${OCAML_USE_OPT_COMPILER} == "yes" + for i in uutf.cmx uutf.a uutf.cmxa uutf.cmxs; do \ + ${INSTALL_DATA} ${WRKSRC}/_build/src/$$i ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/uutf; \ + done +.endif + +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/ocaml-uutf/PLIST b/textproc/ocaml-uutf/PLIST new file mode 100644 index 00000000000..473b2bf5221 --- /dev/null +++ b/textproc/ocaml-uutf/PLIST @@ -0,0 +1,9 @@ +@comment $NetBSD: PLIST,v 1.1 2014/11/06 11:29:15 jaapb Exp $ +${OCAML_SITELIB}/uutf/META +${PLIST.ocaml-opt}${OCAML_SITELIB}/uutf/uutf.a +${OCAML_SITELIB}/uutf/uutf.cma +${OCAML_SITELIB}/uutf/uutf.cmi +${PLIST.ocaml-opt}${OCAML_SITELIB}/uutf/uutf.cmx +${PLIST.ocaml-opt}${OCAML_SITELIB}/uutf/uutf.cmxa +${PLIST.ocaml-opt}${OCAML_SITELIB}/uutf/uutf.cmxs +${OCAML_SITELIB}/uutf/uutf.mli diff --git a/textproc/ocaml-uutf/buildlink3.mk b/textproc/ocaml-uutf/buildlink3.mk new file mode 100644 index 00000000000..29afd4cfaa5 --- /dev/null +++ b/textproc/ocaml-uutf/buildlink3.mk @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1 2014/11/06 11:29:15 jaapb Exp $ + +BUILDLINK_TREE+= ocaml-uutf + +.if !defined(OCAML_UUTF_BUILDLINK3_MK) +OCAML_UUTF_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.ocaml-uutf+= ocaml-uutf>=0.9.3 +BUILDLINK_PKGSRCDIR.ocaml-uutf?= ../../textproc/ocaml-uutf +.endif # OCAML_UUTF_BUILDLINK3_MK + +BUILDLINK_TREE+= -ocaml-uutf diff --git a/textproc/ocaml-uutf/distinfo b/textproc/ocaml-uutf/distinfo new file mode 100644 index 00000000000..0cabf0a5c1f --- /dev/null +++ b/textproc/ocaml-uutf/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2014/11/06 11:29:15 jaapb Exp $ + +SHA1 (uutf-0.9.3.tbz) = 9f9ae5a16ff0cd7ffeebf8b4174c5f041739b231 +RMD160 (uutf-0.9.3.tbz) = c70683c518201499a455a90178d0ef88f18a3939 +Size (uutf-0.9.3.tbz) = 31734 bytes -- cgit v1.2.3