pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/ocaml-optcomp Committed devel/optcomp, a cpp-lik...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1f23de553ee8
branches:  trunk
changeset: 626102:1f23de553ee8
user:      jaapb <jaapb%pkgsrc.org@localhost>
date:      Fri Nov 01 11:40:00 2013 +0000

description:
Committed devel/optcomp, a cpp-like ocaml syntax extension for optional
compilation.

diffstat:

 devel/ocaml-optcomp/DESCR         |   2 +
 devel/ocaml-optcomp/Makefile      |  40 +++++++++++++++++++++++++++++++++++++++
 devel/ocaml-optcomp/PLIST         |  11 ++++++++++
 devel/ocaml-optcomp/buildlink3.mk |  14 +++++++++++++
 devel/ocaml-optcomp/distinfo      |   5 ++++
 5 files changed, 72 insertions(+), 0 deletions(-)

diffs (92 lines):

diff -r 829c2575babc -r 1f23de553ee8 devel/ocaml-optcomp/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ocaml-optcomp/DESCR Fri Nov 01 11:40:00 2013 +0000
@@ -0,0 +1,2 @@
+optcomp is an OCaml/Camlp4 syntax extension for optional compilation with
+cpp-like directives.
diff -r 829c2575babc -r 1f23de553ee8 devel/ocaml-optcomp/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ocaml-optcomp/Makefile      Fri Nov 01 11:40:00 2013 +0000
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1 2013/11/01 11:40:00 jaapb Exp $
+
+DISTNAME=      optcomp-1.4
+CATEGORIES=    devel
+MASTER_SITES=  http://forge.ocamlcore.org/frs/download.php/1011/
+
+MAINTAINER=    jaapb%NetBSD.org@localhost
+HOMEPAGE=      http://optcomp.forge.ocamlcore.org/
+COMMENT=       OCaml syntax extension for optional compilation
+LICENSE=       modified-bsd
+
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS+=       --destdir "${DESTDIR}" --prefix "${PREFIX}"
+USE_LANGUAGES= c
+
+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,'
+
+INSTALLATION_DIRS=     lib/ocaml/site-lib/optcomp
+
+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
+
+do-install:
+       cd ${WRKSRC} && ocaml setup.ml -install
+
+.include "../../lang/ocaml/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 829c2575babc -r 1f23de553ee8 devel/ocaml-optcomp/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ocaml-optcomp/PLIST Fri Nov 01 11:40:00 2013 +0000
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1 2013/11/01 11:40:00 jaapb Exp $
+bin/optcomp-o
+bin/optcomp-r
+lib/ocaml/site-lib/optcomp/META
+${PLIST.opt}lib/ocaml/site-lib/optcomp/optcomp.a
+lib/ocaml/site-lib/optcomp/optcomp.cma
+${PLIST.opt}lib/ocaml/site-lib/optcomp/optcomp.cmxa
+${PLIST.opt}lib/ocaml/site-lib/optcomp/optcomp.cmxs
+lib/ocaml/site-lib/optcomp/pa_optcomp.cmi
+${PLIST.opt}lib/ocaml/site-lib/optcomp/pa_optcomp.cmx
+lib/ocaml/site-lib/optcomp/pa_optcomp.mli
diff -r 829c2575babc -r 1f23de553ee8 devel/ocaml-optcomp/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ocaml-optcomp/buildlink3.mk Fri Nov 01 11:40:00 2013 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2013/11/01 11:40:00 jaapb Exp $
+
+BUILDLINK_TREE+=       optcomp
+
+.if !defined(OPTCOMP_BUILDLINK3_MK)
+OPTCOMP_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.optcomp+=        optcomp>=1.4
+BUILDLINK_PKGSRCDIR.optcomp?=  ../../devel/ocaml-optcomp
+
+.include "../../lang/ocaml/buildlink3.mk"
+.endif # OPTCOMP_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -optcomp
diff -r 829c2575babc -r 1f23de553ee8 devel/ocaml-optcomp/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ocaml-optcomp/distinfo      Fri Nov 01 11:40:00 2013 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2013/11/01 11:40:00 jaapb Exp $
+
+SHA1 (optcomp-1.4.tar.gz) = 8b343d71c1dd475a3494ebc24a0cf4a1a4396f68
+RMD160 (optcomp-1.4.tar.gz) = dda976ff905d264192e6629f3b9ebe52e6a7de85
+Size (optcomp-1.4.tar.gz) = 53682 bytes



Home | Main Index | Thread Index | Old Index