diff options
author | pav <pav@FreeBSD.org> | 2005-02-09 18:24:53 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-02-09 18:24:53 +0800 |
commit | 64e5c4b53aa1092a02e2c9277a5bb6dd027f0fb8 (patch) | |
tree | 82a2fdc9df627580d82dc28826d028bb8edc1c8e | |
parent | 1fc580c313868656c42e4eec870f20a85045108c (diff) | |
download | freebsd-ports-gnome-64e5c4b53aa1092a02e2c9277a5bb6dd027f0fb8.tar.gz freebsd-ports-gnome-64e5c4b53aa1092a02e2c9277a5bb6dd027f0fb8.tar.zst freebsd-ports-gnome-64e5c4b53aa1092a02e2c9277a5bb6dd027f0fb8.zip |
An ocaml wrapper for the Expat XML parsing library.
PR: ports/77266
Submitted by: Marwan Burelle <marwan.burelle@lri.fr>
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/ocaml-expat/Makefile | 44 | ||||
-rw-r--r-- | textproc/ocaml-expat/distinfo | 2 | ||||
-rw-r--r-- | textproc/ocaml-expat/files/patch-Makefile | 24 | ||||
-rw-r--r-- | textproc/ocaml-expat/pkg-descr | 6 | ||||
-rw-r--r-- | textproc/ocaml-expat/pkg-install | 9 |
6 files changed, 86 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index de3022a343f4..8630d4c29477 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -245,6 +245,7 @@ SUBDIR += nunnimcax SUBDIR += nux SUBDIR += ny-aspell + SUBDIR += ocaml-expat SUBDIR += ocaml-pxp SUBDIR += ocaml-yaxi SUBDIR += ocaml-yaxpo diff --git a/textproc/ocaml-expat/Makefile b/textproc/ocaml-expat/Makefile new file mode 100644 index 000000000000..596bc9a815a3 --- /dev/null +++ b/textproc/ocaml-expat/Makefile @@ -0,0 +1,44 @@ +# ex:ts=8 +# Ports collection makefile for: ocaml-expat +# Date created: Sept 15, 2004 +# Whom: Marwan Burelle <marwan.burelle@lri.fr +# +# $FreeBSD$ +# + +PORTNAME= ocaml-expat +PORTVERSION= 0.1.0 +CATEGORIES= textproc +MASTER_SITES= http://www.xs4all.nl/~mmzeeman/ocaml/ + +MAINTAINER= marwan.burelle@lri.fr +COMMENT= A stub for the expat parser in OCaml + +BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ + ocamlfind:${PORTSDIR}/devel/ocaml-findlib +RUN_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ + ocamlfind:${PORTSDIR}/devel/ocaml-findlib +LIB_DEPENDS= expat.5:${PORTSDIR}/textproc/expat2 + +USE_GMAKE= yes +ALL_TARGET= all allopt + +.if !defined(NOPORTDOCS) +ALL_TARGET+= doc +PORTDOCS= * +.endif + +PKGDEINSTALL= ${PKGINSTALL} + +post-install: + @${FIND} ${PREFIX}/lib/ocaml/site-lib/expat -type f | \ + ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} + @${ECHO_CMD} "@dirrm lib/ocaml/site-lib/expat" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec ocamlfind remove expat 2>/dev/null || true" >> ${TMPPLIST} + PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${WRKSRC}/doc/*.css ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/textproc/ocaml-expat/distinfo b/textproc/ocaml-expat/distinfo new file mode 100644 index 000000000000..5ca4636b9ad4 --- /dev/null +++ b/textproc/ocaml-expat/distinfo @@ -0,0 +1,2 @@ +MD5 (ocaml-expat-0.1.0.tar.gz) = c8e429fafbb2508cf5525d5ff686efeb +SIZE (ocaml-expat-0.1.0.tar.gz) = 11471 diff --git a/textproc/ocaml-expat/files/patch-Makefile b/textproc/ocaml-expat/files/patch-Makefile new file mode 100644 index 000000000000..ed1d615f7459 --- /dev/null +++ b/textproc/ocaml-expat/files/patch-Makefile @@ -0,0 +1,24 @@ +--- Makefile.orig Sat Sep 27 16:52:29 2003 ++++ Makefile Wed Feb 9 10:46:58 2005 +@@ -4,8 +4,10 @@ + + # Change this to match your expat installation. + EXPAT_LIB=-lexpat +-EXPAT_LIBDIR=/usr/local/lib +-EXPAT_INCDIR=/usr/local/include ++EXPAT_LIBDIR=${LOCALBASE}/lib ++EXPAT_INCDIR=${LOCALBASE}/include ++ ++CAML_INCDIR=${LOCALBASE}/lib/ocaml + + NAME=expat + OBJECTS=expat.cmo +@@ -31,7 +33,7 @@ + allopt: $(XARCHIVE) + + depend: *.c *.ml *.mli +- gcc -MM *.c > depend ++ gcc -I$(EXPAT_INCDIR) -I$(CAML_INCDIR) -MM *.c > depend + $(OCAMLDEP) *.mli *.ml >> depend + + ## Library creation diff --git a/textproc/ocaml-expat/pkg-descr b/textproc/ocaml-expat/pkg-descr new file mode 100644 index 000000000000..6583b295b546 --- /dev/null +++ b/textproc/ocaml-expat/pkg-descr @@ -0,0 +1,6 @@ +An ocaml wrapper for the Expat XML parsing library. + +WWW: http://www.xs4all.nl/~mmzeeman/ocaml + +- Marwan Burelle + <marwan.burelle@lri.fr> diff --git a/textproc/ocaml-expat/pkg-install b/textproc/ocaml-expat/pkg-install new file mode 100644 index 000000000000..7fb2bdcc5f86 --- /dev/null +++ b/textproc/ocaml-expat/pkg-install @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ "$2" = "POST-INSTALL" ]; then + echo "${PKG_PREFIX}/lib/ocaml/site-lib/expat" >> ${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 expat ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp > ${PKG_PREFIX}/lib/ocaml/ld.conf + rm -f ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp +fi |