[84104] trunk/dports/python
jmr at macports.org
jmr at macports.org
Fri Sep 16 21:38:06 PDT 2011
Revision: 84104
http://trac.macports.org/changeset/84104
Author: jmr at macports.org
Date: 2011-09-16 21:38:06 -0700 (Fri, 16 Sep 2011)
Log Message:
-----------
unify py*-game, part 2
Modified Paths:
--------------
trunk/dports/python/py-game/Portfile
Added Paths:
-----------
trunk/dports/python/py-game/
Modified: trunk/dports/python/py-game/Portfile
===================================================================
--- trunk/dports/python/py27-game/Portfile 2011-09-16 22:47:26 UTC (rev 84096)
+++ trunk/dports/python/py-game/Portfile 2011-09-17 04:38:06 UTC (rev 84104)
@@ -1,12 +1,12 @@
# -*- 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
# $Id$
-PortSystem 1.0
-PortGroup python27 1.0
+PortSystem 1.0
+PortGroup python 1.0
-name py27-game
+name py-game
version 1.9.1
-revision 1
+revision 4
categories python devel multimedia graphics
platforms darwin
license LGPL-2.1
@@ -26,33 +26,35 @@
sha1 a45aeb0623e36ae7a1707b5f41ee6274f72ca4fa \
rmd160 352d74d6cb025e7489e1123a7a25d1695beabafb
-patchfiles patch-config_darwin.py.diff \
+python.versions 24 25 26 27
+
+if {$subport != $name} {
+ patchfiles patch-config_darwin.py.diff \
patch-disable_portmidi.diff
-
-depends_lib path:lib/pkgconfig/sdl.pc:libsdl \
+
+ depends_lib port:py${python.version}-numpy \
port:libsdl_mixer \
port:libsdl_image \
- port:libsdl_ttf \
- port:smpeg \
- port:py27-numpy
-
-use_configure yes
-configure.env-append LOCALBASE=${prefix}
-configure.cmd ${python.bin} config.py
-
-post-destroot {
- delete ${destroot}${prefix}/share/doc/${name}/examples
- eval copy [glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/${name}
- copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
- xinstall -m 644 -W ${worksrcpath} install.html WHATSNEW \
- README.txt ${destroot}${prefix}/share/doc/${name}
+ port:libsdl_ttf
+
+ use_configure yes
+ configure.env-append LOCALBASE=${prefix}
+ configure.cmd ${python.bin} config.py
+
+ post-destroot {
+ delete ${destroot}${prefix}/share/doc/${subport}/examples
+ eval copy [glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/${subport}
+ copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}
+ xinstall -m 644 -W ${worksrcpath} install.html WHATSNEW \
+ README.txt ${destroot}${prefix}/share/doc/${subport}
+ }
+
+ variant portmidi description {Enable MIDI support using portmidi (experimental)} {
+ depends_lib-append port:portmidi
+ patchfiles-delete patch-disable_portmidi.diff
+ }
}
-variant portmidi description {Enable MIDI support using portmidi (experimental)} {
- depends_lib-append port:portmidi
- patchfiles-delete patch-disable_portmidi.diff
-}
-
livecheck.type regex
livecheck.url ${homepage}download.shtml
livecheck.regex {<a href=".*/ftp/pygame\-([0-9\.]+)release\.tar\.gz">}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110916/1b8666d0/attachment.html>
More information about the macports-changes
mailing list