diff --git a/textproc/xlsx2csv/Portfile b/textproc/xlsx2csv/Portfile
index bb5b843..d2f8c15 100644
a
|
b
|
|
1 | 1 | # -*- 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$ |
3 | 2 | |
4 | 3 | PortSystem 1.0 |
5 | 4 | |
6 | 5 | name xlsx2csv |
7 | 6 | version 1.2 |
| 7 | revision 1 |
8 | 8 | categories textproc |
9 | 9 | platforms darwin |
10 | 10 | maintainers webfinish.com:kirk |
… |
… |
extract.mkdir yes |
33 | 33 | |
34 | 34 | patchfiles patch-xlsx2csv.sh.diff |
35 | 35 | |
| 36 | post-patch { |
| 37 | reinplace -W ${worksrcpath} "s|@PREFIX@|${prefix}|g" xlsx2csv.sh |
| 38 | } |
| 39 | |
36 | 40 | use_configure no |
37 | 41 | |
38 | 42 | build {} |
diff --git a/textproc/xlsx2csv/files/patch-xlsx2csv.sh.diff b/textproc/xlsx2csv/files/patch-xlsx2csv.sh.diff
index 25b3a28..05fb8b7 100644
a
|
b
|
|
1 | 1 | --- 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 |
3 | 3 | @@ -155,7 +155,7 @@ |
4 | 4 | #set up some platform specific utilities |
5 | 5 | gnused=$(which sed) |
6 | 6 | platform=$(uname -s) |
7 | 7 | -[[ "${platform}" == "Darwin" ]] && gnused=/opt/local/bin/gsed |
8 | | +[[ "${platform}" == "Darwin" ]] && gnused=gsed |
| 8 | +[[ "${platform}" == "Darwin" ]] && gnused=@PREFIX@/bin/gsed |
9 | 9 | [[ -f "$gnused" ]] || { |
10 | 10 | echo "Can't find a copy of GNU sed" |
11 | 11 | exit |