diff options
author | jaapb <jaapb> | 2016-02-17 16:44:44 +0000 |
---|---|---|
committer | jaapb <jaapb> | 2016-02-17 16:44:44 +0000 |
commit | 3f2ea025be5bfaf5170bd4ecad13c4ee05a360d9 (patch) | |
tree | 1de777c10bbbc18105ae0bb988b0db1c4d2dda3e /devel/ocaml-ppx_deriving | |
parent | 731b8b69c928be7abc7e4dcf189434d1d0176fbf (diff) | |
download | pkgsrc-3f2ea025be5bfaf5170bd4ecad13c4ee05a360d9.tar.gz |
Added package devel/ocaml-ppx_deriving, which is a PPX-enabled version
of dhe ocaml-deriving package already present in pkgsrc as
devel/ocaml-deriving-ocsigen.
Diffstat (limited to 'devel/ocaml-ppx_deriving')
-rw-r--r-- | devel/ocaml-ppx_deriving/DESCR | 3 | ||||
-rw-r--r-- | devel/ocaml-ppx_deriving/Makefile | 23 | ||||
-rw-r--r-- | devel/ocaml-ppx_deriving/PLIST | 62 | ||||
-rw-r--r-- | devel/ocaml-ppx_deriving/distinfo | 7 | ||||
-rw-r--r-- | devel/ocaml-ppx_deriving/patches/patch-Makefile | 19 |
5 files changed, 114 insertions, 0 deletions
diff --git a/devel/ocaml-ppx_deriving/DESCR b/devel/ocaml-ppx_deriving/DESCR new file mode 100644 index 00000000000..3055748f623 --- /dev/null +++ b/devel/ocaml-ppx_deriving/DESCR @@ -0,0 +1,3 @@ +Extension to OCaml for deriving functions from type declarations. Includes +derivers for pretty-printing, type-safe marshalling with structure-sharing, +dynamic typing, equality, and more. diff --git a/devel/ocaml-ppx_deriving/Makefile b/devel/ocaml-ppx_deriving/Makefile new file mode 100644 index 00000000000..e207c5c0e8a --- /dev/null +++ b/devel/ocaml-ppx_deriving/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1 2016/02/17 16:44:44 jaapb Exp $ + +GITHUB_PROJECT= ppx_deriving +DISTNAME= ${GITHUB_PROJECT}-3.1 +PKGNAME= ocaml-${DISTNAME} +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_GITHUB:=whitequark/} +GITHUB_TAG= v${PKGVERSION_NOREV} + +MAINTAINER= jaapb@NetBSD.org +HOMEPAGE= ${MASTER_SITE_GITHUB:=whitequark/ppx_deriving/} +COMMENT= Type-driven code generation for OCaml +LICENSE= mit + + +USE_LANGUAGES= c +USE_TOOLS+= gmake +OCAML_USE_FINDLIB= yes + +BUILD_TARGET= build + +.include "../../mk/ocaml.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/ocaml-ppx_deriving/PLIST b/devel/ocaml-ppx_deriving/PLIST new file mode 100644 index 00000000000..d5334159753 --- /dev/null +++ b/devel/ocaml-ppx_deriving/PLIST @@ -0,0 +1,62 @@ +@comment $NetBSD: PLIST,v 1.1 2016/02/17 16:44:44 jaapb Exp $ +${OCAML_SITELIB}/ppx_deriving/CHANGELOG.md +${OCAML_SITELIB}/ppx_deriving/LICENSE.txt +${OCAML_SITELIB}/ppx_deriving/META +${OCAML_SITELIB}/ppx_deriving/README.md +${OCAML_SITELIB}/ppx_deriving/ppx_deriving +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving.a +${OCAML_SITELIB}/ppx_deriving/ppx_deriving.cma +${OCAML_SITELIB}/ppx_deriving/ppx_deriving.cmi +${OCAML_SITELIB}/ppx_deriving/ppx_deriving.cmti +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving.cmx +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving.cmxa +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving.cmxs +${OCAML_SITELIB}/ppx_deriving/ppx_deriving.mli +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_create.a +${OCAML_SITELIB}/ppx_deriving/ppx_deriving_create.cma +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_create.cmxa +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_create.cmxs +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_enum.a +${OCAML_SITELIB}/ppx_deriving/ppx_deriving_enum.cma +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_enum.cmxa +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_enum.cmxs +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_eq.a +${OCAML_SITELIB}/ppx_deriving/ppx_deriving_eq.cma +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_eq.cmxa +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_eq.cmxs +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_fold.a +${OCAML_SITELIB}/ppx_deriving/ppx_deriving_fold.cma +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_fold.cmxa +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_fold.cmxs +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_iter.a +${OCAML_SITELIB}/ppx_deriving/ppx_deriving_iter.cma +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_iter.cmxa +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_iter.cmxs +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_main.a +${OCAML_SITELIB}/ppx_deriving/ppx_deriving_main.cma +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_main.cmxa +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_main.cmxs +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_make.a +${OCAML_SITELIB}/ppx_deriving/ppx_deriving_make.cma +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_make.cmxa +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_make.cmxs +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_map.a +${OCAML_SITELIB}/ppx_deriving/ppx_deriving_map.cma +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_map.cmxa +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_map.cmxs +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_ord.a +${OCAML_SITELIB}/ppx_deriving/ppx_deriving_ord.cma +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_ord.cmxa +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_ord.cmxs +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_runtime.a +${OCAML_SITELIB}/ppx_deriving/ppx_deriving_runtime.cma +${OCAML_SITELIB}/ppx_deriving/ppx_deriving_runtime.cmi +${OCAML_SITELIB}/ppx_deriving/ppx_deriving_runtime.cmti +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_runtime.cmx +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_runtime.cmxa +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_runtime.cmxs +${OCAML_SITELIB}/ppx_deriving/ppx_deriving_runtime.mli +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_show.a +${OCAML_SITELIB}/ppx_deriving/ppx_deriving_show.cma +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_show.cmxa +${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_deriving/ppx_deriving_show.cmxs diff --git a/devel/ocaml-ppx_deriving/distinfo b/devel/ocaml-ppx_deriving/distinfo new file mode 100644 index 00000000000..8d3bf778435 --- /dev/null +++ b/devel/ocaml-ppx_deriving/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2016/02/17 16:44:44 jaapb Exp $ + +SHA1 (ppx_deriving-3.1.tar.gz) = baf74ef207909fcbbc2df679b2e067e10c68d1a1 +RMD160 (ppx_deriving-3.1.tar.gz) = 61884c3a9455b58b4b03e9e1173372d94ce686a4 +SHA512 (ppx_deriving-3.1.tar.gz) = ef3174f4fbecea9c613deb62aebb45de2b2abf640d557973f0621575a391cc11fc4135c782dc3d202012ddbeaadb3c7dd84f42d08aef0ba668bd169dedfeedf0 +Size (ppx_deriving-3.1.tar.gz) = 40720 bytes +SHA1 (patch-Makefile) = b7a4e06f34e235b27091b015be9356ec39222900 diff --git a/devel/ocaml-ppx_deriving/patches/patch-Makefile b/devel/ocaml-ppx_deriving/patches/patch-Makefile new file mode 100644 index 00000000000..2cced0fc34d --- /dev/null +++ b/devel/ocaml-ppx_deriving/patches/patch-Makefile @@ -0,0 +1,19 @@ +$NetBSD: patch-Makefile,v 1.1 2016/02/17 16:44:44 jaapb Exp $ + +Do not remove package before installing and use DESTDIR +--- Makefile.orig 2016-02-17 05:38:04.000000000 +0000 ++++ Makefile +@@ -49,11 +49,11 @@ release: + rm -rf $(NAME_VERSION) + + install: +- ocamlfind remove ppx_deriving ++# ocamlfind remove ppx_deriving + grep -E '^[[:space:]]+' ppx_deriving.install | \ + awk '{ print $$1 }' | \ + sed -e 's:"?*::g' | \ + xargs ocamlfind install ppx_deriving +- mv `ocamlfind query ppx_deriving`/ppx_deriving_main.native `ocamlfind query ppx_deriving`/ppx_deriving$(EXE) ++ mv ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/ppx_deriving/ppx_deriving_main.native ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/ppx_deriving/ppx_deriving$(EXE) + + .PHONY: gh-pages release |