1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils toolchain-funcs versionator
9 MY_PV="$(delete_all_version_separators)"
10 DESCRIPTION="A stream editor for manipulating CSV files"
11 HOMEPAGE="http://code.google.com/p/csvfix/"
12 SRC_URI="https://dev.gentoo.org/~radhermit/dist/${P}.tar.bz2
13 doc? ( http://csvfix.googlecode.com/files/CSVfix_man_html_${MY_PV}0.zip )"
17 KEYWORDS="~amd64 ~x86"
20 RDEPEND="dev-libs/expat"
22 doc? ( app-arch/unzip )"
25 epatch "${FILESDIR}"/${P}-make.patch
26 epatch "${FILESDIR}"/${PN}-1.10a-tests.patch
28 edos2unix $(find csvfix/tests -type f)
32 emake CC="$(tc-getCXX)" AR="$(tc-getAR)" lin
37 chmod +x run1 runtests
38 ./runtests || die "tests failed"
42 dobin csvfix/bin/csvfix
43 use doc && dohtml -r "${WORKDIR}"/${PN}${MY_PV}/*