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).
This commit is contained in:
wiz 2012-08-16 11:49:30 +00:00
parent b62d01938a
commit 540c5ff174
3 changed files with 20 additions and 15 deletions

View file

@ -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:

View file

@ -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

View file

@ -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