From marwan.burelle@lri.fr  Tue Feb  8 15:02:22 2005
Return-Path: <marwan.burelle@lri.fr>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A22ED16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  8 Feb 2005 15:02:22 +0000 (GMT)
Received: from lri.lri.fr (lri.lri.fr [129.175.15.1])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 89AB443D1F
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  8 Feb 2005 15:02:21 +0000 (GMT)
	(envelope-from marwan.burelle@lri.fr)
Received: from localhost (localhost [127.0.0.1])
	by lri.lri.fr (Postfix) with ESMTP
	id 6BC4019E9EC; Tue,  8 Feb 2005 16:02:20 +0100 (CET)
Received: from lri.lri.fr ([127.0.0.1])
 by localhost (lri.lri.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
 id 26382-06; Tue,  8 Feb 2005 16:02:20 +0100 (CET)
Received: from pc5-179.lri.fr (pc5-179 [129.175.5.179])
	(using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))
	(No client certificate requested)
	by lri.lri.fr (Postfix) with ESMTP
	id 4167019E9D6; Tue,  8 Feb 2005 16:02:20 +0100 (CET)
Received: from pc5-179.lri.fr (pc5-179.lri.fr [129.175.5.179])
	by pc5-179.lri.fr (8.13.1/8.13.1) with ESMTP id j18F2EIX018193;
	Tue, 8 Feb 2005 16:02:14 +0100 (CET)
	(envelope-from marwan.burelle@lri.fr)
Message-Id: <1107874934.0@pc5-179.lri.fr>
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: New port: textproc/ocaml-expat ocaml bonding to the expat library
X-Send-Pr-Version: gtk-send-pr 0.4.3 
X-GNATS-Notify:

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 08 15:10:22 GMT 2005
>Closed-Date:    Wed Feb 09 10:26:36 GMT 2005
>Last-Modified:  Wed Feb 09 10:26:36 GMT 2005
>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:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Wed Feb 9 10:26:26 GMT 2005 
State-Changed-Why:  
New port added, thank you! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77266 
>Unformatted:
