[macports-ports] 02/02: xlsx2csv: add patch to find gsed
Ryan Schmidt
ryandesign at macports.org
Tue Oct 3 15:38:42 UTC 2017
On Oct 3, 2017, at 10:02, Kurt Hindenburg wrote:
> Kurt Hindenburg (kurthindenburg) pushed a commit to branch master
> in repository macports-ports.
>
>
> https://github.com/macports/macports-ports/commit/c3a3b5ae74684f301519475d24101278338d06d0
>
> commit c3a3b5ae74684f301519475d24101278338d06d0
>
> Author: Kurt Hindenburg <khindenburg at macports.org>
> AuthorDate: Tue Oct 3 11:02:48 2017 -0400
>
> xlsx2csv: add patch to find gsed
>
> set homepage to web.archive.org link; set livecheck to none
>
> closes https://trac.macports.org/ticket/52954
> --- a/textproc/xlsx2csv/files/patch-xlsx2csv.sh.diff
> +++ b/textproc/xlsx2csv/files/patch-xlsx2csv.sh.diff
> @@ -5,7 +5,7 @@
> gnused=$(which sed)
> platform=$(uname -s)
> -[[ "${platform}" == "Darwin" ]] && gnused=/opt/local/bin/gsed
> -+[[ "${platform}" == "Darwin" ]] && gnused=gsed
> ++[[ "${platform}" == "Darwin" ]] && gnused=@PREFIX@/bin/gsed$
> [[ -f "$gnused" ]] || {
> echo "Can't find a copy of GNU sed"
> exit
Is the $ at the end of the line correct?
Since this changes a file that gets installed, the revision needs to be increased.
More information about the macports-dev
mailing list