Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414327 - dev-libs/libcsv - A simple, fast library to read and write CSV data
Summary: dev-libs/libcsv - A simple, fast library to read and write CSV data
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Default Assignee for New Packages
URL: http://sourceforge.net/projects/libcsv/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-02 04:43 UTC by Christopher Howard
Modified: 2013-01-27 06:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libcsv-3.0.2.ebuild (libcsv-3.0.2.ebuild,671 bytes, text/plain)
2012-05-02 04:43 UTC, Christopher Howard
Details
ebuild for 3.0.3 (libcsv-3.0.3.ebuild,640 bytes, text/plain)
2013-01-27 03:19 UTC, Joe Sapp (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Howard 2012-05-02 04:43:53 UTC
Created attachment 310613 [details]
libcsv-3.0.2.ebuild

Hello. Please find attached libcsv-3.0.2.ebuild.

libcsv is a small, simple and fast CSV library developed by Robert Gamble. It is written in pure ANSI C89 to 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.

libcsv has been around for a while, but up until recently it used a simple Makefile based build system which was not very convenient for packaging. I was able to work with the developer and we wrapped it properly in autotools, with libtool versioning. These and various minor source package fixes are represented in the 3.0.2 version.

The attached ebuild works properly on my Gentoo amd64 system, including software tests run in FEATURES="test" mode.

* Small side note: *
With the "examples" use flag, the ebuild installs several *.c source code example files. However, for some reason portage bzip2 compresses the files, which does not seem appropriate. I have tried various methods but have not figured out how to write the ebuild so it does not bzip2 compress these example files.
Comment 1 Joe Sapp (RETIRED) gentoo-dev 2013-01-27 01:47:41 UTC
Looks quite good to me. This is a dependency of another package I'm working on, so I may be interested in maintaining it. There appears to be a 3.0.3 version out, but I haven't tried just renaming the ebuild yet.

(In reply to comment #0)
> * Small side note: *
> With the "examples" use flag, the ebuild installs several *.c source code
> example files. However, for some reason portage bzip2 compresses the files,
> which does not seem appropriate. I have tried various methods but have not
> figured out how to write the ebuild so it does not bzip2 compress these
> example files.

This should be controlled by PORTAGE_COMPRESS and is automatic.  See make.conf(5).
Comment 2 Joe Sapp (RETIRED) gentoo-dev 2013-01-27 03:19:19 UTC
Created attachment 336958 [details]
ebuild for 3.0.3

Let me know what you think. I've tweaked it slightly to use the dodoc functions of autotools-utils.
Comment 3 Christopher Howard 2013-01-27 06:01:45 UTC
In case you are waiting for a comment from me: I'm back in school now and don't have time to look over changes or do any testing. But I'm glad somebody finally found my ebuild useful!