aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/libcsv
diff options
context:
space:
mode:
authorskv <skv@FreeBSD.org>2008-04-23 22:26:24 +0800
committerskv <skv@FreeBSD.org>2008-04-23 22:26:24 +0800
commit7b253aa676ee49e12333d427c0aa7f72036b831c (patch)
treee7ac0a3da69e41aff0eb317e111aaf81e53c13fa /textproc/libcsv
parent57e74f648ddf093bca7d1ada88bf47a66cf393b2 (diff)
downloadfreebsd-ports-gnome-7b253aa676ee49e12333d427c0aa7f72036b831c.tar.gz
freebsd-ports-gnome-7b253aa676ee49e12333d427c0aa7f72036b831c.tar.zst
freebsd-ports-gnome-7b253aa676ee49e12333d427c0aa7f72036b831c.zip
Add libcsv 2.0.1, small, simple and fast CSV library.
Diffstat (limited to 'textproc/libcsv')
-rw-r--r--textproc/libcsv/Makefile37
-rw-r--r--textproc/libcsv/distinfo3
-rw-r--r--textproc/libcsv/files/Makefile15
-rw-r--r--textproc/libcsv/pkg-descr6
-rw-r--r--textproc/libcsv/pkg-plist5
5 files changed, 66 insertions, 0 deletions
diff --git a/textproc/libcsv/Makefile b/textproc/libcsv/Makefile
new file mode 100644
index 000000000000..1cc4866260ca
--- /dev/null
+++ b/textproc/libcsv/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: libcsv
+# Date created: 23 Apr 2008
+# Whom: Sergey Skvortsov <skv@protey.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libcsv
+PORTVERSION= 2.0.1
+CATEGORIES= textproc
+MASTER_SITES= SF
+
+MAINTAINER= skv@FreeBSD.org
+COMMENT= Small, simple and fast CSV library
+
+MAKE_ENV= PREFIX=${PREFIX}
+
+USE_LDCONFIG= YES
+SHLIB_MAJOR= 2
+PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}"
+
+MAN3= csv.3
+MANCOMPRESSED= maybe
+
+.if defined(NOPROFILE) || defined(NO_PROFILE)
+PLIST_SUB+= PROFILE="@comment "
+.else
+PLIST_SUB+= PROFILE=""
+.endif
+
+post-patch:
+ ${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.prev
+ @${SED} -e "s=%%SHLIB_MAJOR%%=${SHLIB_MAJOR}=g" \
+ ${FILESDIR}/Makefile > ${WRKSRC}/Makefile
+ ${GUNZIP_CMD} ${WRKSRC}/${MAN3}.gz
+
+.include <bsd.port.mk>
diff --git a/textproc/libcsv/distinfo b/textproc/libcsv/distinfo
new file mode 100644
index 000000000000..185440646d19
--- /dev/null
+++ b/textproc/libcsv/distinfo
@@ -0,0 +1,3 @@
+MD5 (libcsv-2.0.1.tar.gz) = dc4f4d8e9449b8c82d3e0a62ee6a375e
+SHA256 (libcsv-2.0.1.tar.gz) = a9ae9ef6fd154b80c850e748e8f465aa8e29df0c4185fc15df55f21cb0eed382
+SIZE (libcsv-2.0.1.tar.gz) = 58616
diff --git a/textproc/libcsv/files/Makefile b/textproc/libcsv/files/Makefile
new file mode 100644
index 000000000000..cb54efad9fa7
--- /dev/null
+++ b/textproc/libcsv/files/Makefile
@@ -0,0 +1,15 @@
+# $FreeBSD$
+
+LIB = csv
+SRCS= libcsv.c
+INCS= csv.h
+
+SHLIB_MAJOR= %%SHLIB_MAJOR%%
+
+LIBDIR= ${PREFIX}/lib
+INCLUDEDIR= ${PREFIX}/include
+
+MAN= csv.3
+MANDIR= ${MANPREFIX}/man/man
+
+.include <bsd.lib.mk>
diff --git a/textproc/libcsv/pkg-descr b/textproc/libcsv/pkg-descr
new file mode 100644
index 000000000000..859a6bdab635
--- /dev/null
+++ b/textproc/libcsv/pkg-descr
@@ -0,0 +1,6 @@
+libcsv is a small, simple and fast CSV library written in pure ANSI C89
+that can read and write CSV data. It provides a straight-forward
+interface using callback functions to handle parsed fields and rows and
+can parse improperly formatted CSV files.
+
+WWW: http://sourceforge.net/projects/libcsv/
diff --git a/textproc/libcsv/pkg-plist b/textproc/libcsv/pkg-plist
new file mode 100644
index 000000000000..94e91b7929da
--- /dev/null
+++ b/textproc/libcsv/pkg-plist
@@ -0,0 +1,5 @@
+include/csv.h
+lib/libcsv.a
+lib/libcsv.so
+lib/libcsv.so.%%SHLIB_MAJOR%%
+%%PROFILE%%lib/libcsv_p.a