Ticket #52954: xlsx2csv.diff

File xlsx2csv.diff, 1.5 KB (added by ryandesign (Ryan Carsten Schmidt), 8 years ago)
  • textproc/xlsx2csv/Portfile

    diff --git a/textproc/xlsx2csv/Portfile b/textproc/xlsx2csv/Portfile
    index bb5b843..d2f8c15 100644
    a b  
    11# -*- 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
    2 # $Id$
    32
    43PortSystem              1.0
    54
    65name                    xlsx2csv
    76version                 1.2
     7revision                1
    88categories              textproc
    99platforms               darwin
    1010maintainers             webfinish.com:kirk
    extract.mkdir yes 
    3333
    3434patchfiles              patch-xlsx2csv.sh.diff
    3535
     36post-patch {
     37    reinplace -W ${worksrcpath} "s|@PREFIX@|${prefix}|g" xlsx2csv.sh
     38}
     39
    3640use_configure           no
    3741
    3842build {}
  • textproc/xlsx2csv/files/patch-xlsx2csv.sh.diff

    diff --git a/textproc/xlsx2csv/files/patch-xlsx2csv.sh.diff b/textproc/xlsx2csv/files/patch-xlsx2csv.sh.diff
    index 25b3a28..05fb8b7 100644
    a b  
    11--- xlsx2csv.sh.orig    2010-08-30 09:50:50.000000000 -0500
    2 +++ xlsx2csv.sh 2010-09-10 17:20:32.000000000 -0500
     2+++ xlsx2csv.sh 2016-11-25 10:16:04.000000000 -0600
    33@@ -155,7 +155,7 @@
    44 #set up some platform specific utilities
    55 gnused=$(which sed)
    66 platform=$(uname -s)
    77-[[ "${platform}" == "Darwin" ]] && gnused=/opt/local/bin/gsed
    8 +[[ "${platform}" == "Darwin" ]] && gnused=gsed
     8+[[ "${platform}" == "Darwin" ]] && gnused=@PREFIX@/bin/gsed
    99 [[ -f "$gnused" ]] || {
    1010   echo "Can't find a copy of GNU sed"
    1111   exit