diff options
author | Tim Harder <radhermit@gentoo.org> | 2012-08-17 02:10:44 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2012-08-17 02:10:44 +0000 |
commit | a80d0e85d5cec4dbcd793e956fa7b1968c979a09 (patch) | |
tree | 1cd07a8f1bfae71bc43b06fcbe353aab292457e5 /app-text | |
parent | Version bump (diff) | |
download | gentoo-2-a80d0e85d5cec4dbcd793e956fa7b1968c979a09.tar.gz gentoo-2-a80d0e85d5cec4dbcd793e956fa7b1968c979a09.tar.bz2 gentoo-2-a80d0e85d5cec4dbcd793e956fa7b1968c979a09.zip |
Version bump.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/xlsx2csv/ChangeLog | 7 | ||||
-rw-r--r-- | app-text/xlsx2csv/xlsx2csv-0.20.ebuild | 50 |
2 files changed, 56 insertions, 1 deletions
diff --git a/app-text/xlsx2csv/ChangeLog b/app-text/xlsx2csv/ChangeLog index e86bc18b1ee4..fc73d8f463bd 100644 --- a/app-text/xlsx2csv/ChangeLog +++ b/app-text/xlsx2csv/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-text/xlsx2csv # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/xlsx2csv/ChangeLog,v 1.6 2012/02/23 04:22:14 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/xlsx2csv/ChangeLog,v 1.7 2012/08/17 02:10:44 radhermit Exp $ + +*xlsx2csv-0.20 (17 Aug 2012) + + 17 Aug 2012; Tim Harder <radhermit@gentoo.org> +xlsx2csv-0.20.ebuild: + Version bump. 23 Feb 2012; Tim Harder <radhermit@gentoo.org> -xlsx2csv-0.14.ebuild, -xlsx2csv-0.15.ebuild: diff --git a/app-text/xlsx2csv/xlsx2csv-0.20.ebuild b/app-text/xlsx2csv/xlsx2csv-0.20.ebuild new file mode 100644 index 000000000000..adf47ad28d87 --- /dev/null +++ b/app-text/xlsx2csv/xlsx2csv-0.20.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/xlsx2csv/xlsx2csv-0.20.ebuild,v 1.1 2012/08/17 02:10:44 radhermit Exp $ + +EAPI="4" +PYTHON_DEPEND="2" +PYTHON_USE_WITH="xml" + +inherit python + +DESCRIPTION="Convert MS Office xlsx files to CSV" +HOMEPAGE="https://github.com/dilshod/xlsx2csv" +SRC_URI="mirror://github/dilshod/${PN}/${P}.zip" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND="app-arch/unzip" + +src_prepare() { + python_convert_shebangs -r 2 ${PN}.py +} + +src_test() { + local failure=0 + for i in test/*.xlsx ; do + echo -n "test: $i " + if [[ $(basename $i) == "sheets.xlsx" ]] ; then + ./xlsx2csv.py -s 0 "$i" | diff -u "test/$(basename "$i" .xlsx).csv" - >/dev/null + elif [[ $(basename $i) == "skip_empty_lines.xlsx" ]] ; then + ./xlsx2csv.py -i "$i" | diff -u "test/$(basename "$i" .xlsx).csv" - >/dev/null + else + ./xlsx2csv.py "$i" | diff -u "test/$(basename "$i" .xlsx).csv" - >/dev/null + fi + if [[ $? -ne 0 ]] ; then + echo "FAILED" + failure=1 + else + echo "PASSED" + fi + done + [[ $failure -ne 0 ]] && die "tests failed" +} + +src_install() { + newbin xlsx2csv.py xlsx2csv + dodoc CHANGELOG README +} |