[129746] trunk/dports/games/ski

larryv at macports.org larryv at macports.org
Fri Dec 19 14:11:20 PST 2014


Revision: 129746
          https://trac.macports.org/changeset/129746
Author:   larryv at macports.org
Date:     2014-12-19 14:11:19 -0800 (Fri, 19 Dec 2014)
Log Message:
-----------
ski: Use MacPorts' Python 2.7 explicitly

Modified Paths:
--------------
    trunk/dports/games/ski/Portfile

Added Paths:
-----------
    trunk/dports/games/ski/files/
    trunk/dports/games/ski/files/use-macports-python.patch

Modified: trunk/dports/games/ski/Portfile
===================================================================
--- trunk/dports/games/ski/Portfile	2014-12-19 22:11:08 UTC (rev 129745)
+++ trunk/dports/games/ski/Portfile	2014-12-19 22:11:19 UTC (rev 129746)
@@ -5,7 +5,7 @@
 
 name                ski
 version             6.5
-revision            1
+revision            2
 categories          games python
 platforms           darwin
 license             GPL-2
@@ -30,13 +30,18 @@
                     that generates crude 2D fractals.
 homepage            http://www.catb.org/~esr/ski/
 
-depends_run         bin:python:python27
+depends_run         port:python27
 supported_archs     noarch
 
 master_sites        sunsite:games
 checksums           rmd160  9a48559183d15484442c30ed379daeab0b1c7c16 \
                     sha256  346be95447df7eddc3888b5378dbed4bc9cd9136b14839b89c771ca425b7f1ed
 
+patchfiles          use-macports-python.patch
+post-patch {
+    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/ski
+}
+
 use_configure       no
 
 destroot {

Added: trunk/dports/games/ski/files/use-macports-python.patch
===================================================================
--- trunk/dports/games/ski/files/use-macports-python.patch	                        (rev 0)
+++ trunk/dports/games/ski/files/use-macports-python.patch	2014-12-19 22:11:19 UTC (rev 129746)
@@ -0,0 +1,10 @@
+Index: ski
+===================================================================
+--- ski.orig
++++ ski
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!__PREFIX__/bin/python2.7
+ """\
+ This is ski %s, designed by Mark Stevans, ported by Eric S. Raymond.
+ You are hurtling down a ski slope in reverse, trying to evade the Yeti.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141219/6f184002/attachment.html>


More information about the macports-changes mailing list