aboutsummaryrefslogtreecommitdiff
path: root/textproc/ocaml-yaxi
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2004-11-02 21:34:33 +0000
committerVolker Stolz <vs@FreeBSD.org>2004-11-02 21:34:33 +0000
commit007e5933b4404865902f8511c7ab698fe3b83043 (patch)
treeb62aa889195f3b40cb0097b635b511189087d506 /textproc/ocaml-yaxi
parent812bdd2597ae0c92bea12e3119b6d0ed25a99cea (diff)
downloadports-007e5933b4404865902f8511c7ab698fe3b83043.tar.gz
ports-007e5933b4404865902f8511c7ab698fe3b83043.zip
Notes
Diffstat (limited to 'textproc/ocaml-yaxi')
-rw-r--r--textproc/ocaml-yaxi/Makefile9
-rw-r--r--textproc/ocaml-yaxi/distinfo4
-rw-r--r--textproc/ocaml-yaxi/files/patch-Makefile13
-rw-r--r--textproc/ocaml-yaxi/files/patch-src_Makefile11
4 files changed, 26 insertions, 11 deletions
diff --git a/textproc/ocaml-yaxi/Makefile b/textproc/ocaml-yaxi/Makefile
index 06f1c503115f..1ae0909b9e15 100644
--- a/textproc/ocaml-yaxi/Makefile
+++ b/textproc/ocaml-yaxi/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= yaxi
-PORTVERSION= 0.5.2
+PORTVERSION= 0.5.3
CATEGORIES= textproc
MASTER_SITES= http://mattam.ath.cx/progs/yaxi/releases/
PKGNAMEPREFIX= ocaml-
@@ -35,11 +35,12 @@ PKGDEINSTALL= ${PKGINSTALL}
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 502126
-BROKEN= "Does not compile on FreeBSD >= 5.x"
-.endif
+pre-install:
+ ${MKDIR} ${PREFIX}/lib/ocaml/site-lib
post-install:
+ @${SETENV} PKG_PREFIX=${PREFIX} \
+ ${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL
@${FIND} ${PREFIX}/lib/ocaml/site-lib/${PORTNAME} -type f | \
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm lib/ocaml/site-lib/${PORTNAME}" >> ${TMPPLIST}
diff --git a/textproc/ocaml-yaxi/distinfo b/textproc/ocaml-yaxi/distinfo
index 893792032634..f3a10565b5d1 100644
--- a/textproc/ocaml-yaxi/distinfo
+++ b/textproc/ocaml-yaxi/distinfo
@@ -1,2 +1,2 @@
-MD5 (yaxi-0.5.2.tar.gz) = ea17a507207057e3489cf987a9a80b10
-SIZE (yaxi-0.5.2.tar.gz) = 69067
+MD5 (yaxi-0.5.3.tar.gz) = e22f743b9b67605a53ef8f9b587c3bd5
+SIZE (yaxi-0.5.3.tar.gz) = 66430
diff --git a/textproc/ocaml-yaxi/files/patch-Makefile b/textproc/ocaml-yaxi/files/patch-Makefile
index 99b2f46ee10c..4c81b8bf5d05 100644
--- a/textproc/ocaml-yaxi/files/patch-Makefile
+++ b/textproc/ocaml-yaxi/files/patch-Makefile
@@ -1,19 +1,22 @@
---- Makefile.orig Thu Mar 18 09:56:55 2004
-+++ Makefile Thu Mar 18 09:57:50 2004
-@@ -3,7 +3,7 @@
+--- Makefile.orig Sun May 2 13:39:22 2004
++++ Makefile Thu Sep 2 22:01:14 2004
+@@ -3,7 +3,8 @@
export VERSION
# Where the binaries will go (yaxsltproc)
-BIN_DESTDIR = ${DESTDIR}/usr/bin/
+BIN_DESTDIR = ${PREFIX}/bin
++PKG_DESTDIR = ${PREFIX}/lib/ocaml/site-lib
DIST_FILES = Makefile OCamlMakefile AUTHORS README COPYING ChangeLog META.in TODO \
examples/Makefile examples/*.ml examples/*.x*l
-@@ -41,7 +41,7 @@
+@@ -40,8 +41,8 @@
+ rm -f META.tmp
install: all META
- ocamlfind install yaxi META src/*.mli src/*.cm* src/*.a
+- ocamlfind install yaxi META src/*.mli src/*.cm* src/*.a
- install -D src/yaxsltproc ${BIN_DESTDIR}/yaxsltproc
++ ocamlfind install -destdir ${PKG_DESTDIR} yaxi META src/*.mli src/*.cm* src/*.a
+ ${BSD_INSTALL_PROGRAM} src/yaxsltproc ${BIN_DESTDIR}/yaxsltproc
dist: clean
diff --git a/textproc/ocaml-yaxi/files/patch-src_Makefile b/textproc/ocaml-yaxi/files/patch-src_Makefile
new file mode 100644
index 000000000000..31388bf7eea5
--- /dev/null
+++ b/textproc/ocaml-yaxi/files/patch-src_Makefile
@@ -0,0 +1,11 @@
+--- src/Makefile.old Thu Sep 2 21:48:00 2004
++++ src/Makefile Thu Sep 2 21:48:10 2004
+@@ -44,7 +44,7 @@
+ ocamlfind ocamlmktop -package netstring,ulex,camlp4 -syntax camlp4o -I +camlp4 -linkpkg -o yaxi.top yaxi.cma
+
+ yaxi.ml: yaxi.ml.in
+- sed -e s/COMPDATE/"$(shell date -R)"/ yaxi.ml.in > yaxi.ml.in.tmp
++ sed -e s/COMPDATE/"$(shell date)"/ yaxi.ml.in > yaxi.ml.in.tmp
+ sed -e s/VERSION/${VERSION}/ yaxi.ml.in.tmp > yaxi.ml
+ @rm -f yaxi.ml.in.tmp
+