aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ocaml-yaxi
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2004-03-19 10:24:46 +0800
committerijliao <ijliao@FreeBSD.org>2004-03-19 10:24:46 +0800
commit652795dc215aab31f585285214c8d4f0361751aa (patch)
treeef2eff874661c5a5de4a52b839967a4f9bafc668 /textproc/ocaml-yaxi
parentd37e5ac27953d56940045d73fb215f5c629cf027 (diff)
downloadfreebsd-ports-gnome-652795dc215aab31f585285214c8d4f0361751aa.tar.gz
freebsd-ports-gnome-652795dc215aab31f585285214c8d4f0361751aa.tar.zst
freebsd-ports-gnome-652795dc215aab31f585285214c8d4f0361751aa.zip
reimport ocaml-yaxi 0.5.2
Yet Another X* Implementation for OCaml
Diffstat (limited to 'textproc/ocaml-yaxi')
-rw-r--r--textproc/ocaml-yaxi/Makefile42
-rw-r--r--textproc/ocaml-yaxi/distinfo2
-rw-r--r--textproc/ocaml-yaxi/files/patch-Makefile20
-rw-r--r--textproc/ocaml-yaxi/pkg-descr5
-rw-r--r--textproc/ocaml-yaxi/pkg-install9
5 files changed, 78 insertions, 0 deletions
diff --git a/textproc/ocaml-yaxi/Makefile b/textproc/ocaml-yaxi/Makefile
new file mode 100644
index 000000000000..dca029620ab2
--- /dev/null
+++ b/textproc/ocaml-yaxi/Makefile
@@ -0,0 +1,42 @@
+# ex:ts=8
+# Ports collection makefile for: yaxi
+# Date created: Mar 17, 2004
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= yaxi
+PORTVERSION= 0.5.2
+CATEGORIES= textproc
+MASTER_SITES= http://mattam.ath.cx/progs/yaxi/releases/
+PKGNAMEPREFIX= ocaml-
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Yet Another X* Implementation for OCaml
+
+BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
+ ocamlfind:${PORTSDIR}/devel/ocaml-findlib \
+ ${OCAML_SITELIBDIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net \
+ ${OCAML_SITELIBDIR}/ulex/ulexing.a:${PORTSDIR}/devel/ulex \
+ ${OCAML_SITELIBDIR}/camomile/camomile.a:${PORTSDIR}/devel/camomile
+RUN_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
+ ocamlfind:${PORTSDIR}/devel/ocaml-findlib \
+ ${OCAML_SITELIBDIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net \
+ ${OCAML_SITELIBDIR}/ulex/ulexing.a:${PORTSDIR}/devel/ulex \
+ ${OCAML_SITELIBDIR}/camomile/camomile.a:${PORTSDIR}/devel/camomile
+
+OCAML_SITELIBDIR= ${LOCALBASE}/lib/ocaml/site-lib
+USE_GMAKE= yes
+
+PLIST_FILES= bin/yaxsltproc
+
+PKGDEINSTALL= ${PKGINSTALL}
+
+post-install:
+ @${FIND} ${PREFIX}/lib/ocaml/site-lib/${PORTNAME} -type f | \
+ ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
+ @${ECHO_CMD} "@dirrm lib/ocaml/site-lib/${PORTNAME}" >> ${TMPPLIST}
+ @${ECHO_CMD} "@unexec ocamlfind remove ${PORTNAME} 2>/dev/null || true" >> ${TMPPLIST}
+
+.include <bsd.port.mk>
diff --git a/textproc/ocaml-yaxi/distinfo b/textproc/ocaml-yaxi/distinfo
new file mode 100644
index 000000000000..893792032634
--- /dev/null
+++ b/textproc/ocaml-yaxi/distinfo
@@ -0,0 +1,2 @@
+MD5 (yaxi-0.5.2.tar.gz) = ea17a507207057e3489cf987a9a80b10
+SIZE (yaxi-0.5.2.tar.gz) = 69067
diff --git a/textproc/ocaml-yaxi/files/patch-Makefile b/textproc/ocaml-yaxi/files/patch-Makefile
new file mode 100644
index 000000000000..99b2f46ee10c
--- /dev/null
+++ b/textproc/ocaml-yaxi/files/patch-Makefile
@@ -0,0 +1,20 @@
+--- Makefile.orig Thu Mar 18 09:56:55 2004
++++ Makefile Thu Mar 18 09:57:50 2004
+@@ -3,7 +3,7 @@
+
+ export VERSION
+ # Where the binaries will go (yaxsltproc)
+-BIN_DESTDIR = ${DESTDIR}/usr/bin/
++BIN_DESTDIR = ${PREFIX}/bin
+
+ DIST_FILES = Makefile OCamlMakefile AUTHORS README COPYING ChangeLog META.in TODO \
+ examples/Makefile examples/*.ml examples/*.x*l
+@@ -41,7 +41,7 @@
+
+ install: all META
+ ocamlfind install yaxi META src/*.mli src/*.cm* src/*.a
+- install -D src/yaxsltproc ${BIN_DESTDIR}/yaxsltproc
++ ${BSD_INSTALL_PROGRAM} src/yaxsltproc ${BIN_DESTDIR}/yaxsltproc
+
+ dist: clean
+ mkdir tmp/yaxi-$(VERSION)
diff --git a/textproc/ocaml-yaxi/pkg-descr b/textproc/ocaml-yaxi/pkg-descr
new file mode 100644
index 000000000000..b6b5e026bc3b
--- /dev/null
+++ b/textproc/ocaml-yaxi/pkg-descr
@@ -0,0 +1,5 @@
+Yaxi contains a (currently non-validating) XML parser (SAX, DOM methods, pull
+parser in the works), a complete XPath implementation and a (still incomplete)
+XSL implementation.
+
+WWW: http://mattam.ath.cx/progs/yaxi.html
diff --git a/textproc/ocaml-yaxi/pkg-install b/textproc/ocaml-yaxi/pkg-install
new file mode 100644
index 000000000000..062835258438
--- /dev/null
+++ b/textproc/ocaml-yaxi/pkg-install
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ "$2" = "POST-INSTALL" ]; then
+ echo "${PKG_PREFIX}/lib/ocaml/site-lib/yaxi" >> ${PKG_PREFIX}/lib/ocaml/ld.conf
+elif [ "$2" = "DEINSTALL" ]; then
+ mv ${PKG_PREFIX}/lib/ocaml/ld.conf ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
+ grep -v yaxi ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp > ${PKG_PREFIX}/lib/ocaml/ld.conf
+ rm -f ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
+fi