[71377] trunk/dports/textproc

ryandesign at macports.org ryandesign at macports.org
Fri Sep 10 15:23:43 PDT 2010


Revision: 71377
          http://trac.macports.org/changeset/71377
Author:   ryandesign at macports.org
Date:     2010-09-10 15:23:42 -0700 (Fri, 10 Sep 2010)
Log Message:
-----------
xlsx2csv: new port, version 1.2; see #26367

Added Paths:
-----------
    trunk/dports/textproc/xlsx2csv/
    trunk/dports/textproc/xlsx2csv/Portfile
    trunk/dports/textproc/xlsx2csv/files/
    trunk/dports/textproc/xlsx2csv/files/patch-xlsx2csv.sh.diff

Added: trunk/dports/textproc/xlsx2csv/Portfile
===================================================================
--- trunk/dports/textproc/xlsx2csv/Portfile	                        (rev 0)
+++ trunk/dports/textproc/xlsx2csv/Portfile	2010-09-10 22:23:42 UTC (rev 71377)
@@ -0,0 +1,42 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem              1.0
+
+name                    xlsx2csv
+version                 1.2
+categories              textproc
+platforms               darwin
+maintainers             webfinish.com:kirk
+license                 GPL-3+
+supported_archs         noarch
+
+description             Convert MS Word/Excel openspreadsheetML to plain CSV.
+
+long_description        xlsx2csv is bash shell script which reads one Microsoft \
+                        Excel file and outputs all tabs contained insinde it \
+                        to CSV files. It handles dates and string data as well \
+                        as numeric.
+
+homepage                http://kirk.webfinish.com/2009/12/xlsx2csv/
+master_sites            http://kirk.webfinish.com/xlsx2csv/
+
+checksums               md5     46735abccbcab2669eff465e50177e6f \
+                        sha1    4fe04e26e58e05b50ae2c84626f6328e3caa3192 \
+                        rmd160  885977d4df6b2a07228fa65a35198697ab5325d6
+
+depends_lib             port:libxslt \
+                        port:gsed \
+                        port:sqlite3
+
+extract.mkdir           yes
+
+patchfiles              patch-xlsx2csv.sh.diff
+
+use_configure           no
+
+build {}
+
+destroot {
+    xinstall -m 755 ${worksrcpath}/xlsx2csv.sh ${destroot}${prefix}/bin
+}


Property changes on: trunk/dports/textproc/xlsx2csv/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/textproc/xlsx2csv/files/patch-xlsx2csv.sh.diff
===================================================================
--- trunk/dports/textproc/xlsx2csv/files/patch-xlsx2csv.sh.diff	                        (rev 0)
+++ trunk/dports/textproc/xlsx2csv/files/patch-xlsx2csv.sh.diff	2010-09-10 22:23:42 UTC (rev 71377)
@@ -0,0 +1,11 @@
+--- xlsx2csv.sh.orig	2010-08-30 09:50:50.000000000 -0500
++++ xlsx2csv.sh	2010-09-10 17:20:32.000000000 -0500
+@@ -155,7 +155,7 @@
+ #set up some platform specific utilities
+ gnused=$(which sed)
+ platform=$(uname -s)
+-[[ "${platform}" == "Darwin" ]] && gnused=/opt/local/bin/gsed
++[[ "${platform}" == "Darwin" ]] && gnused=gsed
+ [[ -f "$gnused" ]] || {
+   echo "Can't find a copy of GNU sed"
+   exit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100910/e0f7701a/attachment.html>


More information about the macports-changes mailing list