source: trunk/dports/python/py-game/Portfile

Last change on this file was 138962, checked in by jmr@…, 2 years ago

py-game: use {*} instead of eval

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
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: Portfile 138962 2015-07-25 05:00:18Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       python 1.0
6
7name            py-game
8version         1.9.1
9revision        8
10categories-append     devel multimedia graphics
11platforms       darwin
12license         LGPL-2.1+
13maintainers     jmr openmaintainer
14description     pygame, python modules for writing games
15long_description    Pygame is a set of Python modules designed for \
16            writing games. It is written on top of the excellent \
17            SDL library. This allows you to create fully featured \
18            games and multimedia programs in the python language. \
19            Pygame is highly portable and runs on nearly every \
20            platform and operating system.
21homepage        http://www.pygame.org/
22
23master_sites    ${homepage}ftp/
24distname        pygame-${version}release
25checksums       rmd160 352d74d6cb025e7489e1123a7a25d1695beabafb \
26                sha256 a26095472ae4be9631e0d5bfb9a52ac57a3a091e45757913128e4a473807d433
27
28python.versions 26 27
29
30if {$subport ne $name} {
31    patchfiles  patch-config_darwin.py.diff \
32                patch-src_scale_mmx64.c.diff \
33                patch-disable_portmidi.diff
34   
35    depends_lib port:py${python.version}-numpy \
36                port:libsdl_mixer \
37                port:libsdl_image \
38                port:libsdl_ttf
39   
40    use_configure   yes
41    configure.env-append LOCALBASE=${prefix}
42    configure.cmd   ${python.bin} config.py
43   
44    post-destroot   {
45        delete ${destroot}${prefix}/share/doc/${subport}/examples
46        copy {*}[glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/${subport}
47        copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}
48        xinstall -m 644 -W ${worksrcpath} install.html WHATSNEW \
49            README.txt ${destroot}${prefix}/share/doc/${subport}
50    }
51   
52    variant portmidi description {Enable MIDI support using portmidi (experimental)} {
53        depends_lib-append port:portmidi
54        patchfiles-delete patch-disable_portmidi.diff
55        patchfiles-append patch-MIDI-case.diff
56    }
57
58    if {${python.version} >= 30} {
59        notes "Not all pygame modules are available for Python 3.x as of this release."
60    }
61
62    livecheck.type  none
63} else {
64    livecheck.type  regex
65    livecheck.url   ${homepage}download.shtml
66    livecheck.regex {<a href=".*/ftp/pygame\-([0-9\.]+)release\.tar\.gz">}
67}
Note: See TracBrowser for help on using the repository browser.