/[gentoo-x86]/app-text/xlsx2csv/xlsx2csv-0.20.ebuild
Gentoo

Contents of /app-text/xlsx2csv/xlsx2csv-0.20.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Dec 7 10:59:19 2013 UTC (12 months, 2 weeks ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/xlsx2csv/xlsx2csv-0.20.ebuild,v 1.1 2012/08/17 02:10:44 radhermit Exp $
4
5 EAPI="4"
6 PYTHON_DEPEND="2"
7 PYTHON_USE_WITH="xml"
8
9 inherit python
10
11 DESCRIPTION="Convert MS Office xlsx files to CSV"
12 HOMEPAGE="https://github.com/dilshod/xlsx2csv"
13 SRC_URI="mirror://github/dilshod/${PN}/${P}.zip"
14
15 LICENSE="GPL-3"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="test"
19
20 DEPEND="app-arch/unzip"
21
22 src_prepare() {
23 python_convert_shebangs -r 2 ${PN}.py
24 }
25
26 src_test() {
27 local failure=0
28 for i in test/*.xlsx ; do
29 echo -n "test: $i "
30 if [[ $(basename $i) == "sheets.xlsx" ]] ; then
31 ./xlsx2csv.py -s 0 "$i" | diff -u "test/$(basename "$i" .xlsx).csv" - >/dev/null
32 elif [[ $(basename $i) == "skip_empty_lines.xlsx" ]] ; then
33 ./xlsx2csv.py -i "$i" | diff -u "test/$(basename "$i" .xlsx).csv" - >/dev/null
34 else
35 ./xlsx2csv.py "$i" | diff -u "test/$(basename "$i" .xlsx).csv" - >/dev/null
36 fi
37 if [[ $? -ne 0 ]] ; then
38 echo "FAILED"
39 failure=1
40 else
41 echo "PASSED"
42 fi
43 done
44 [[ $failure -ne 0 ]] && die "tests failed"
45 }
46
47 src_install() {
48 newbin xlsx2csv.py xlsx2csv
49 dodoc CHANGELOG README
50 }

  ViewVC Help
Powered by ViewVC 1.1.20