diff options
author | jaapb <jaapb> | 2016-12-30 12:02:10 +0000 |
---|---|---|
committer | jaapb <jaapb> | 2016-12-30 12:02:10 +0000 |
commit | db8d8c166fb502f7b2bc7efc5815fec8b0d5f453 (patch) | |
tree | 743b26530f051fc88cb1c758820b59e383d83a82 /textproc/ocaml-uchar | |
parent | 1a37d55e50fbfcb6a557bb6834a38fde545494dd (diff) | |
download | pkgsrc-db8d8c166fb502f7b2bc7efc5815fec8b0d5f453.tar.gz |
Added new package ocaml-uchar. This is a compatibility library so that
pre-4.03 versions of OCaml can use the uchar library. Given that pkgsrc
uses 4.04 now, this library will always be empty, but it is needed for
dependency purposes.
Diffstat (limited to 'textproc/ocaml-uchar')
-rw-r--r-- | textproc/ocaml-uchar/DESCR | 2 | ||||
-rw-r--r-- | textproc/ocaml-uchar/Makefile | 34 | ||||
-rw-r--r-- | textproc/ocaml-uchar/PLIST | 2 | ||||
-rw-r--r-- | textproc/ocaml-uchar/buildlink3.mk | 13 | ||||
-rw-r--r-- | textproc/ocaml-uchar/distinfo | 6 |
5 files changed, 57 insertions, 0 deletions
diff --git a/textproc/ocaml-uchar/DESCR b/textproc/ocaml-uchar/DESCR new file mode 100644 index 00000000000..2cb2130ecfa --- /dev/null +++ b/textproc/ocaml-uchar/DESCR @@ -0,0 +1,2 @@ +This package provides a compatibility library for the Uchar module introduced +in OCaml 4.03. diff --git a/textproc/ocaml-uchar/Makefile b/textproc/ocaml-uchar/Makefile new file mode 100644 index 00000000000..4869987e37e --- /dev/null +++ b/textproc/ocaml-uchar/Makefile @@ -0,0 +1,34 @@ +# $NetBSD: Makefile,v 1.1 2016/12/30 12:02:10 jaapb Exp $ + +VERSION= 0.0.1 +GITHUB_PROJECT= uchar +GITHUB_TAG= v${VERSION} +DISTNAME= ${GITHUB_PROJECT}-${VERSION} +PKGNAME= ocaml-${DISTNAME} +CATEGORIES= textproc +MASTER_SITES= ${MASTER_SITE_GITHUB:=ocaml/} + +MAINTAINER= jaapb@NetBSD.org +HOMEPAGE= https://github.com/ocaml/uchar/ +COMMENT= Compatibility library for the OCaml UChar module +LICENSE= gnu-lgpl-v2.1 + +INSTALLATION_DIRS= ${OCAML_SITELIBDIR}/uchar + +.include "../../mk/ocaml.mk" + +.if ${OCAML_USE_OPT_COMPILER} == "yes" +NATIVE= true +.else +NATIVE= false +.endif + +do-build: + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ocaml ./pkg/build.ml \ + native=${NATIVE} native-dynlink=${NATIVE} + +do-install: + ${INSTALL_DATA} ${WRKSRC}/pkg/META.empty ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/uchar/META + +.include "../../devel/ocamlbuild/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/ocaml-uchar/PLIST b/textproc/ocaml-uchar/PLIST new file mode 100644 index 00000000000..17265a0b452 --- /dev/null +++ b/textproc/ocaml-uchar/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2016/12/30 12:02:10 jaapb Exp $ +${OCAML_SITELIB}/uchar/META diff --git a/textproc/ocaml-uchar/buildlink3.mk b/textproc/ocaml-uchar/buildlink3.mk new file mode 100644 index 00000000000..9a6798daedc --- /dev/null +++ b/textproc/ocaml-uchar/buildlink3.mk @@ -0,0 +1,13 @@ +# $NetBSD: buildlink3.mk,v 1.1 2016/12/30 12:02:10 jaapb Exp $ + +BUILDLINK_TREE+= ocaml-uchar + +.if !defined(OCAML_UCHAR_BUILDLINK3_MK) +OCAML_UCHAR_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.ocaml-uchar+= ocaml-uchar>=0.0.1 +BUILDLINK_PKGSRCDIR.ocaml-uchar?= ../../textproc/ocaml-uchar + +.endif # OCAML_UCHAR_BUILDLINK3_MK + +BUILDLINK_TREE+= -ocaml-uchar diff --git a/textproc/ocaml-uchar/distinfo b/textproc/ocaml-uchar/distinfo new file mode 100644 index 00000000000..c6490975682 --- /dev/null +++ b/textproc/ocaml-uchar/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2016/12/30 12:02:10 jaapb Exp $ + +SHA1 (uchar-0.0.1.tar.gz) = 3b22f264be8ceda428d7fa22a813e65d96e6dc83 +RMD160 (uchar-0.0.1.tar.gz) = 5024476db24145e05766660edc926d50c111f9cb +SHA512 (uchar-0.0.1.tar.gz) = 6bdc3646cb959af1a289e22f5202da2f3e3462b42a563ec4a999e96ba7b2d0c95e2d42ef06b35cd9c477eebfadef5bba4abdb60997faa7e6848aa6bcb5d729c2 +Size (uchar-0.0.1.tar.gz) = 23471 bytes |