mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Add libcsv 2.0.1, small, simple and fast CSV library.
This commit is contained in:
parent
cffc1b78a4
commit
f9cef43c22
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=211838
6 changed files with 67 additions and 0 deletions
|
@ -259,6 +259,7 @@
|
||||||
SUBDIR += lemmatizer
|
SUBDIR += lemmatizer
|
||||||
SUBDIR += lemmatizer2
|
SUBDIR += lemmatizer2
|
||||||
SUBDIR += libcroco
|
SUBDIR += libcroco
|
||||||
|
SUBDIR += libcsv
|
||||||
SUBDIR += libebml
|
SUBDIR += libebml
|
||||||
SUBDIR += libextractor
|
SUBDIR += libextractor
|
||||||
SUBDIR += libkmfl
|
SUBDIR += libkmfl
|
||||||
|
|
37
textproc/libcsv/Makefile
Normal file
37
textproc/libcsv/Makefile
Normal file
|
@ -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>
|
3
textproc/libcsv/distinfo
Normal file
3
textproc/libcsv/distinfo
Normal file
|
@ -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
|
15
textproc/libcsv/files/Makefile
Normal file
15
textproc/libcsv/files/Makefile
Normal file
|
@ -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>
|
6
textproc/libcsv/pkg-descr
Normal file
6
textproc/libcsv/pkg-descr
Normal file
|
@ -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/
|
5
textproc/libcsv/pkg-plist
Normal file
5
textproc/libcsv/pkg-plist
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
include/csv.h
|
||||||
|
lib/libcsv.a
|
||||||
|
lib/libcsv.so
|
||||||
|
lib/libcsv.so.%%SHLIB_MAJOR%%
|
||||||
|
%%PROFILE%%lib/libcsv_p.a
|
Loading…
Add table
Reference in a new issue