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

Last change on this file was 138962, checked in by jmr@…, 3 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
RevLine 
[35879]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 jmr@macports.org $
3
[84104]4PortSystem      1.0
5PortGroup       python 1.0
[35879]6
[84104]7name            py-game
[55153]8version         1.9.1
[115063]9revision        8
[102584]10categories-append     devel multimedia graphics
[35879]11platforms       darwin
[95260]12license         LGPL-2.1+
[35879]13maintainers     jmr openmaintainer
[63535]14description     pygame, python modules for writing games
[35879]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
[84169]25checksums       rmd160 352d74d6cb025e7489e1123a7a25d1695beabafb \
26                sha256 a26095472ae4be9631e0d5bfb9a52ac57a3a091e45757913128e4a473807d433
[35879]27
[126545]28python.versions 26 27
[84104]29
[138962]30if {$subport ne $name} {
[84104]31    patchfiles  patch-config_darwin.py.diff \
[86226]32                patch-src_scale_mmx64.c.diff \
[67314]33                patch-disable_portmidi.diff
[84104]34   
35    depends_lib port:py${python.version}-numpy \
[35879]36                port:libsdl_mixer \
37                port:libsdl_image \
[84104]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
[138962]46        copy {*}[glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/${subport}
[84104]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
[106220]55        patchfiles-append patch-MIDI-case.diff
[84104]56    }
[95260]57
58    if {${python.version} >= 30} {
59        notes "Not all pygame modules are available for Python 3.x as of this release."
60    }
61
[85352]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">}
[35879]67}
Note: See TracBrowser for help on using the repository browser.