ports/118801: New port: devel/ocaml-csv CSV library for OCaml, needed by ocaml-pgocaml
Thomas V. Crimi
tcrimi at procida.us
Tue Dec 18 01:10:03 UTC 2007
>Number: 118801
>Category: ports
>Synopsis: New port: devel/ocaml-csv CSV library for OCaml, needed by ocaml-pgocaml
>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 Dec 18 01:10:02 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Thomas V. Crimi
>Release: FreeBSD 7.0-BETA3 amd64
>Organization:
>Environment:
System: FreeBSD sgt.crimi.home 7.0-BETA3 FreeBSD 7.0-BETA3 #0: Fri Nov 30 17:30:35 EST 2007 root at sgt.crimi.home:/usr/obj/usr/src/sys/SGT amd64
>Description:
>How-To-Repeat:
>Fix:
--- csv.port 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:
#
# ocaml-csv
# ocaml-csv/distinfo
# ocaml-csv/pkg-descr
# ocaml-csv/Makefile
# ocaml-csv/files
# ocaml-csv/files/patch-Makefile
#
echo c - ocaml-csv
mkdir -p ocaml-csv > /dev/null 2>&1
echo x - ocaml-csv/distinfo
sed 's/^X//' >ocaml-csv/distinfo << 'END-of-ocaml-csv/distinfo'
XMD5 (ocaml-csv-1.1.6.tar.gz) = a91851438f9540b1a445087a4d409507
XSHA256 (ocaml-csv-1.1.6.tar.gz) = ff37843ab5e055950e58a20b8a1989a303f09588aa8547a5b98d6dddb5bee799
XSIZE (ocaml-csv-1.1.6.tar.gz) = 13944
END-of-ocaml-csv/distinfo
echo x - ocaml-csv/pkg-descr
sed 's/^X//' >ocaml-csv/pkg-descr << 'END-of-ocaml-csv/pkg-descr'
XThis library can read and write CSV files, including all extensions used by
XExcel - eg. quotes, newlines, 8 bit characters in fields, "0 etc.
X
XWWW: http://merjis.com/developers/csv
END-of-ocaml-csv/pkg-descr
echo x - ocaml-csv/Makefile
sed 's/^X//' >ocaml-csv/Makefile << 'END-of-ocaml-csv/Makefile'
X# New ports collection makefile for: ocaml-calendar
X# Date created: Feb 26, 2007
X# Whom: Jaap Boender <jaapb at kerguelen.org>
X#
X# $FreeBSD: ports/devel/ocaml-calendar/Makefile,v 1.2 2007/05/19 20:03:16 flz Exp $
X#
X
XPORTNAME= ocaml-csv
XPORTVERSION= 1.1.6
XCATEGORIES= devel
XMASTER_SITES= http://merjis.com/_file/
X
XMAINTAINER= tcrimi at gmail.com
XCOMMENT= An OCaml library to read and write CSV files
X
XBUILD_DEPENDS= ${LOCALBASE}/${OCAML_SITELIBDIR}/extlib:${PORTSDIR}/devel/ocaml-extlib
X
XUSE_GMAKE= yes
XUSE_OCAML= yes
XUSE_OCAML_FINDLIB= yes
XOCAML_PKGDIRS= csv
X
X.include <bsd.port.pre.mk>
X.include "${PORTSDIR}/lang/ocaml/bsd.ocaml.mk"
X.include <bsd.port.post.mk>
END-of-ocaml-csv/Makefile
echo c - ocaml-csv/files
mkdir -p ocaml-csv/files > /dev/null 2>&1
echo x - ocaml-csv/files/patch-Makefile
sed 's/^X//' >ocaml-csv/files/patch-Makefile << 'END-of-ocaml-csv/files/patch-Makefile'
X--- Makefile.orig 2007-12-17 17:56:16.458954606 -0500
X+++ Makefile 2007-12-17 17:54:34.177261751 -0500
X@@ -5,11 +5,11 @@
X # To enable support for Extlib, also uncomment 'open ExtList' at the top
X # of file csv.ml.
X
X-OCAMLCINCS :=
X-#OCAMLCINCS := -package extlib
X+#OCAMLCINCS :=
X+OCAMLCINCS := -package extlib
X OCAMLCFLAGS := -g
X-OCAMLCLIBS :=
X-#OCAMLCLIBS := -linkpkg
X+#OCAMLCLIBS :=
X+OCAMLCLIBS := -linkpkg
X
X OCAMLOPTINCS := $(OCAMLCINCS)
X OCAMLOPTFLAGS :=
X@@ -23,6 +23,20 @@
X
X all: csv.cma csv.cmxa example csvtool
X
X+## The install and META targets were borrowed from Richard W.M. Jones' RPM patch
X+install: all META
X+ ocamlfind install csv META *.mli $(wildcard *.a) csv.cmi $(wildcard csv.cmx) *.cma $(wildcard *.cmxa)
X+# install csvtool ${DESTDIR}${BINDIR}
X+
X+META:
X+ rm -f $@
X+ echo 'version="${VERSION}"' >> $@
X+ echo 'description="CSV library"' >> $@
X+ echo 'archive(byte)="csv.cma"' >> $@
X+ echo 'archive(native)="csv.cmxa"' >> $@
X+ echo 'requires="extlib"' >> $@
X+
X+
X csv.cma: $(OBJS)
X ocamlfind ocamlc $(OCAMLCINCS) $(OCAMLCFLAGS) -a -o $@ $^
X
END-of-ocaml-csv/files/patch-Makefile
exit
--- csv.port ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list