summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Brown <rbrown@gentoo.org>2007-10-03 09:35:53 +0000
committerRichard Brown <rbrown@gentoo.org>2007-10-03 09:35:53 +0000
commit84154d924c44641695bdf56fff3cdaaac936f88a (patch)
tree267c4d141842006817244d64c8c5cab379fc0e89
parentFix license, install a README (diff)
downloadrbrown-84154d924c44641695bdf56fff3cdaaac936f88a.tar.gz
rbrown-84154d924c44641695bdf56fff3cdaaac936f88a.tar.bz2
rbrown-84154d924c44641695bdf56fff3cdaaac936f88a.zip
Add fastercsv
svn path=/; revision=59
-rw-r--r--dev-ruby/fastercsv/fastercsv-1.2.1.ebuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/fastercsv/fastercsv-1.2.1.ebuild b/dev-ruby/fastercsv/fastercsv-1.2.1.ebuild
new file mode 100644
index 0000000..08df1f7
--- /dev/null
+++ b/dev-ruby/fastercsv/fastercsv-1.2.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit ruby
+
+DESCRIPTION="Replacement for ruby's standard csv parser"
+HOMEPAGE="http://fastercsv.rubyforge.org/"
+SRC_URI="http://rubyforge.org/frs/download.php/25598/fastercsv-1.2.1.tgz"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+LICENSE="GPL-2"
+
+DEPEND="virtual/ruby"
+RDEPEND="virtual/ruby"
+
+src_compile() {
+ ruby setup.rb config || die "config failed"
+ ruby setup.rb setup || die "setup failed"
+}
+
+src_install() {
+ ruby setup.rb install --prefix="${D}" || die "install failed"
+
+ if use examples; then
+ dodir /usr/share/doc/${PF}/examples
+ cp examples/*.rb "${D}/usr/share/doc/${PF}/examples" || die "cp examples failed"
+ fi
+
+ dodoc CHANGELOG README TODO
+}
+
+src_test() {
+ ruby -I lib:test test/ts_all.rb
+}
+