summaryrefslogtreecommitdiff
path: root/devel/js_of_ocaml
diff options
context:
space:
mode:
authorjaapb <jaapb>2015-01-20 16:09:15 +0000
committerjaapb <jaapb>2015-01-20 16:09:15 +0000
commit1201efad3f5482d4e317b0d137cc7c0d53322ff7 (patch)
tree2de0262f530c27fa65272132694c4a9dc05ecb30 /devel/js_of_ocaml
parent37c8bb1566b05a53696a37c0caa89494d61cebbf (diff)
downloadpkgsrc-1201efad3f5482d4e317b0d137cc7c0d53322ff7.tar.gz
Revbump associated with ocaml 4.02.1. Also added the ocaml-tyxml option
which compiles in tyxml (and react) support.
Diffstat (limited to 'devel/js_of_ocaml')
-rw-r--r--devel/js_of_ocaml/Makefile4
-rw-r--r--devel/js_of_ocaml/PLIST9
-rw-r--r--devel/js_of_ocaml/distinfo4
-rw-r--r--devel/js_of_ocaml/options.mk22
-rw-r--r--devel/js_of_ocaml/patches/patch-Makefile.conf15
5 files changed, 48 insertions, 6 deletions
diff --git a/devel/js_of_ocaml/Makefile b/devel/js_of_ocaml/Makefile
index 7d11a0bf12a..e0887e489fa 100644
--- a/devel/js_of_ocaml/Makefile
+++ b/devel/js_of_ocaml/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.7 2014/10/09 21:18:05 jaapb Exp $
+# $NetBSD: Makefile,v 1.8 2015/01/20 16:09:15 jaapb Exp $
#
DISTNAME= 2.5
PKGNAME= js_of_ocaml-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= https://github.com/ocsigen/js_of_ocaml/archive/
DIST_SUBDIR= js_of_ocaml
@@ -21,6 +22,7 @@ WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
MAKE_ENV= BINDIR=${DESTDIR}/${PREFIX}/bin DESTDIR=${DESTDIR} OCAML_SITELIBDIR=${OCAML_SITELIBDIR}
MAKE_JOBS_SAFE= no
+.include "options.mk"
.include "../../devel/ocaml-cmdliner/buildlink3.mk"
.include "../../devel/ocaml-lwt/buildlink3.mk"
.include "../../devel/ocaml-optcomp/buildlink3.mk"
diff --git a/devel/js_of_ocaml/PLIST b/devel/js_of_ocaml/PLIST
index 106b87d5e4e..09a3e518859 100644
--- a/devel/js_of_ocaml/PLIST
+++ b/devel/js_of_ocaml/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2014/10/09 21:18:05 jaapb Exp $
+@comment $NetBSD: PLIST,v 1.5 2015/01/20 16:09:15 jaapb Exp $
@unexec %D/libexec/ocaml-findlib-register del %D/${OCAML_SITELIB}/js_of_ocaml
bin/js_of_ocaml
bin/jsoo_minify
@@ -86,6 +86,13 @@ ${OCAML_SITELIB}/js_of_ocaml/sys_js.mli
${OCAML_SITELIB}/js_of_ocaml/toplevel.js
${OCAML_SITELIB}/js_of_ocaml/typed_array.cmi
${OCAML_SITELIB}/js_of_ocaml/typed_array.mli
+${PLIST.tyxml}${OCAML_SITELIB}/js_of_ocaml/tyxml.cma
+${PLIST.tyxml}${OCAML_SITELIB}/js_of_ocaml/tyxml_cast.cmi
+${PLIST.tyxml}${OCAML_SITELIB}/js_of_ocaml/tyxml_cast.mli
+${PLIST.tyxml}${OCAML_SITELIB}/js_of_ocaml/tyxml_cast_sigs.cmi
+${PLIST.tyxml}${OCAML_SITELIB}/js_of_ocaml/tyxml_cast_sigs.mli
+${PLIST.tyxml}${OCAML_SITELIB}/js_of_ocaml/tyxml_js.cmi
+${PLIST.tyxml}${OCAML_SITELIB}/js_of_ocaml/tyxml_js.mli
${OCAML_SITELIB}/js_of_ocaml/url.cmi
${OCAML_SITELIB}/js_of_ocaml/url.mli
${OCAML_SITELIB}/js_of_ocaml/weak.js
diff --git a/devel/js_of_ocaml/distinfo b/devel/js_of_ocaml/distinfo
index fd586643dc6..fc12d8cd87d 100644
--- a/devel/js_of_ocaml/distinfo
+++ b/devel/js_of_ocaml/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.4 2014/10/09 21:18:05 jaapb Exp $
+$NetBSD: distinfo,v 1.5 2015/01/20 16:09:15 jaapb Exp $
SHA1 (js_of_ocaml/2.5.tar.gz) = d3871a5a054f775134662ffb1886a22adc6dcf56
RMD160 (js_of_ocaml/2.5.tar.gz) = c586e6d33f182dac10c3d6270f8b095a500c3894
Size (js_of_ocaml/2.5.tar.gz) = 1249680 bytes
SHA1 (patch-Makefile) = a1ef24c53bce499e56fefb4e141d79bb8701528d
-SHA1 (patch-Makefile.conf) = 632544abd696d53fad35755bcc616922561605bf
+SHA1 (patch-Makefile.conf) = 30e429cd5193326514420a955878f5d91718e7c6
diff --git a/devel/js_of_ocaml/options.mk b/devel/js_of_ocaml/options.mk
new file mode 100644
index 00000000000..365f82968ae
--- /dev/null
+++ b/devel/js_of_ocaml/options.mk
@@ -0,0 +1,22 @@
+# $NetBSD: options.mk,v 1.1 2015/01/20 16:09:15 jaapb Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.js_of_ocaml
+PKG_SUPPORTED_OPTIONS= ocaml-tyxml
+PKG_SUGGESTED_OPTIONS= ocaml-tyxml
+
+.include "../../mk/bsd.prefs.mk"
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= tyxml
+###
+### TyXML support
+###
+.if !empty(PKG_OPTIONS:Mocaml-tyxml)
+.include "../../textproc/ocaml-tyxml/buildlink3.mk"
+.include "../../devel/ocaml-reactiveData/buildlink3.mk"
+MAKE_ENV+= USE_TYXML="YES" USE_REACT="YES"
+PLIST.tyxml= yes
+.else
+MAKE_ENV+= USE_TYXML="NO" USE_REACT="NO"
+.endif
diff --git a/devel/js_of_ocaml/patches/patch-Makefile.conf b/devel/js_of_ocaml/patches/patch-Makefile.conf
index cd895a9a53d..9d3e12157ba 100644
--- a/devel/js_of_ocaml/patches/patch-Makefile.conf
+++ b/devel/js_of_ocaml/patches/patch-Makefile.conf
@@ -1,6 +1,7 @@
-$NetBSD: patch-Makefile.conf,v 1.2 2014/10/09 21:18:05 jaapb Exp $
+$NetBSD: patch-Makefile.conf,v 1.3 2015/01/20 16:09:16 jaapb Exp $
Have BINDIR be determined from package Makefile, do not call git
+Also determine tyxml and react usage based on options rather than detection
--- Makefile.conf.orig 2014-09-30 14:40:37.000000000 +0000
+++ Makefile.conf
@@ -1,6 +1,6 @@
@@ -11,7 +12,17 @@ Have BINDIR be determined from package Makefile, do not call git
####
-@@ -47,4 +47,4 @@ NATDYNLINK ?= $(shell if [ -f `ocamlc -w
+@@ -39,12 +39,12 @@ WITH_DERIVING ?= $(shell if [ -f `ocamlf
+
+ WITH_GRAPHICS ?= $(shell if [ -f `ocamlfind query graphics 2> /dev/null`/graphics.cmi ]; then echo YES; else echo NO; fi)
+
+-WITH_REACT ?= $(shell if [ -f `ocamlfind query reactiveData 2> /dev/null`/reactiveData.cma ]; then echo YES; else echo NO; fi)
+-WITH_TYXML ?= $(shell if [ -f `ocamlfind query tyxml 2> /dev/null`/tyxml_f.cma ]; then echo YES; else echo NO; fi)
++WITH_REACT ?= $(USE_REACT)
++WITH_TYXML ?= $(USE_TYXML)
+
+
+ NATDYNLINK ?= $(shell if [ -f `ocamlc -where`/dynlink.cmxa ]; then echo YES; else echo NO; fi)
METAOCAML ?= 0