[125429] trunk/dports/textproc/colout/Portfile
Ryan Schmidt
ryandesign at macports.org
Wed Sep 17 19:11:45 PDT 2014
> On Sep 17, 2014, at 8:40 AM, g5pw at macports.org wrote:
>
> Revision
> 125429
> Author
> g5pw at macports.org
> Date
> 2014-09-17 06:40:55 -0700 (Wed, 17 Sep 2014)
> Log Message
>
> textproc/colout:
> use python34
> add license
> disable livecheck (upstream tagged 0.11 instead of 0.1.1, so version check fails)
>
> Modified Paths
>
> • trunk/dports/textproc/colout/Portfile
> Diff
>
> Modified: trunk/dports/textproc/colout/Portfile (125428 => 125429)
>
> -python.default_version 33
> +python.default_version 34
This changes the files that the port installs, so the port's revision must be increased.
> patch {
> - reinplace s/python3/python3.3/ bin/colout \
> + reinplace s/python3/python${python.branch}/ bin/colout \
> colout/colout.py \
> setup.py \
> README.md
> }
These paths must be absolute; you cannot assume what the current working directory will be when the patch phase (or any other phase) runs. You could do this by using "reinplace -W ${worksrcpath} ..."
Index: Portfile
===================================================================
--- Portfile (revision 125443)
+++ Portfile (working copy)
@@ -6,6 +6,7 @@
PortGroup python 1.0
github.setup nojhan colout 0.4 v
+revision 1
maintainers g5pw openmaintainer
categories textproc python
@@ -23,7 +24,7 @@
python.default_version 34
patch {
- reinplace s/python3/python${python.branch}/ bin/colout \
+ reinplace -W ${worksrcpath} s/python3/python${python.branch}/ bin/colout \
colout/colout.py \
setup.py \
README.md
More information about the macports-dev
mailing list