summaryrefslogtreecommitdiff
path: root/devel/ocaml-react
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2012-08-16 11:49:30 +0000
committerwiz <wiz@pkgsrc.org>2012-08-16 11:49:30 +0000
commit305750385799ddddadc72c767e795ef4660c66ac (patch)
tree8f67e02675891cf1e9a72f03595340e90d42b7f1 /devel/ocaml-react
parentdaa5c53f2afcdfaf2657c0f620661b1b3071662c (diff)
downloadpkgsrc-305750385799ddddadc72c767e795ef4660c66ac.tar.gz
Update to 0.9.4, provided by Jaap Boender in PR 46806:
This is an update of the package to its newest version. There are no changes in functionality, only in the build system. The package itself has also been improved slightly (use of PLIST_VARS, most notably).
Diffstat (limited to 'devel/ocaml-react')
-rw-r--r--devel/ocaml-react/Makefile20
-rw-r--r--devel/ocaml-react/PLIST7
-rw-r--r--devel/ocaml-react/distinfo8
3 files changed, 20 insertions, 15 deletions
diff --git a/devel/ocaml-react/Makefile b/devel/ocaml-react/Makefile
index 5fccc30bc9a..1014e96beb0 100644
--- a/devel/ocaml-react/Makefile
+++ b/devel/ocaml-react/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.1.1.1 2012/05/29 14:45:14 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2012/08/16 11:49:30 wiz Exp $
PKGNAME= ocaml-${DISTNAME}
-DISTNAME= react-0.9.3
+DISTNAME= react-0.9.4
CATEGORIES= devel
MASTER_SITES= http://erratique.ch/software/react/releases/
EXTRACT_SUFX= .tbz
@@ -25,16 +25,17 @@ SUBST_SED.destdir= -e 's,"install" :: findlib_name,"install" :: "-destdir $
DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
+PLIST_VARS+= opt
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
(${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
-PLIST_SRC+= PLIST.opt
-BUILD_TARGET= module
-INSTALL_TARGET= install
-.else
-BUILD_TARGET= module-byte
-INSTALL_TARGET= install-byte
+PLIST.opt= yes
+
+post-build:
+ cd ${WRKSRC} && ocamlbuild src/react.cmxs
+
+post-install:
+ cd ${WRKSRC} && ${INSTALL_LIB} _build/src/react.cmxs ${DESTDIR}${PREFIX}/lib/ocaml/site-lib/react
.endif
-PLIST_SRC+= PLIST
do-configure:
cd ${WRKSRC} && ocaml setup.ml -configure ${CONFIGURE_ARGS}
@@ -43,7 +44,6 @@ do-build:
cd ${WRKSRC} && ocaml setup.ml -build
pre-install:
- ${RM} -rf ${DESTDIR}/${PREFIX}/lib/ocaml/site-lib/react
${MKDIR} ${DESTDIR}/${PREFIX}/lib/ocaml/site-lib
do-install:
diff --git a/devel/ocaml-react/PLIST b/devel/ocaml-react/PLIST
index e9d034b4312..0150cfe00e7 100644
--- a/devel/ocaml-react/PLIST
+++ b/devel/ocaml-react/PLIST
@@ -1,6 +1,11 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2012/05/29 14:45:14 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2012/08/16 11:49:30 wiz Exp $
@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/react
lib/ocaml/site-lib/react/META
+${PLIST.opt}lib/ocaml/site-lib/react/react.a
lib/ocaml/site-lib/react/react.cmi
+${PLIST.opt}lib/ocaml/site-lib/react/react.cma
+${PLIST.opt}lib/ocaml/site-lib/react/react.cmx
+${PLIST.opt}lib/ocaml/site-lib/react/react.cmxa
+${PLIST.opt}lib/ocaml/site-lib/react/react.cmxs
lib/ocaml/site-lib/react/react.mli
@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/react
diff --git a/devel/ocaml-react/distinfo b/devel/ocaml-react/distinfo
index 57fcff62f05..47d82f44d9b 100644
--- a/devel/ocaml-react/distinfo
+++ b/devel/ocaml-react/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2012/05/29 14:45:14 wiz Exp $
+$NetBSD: distinfo,v 1.2 2012/08/16 11:49:30 wiz Exp $
-SHA1 (react-0.9.3.tbz) = 949fbf9df877371b8a968d590aa88f43efa05eec
-RMD160 (react-0.9.3.tbz) = 9f0ade798591d7a4da0d32ae1ea56f4baaae2b04
-Size (react-0.9.3.tbz) = 78204 bytes
+SHA1 (react-0.9.4.tbz) = b055d40f43411f8367eeb11f4e87f7d3955d7b2d
+RMD160 (react-0.9.4.tbz) = 64fc6c80cb4ff1c52daa89dda0d774297f900b6c
+Size (react-0.9.4.tbz) = 82964 bytes