Date: Tue, 8 Feb 2005 16:02:14 +0100 From: "Marwan Burelle <marwan.burelle@lri.fr>" <marwan.burelle@lri.fr> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Cc: marwan.burelle@lri.fr Subject: ports/77266: New port: textproc/ocaml-expat ocaml bonding to the expat library Message-ID: <1107874934.0@pc5-179.lri.fr> Resent-Message-ID: <200502081510.j18FAM1U095293@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 77266 >Category: ports >Synopsis: New port: textproc/ocaml-expat ocaml bonding to the expat library >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Feb 08 15:10:22 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Marwan Burelle <marwan.burelle@lri.fr> >Release: FreeBSD 5.3-STABLE i386 >Organization: >Environment: System: FreeBSD 5.3-STABLE #0: Fri Feb 4 18:45:33 CET 2005 root@:/usr/home/obj/usr/src/sys/KER_pc5-179 >Description: An ocaml wrapper for the Expat XML parsing library. >How-To-Repeat: >Fix: --- ocaml-expat.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # /usr/ports/textproc/ocaml-expat # /usr/ports/textproc/ocaml-expat/pkg-install # /usr/ports/textproc/ocaml-expat/pkg-descr # /usr/ports/textproc/ocaml-expat/distinfo # /usr/ports/textproc/ocaml-expat/Makefile # /usr/ports/textproc/ocaml-expat/files # /usr/ports/textproc/ocaml-expat/files/patch-aa # echo c - /usr/ports/textproc/ocaml-expat mkdir -p /usr/ports/textproc/ocaml-expat > /dev/null 2>&1 echo x - /usr/ports/textproc/ocaml-expat/pkg-install sed 's/^X//' >/usr/ports/textproc/ocaml-expat/pkg-install << 'END-of-/usr/ports/textproc/ocaml-expat/pkg-install' X#!/bin/sh X Xif [ "$2" = "POST-INSTALL" ]; then X echo "${PKG_PREFIX}/lib/ocaml/site-lib/expat" >> ${PKG_PREFIX}/lib/ocaml/ld.conf Xelif [ "$2" = "DEINSTALL" ]; then X mv ${PKG_PREFIX}/lib/ocaml/ld.conf ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp X grep -v expat ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp > ${PKG_PREFIX}/lib/ocaml/ld.conf X rm -f ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp Xfi END-of-/usr/ports/textproc/ocaml-expat/pkg-install echo x - /usr/ports/textproc/ocaml-expat/pkg-descr sed 's/^X//' >/usr/ports/textproc/ocaml-expat/pkg-descr << 'END-of-/usr/ports/textproc/ocaml-expat/pkg-descr' XAn ocaml wrapper for the Expat XML parsing library. X XWWW: http://www.xs4all.nl/~mmzeeman/ocaml X X- Marwan Burelle X <marwan.burelle@lri.fr> END-of-/usr/ports/textproc/ocaml-expat/pkg-descr echo x - /usr/ports/textproc/ocaml-expat/distinfo sed 's/^X//' >/usr/ports/textproc/ocaml-expat/distinfo << 'END-of-/usr/ports/textproc/ocaml-expat/distinfo' XMD5 (ocaml-expat-0.1.0.tar.gz) = c8e429fafbb2508cf5525d5ff686efeb XSIZE (ocaml-expat-0.1.0.tar.gz) = 11471 END-of-/usr/ports/textproc/ocaml-expat/distinfo echo x - /usr/ports/textproc/ocaml-expat/Makefile sed 's/^X//' >/usr/ports/textproc/ocaml-expat/Makefile << 'END-of-/usr/ports/textproc/ocaml-expat/Makefile' X# ex:ts=8 X# Ports collection makefile for: ocaml-expat X# Date created: Sept 15, 2004 X# Whom: Marwan Burelle <marwan.burelle@lri.fr X# X# $FreeBSD$ X# X XPORTNAME= ocaml-expat XPORTVERSION= 0.1.0 XCATEGORIES= textproc XMASTER_SITES= http://www.xs4all.nl/~mmzeeman/ocaml/ X XMAINTAINER= marwan.burelle@lri.fr XCOMMENT= A stub for the expat parser in OCaml X XBUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ X ocamlfind:${PORTSDIR}/devel/ocaml-findlib XRUN_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ X ocamlfind:${PORTSDIR}/devel/ocaml-findlib XLIB_DEPENDS= expat.5:${PORTSDIR}/textproc/expat2 X XUSE_GMAKE= yes XALL_TARGET= all allopt X X.if !defined(NOPORTDOCS) XALL_TARGET+= doc XPORTDOCS= * X.endif X XPKGDEINSTALL= ${PKGINSTALL} X Xpost-install: X @${FIND} ${PREFIX}/lib/ocaml/site-lib/expat -type f | \ X ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} X @${ECHO_CMD} "@dirrm lib/ocaml/site-lib/expat" >> ${TMPPLIST} X @${ECHO_CMD} "@unexec ocamlfind remove expat 2>/dev/null || true" >> ${TMPPLIST} X PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${WRKSRC}/doc/*.css ${DOCSDIR} X.endif X X.include <bsd.port.mk> END-of-/usr/ports/textproc/ocaml-expat/Makefile echo c - /usr/ports/textproc/ocaml-expat/files mkdir -p /usr/ports/textproc/ocaml-expat/files > /dev/null 2>&1 echo x - /usr/ports/textproc/ocaml-expat/files/patch-aa sed 's/^X//' >/usr/ports/textproc/ocaml-expat/files/patch-aa << 'END-of-/usr/ports/textproc/ocaml-expat/files/patch-aa' X--- Makefile-orig Tue Feb 8 15:20:30 2005 X+++ Makefile Tue Feb 8 15:17:34 2005 X@@ -7,6 +7,8 @@ X EXPAT_LIBDIR=/usr/local/lib X EXPAT_INCDIR=/usr/local/include X X+CAML_INCDIR=/usr/local/lib/ocaml X+ X NAME=expat X OBJECTS=expat.cmo X XOBJECTS=$(OBJECTS:.cmo=.cmx) X@@ -31,7 +33,7 @@ X allopt: $(XARCHIVE) X X depend: *.c *.ml *.mli X- gcc -MM *.c > depend X+ gcc -I$(EXPAT_INCDIR) -I$(CAML_INCDIR) -MM *.c > depend X $(OCAMLDEP) *.mli *.ml >> depend X X ## Library creation END-of-/usr/ports/textproc/ocaml-expat/files/patch-aa exit --- ocaml-expat.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1107874934.0>