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

Last change on this file was 150034, checked in by jmr@…, 13 months ago

py-SDL2: update to 0.9.4

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 150034 2016-07-08 22:59:37Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           python 1.0
5
6name                py-SDL2
7version             0.9.4
8categories-append   devel multimedia
9license             public-domain
10platforms           darwin
11supported_archs     noarch
12maintainers         jmr openmaintainer
13description         a python wrapper around the SDL2 library
14long_description \
15   PySDL2 is a wrapper around the SDL2 library and as such similar to the \
16   discontinued PySDL project. In contrast to PySDL, it has no licensing \
17   restrictions, nor does it rely on C code, but uses ctypes instead.
18
19homepage            https://bitbucket.org/marcusva/py-sdl2
20master_sites        ${homepage}/downloads/
21distname            PySDL2-${version}
22
23checksums           rmd160 75aa41c195c8a313711356c0ac40bd7a0f248422 \
24                    sha256 f4c3a961696d9f2d2b2929974dfeafe79407e30302457da50443ffe6835f3fc8
25
26python.versions     27 33 34 35
27
28if {$subport ne $name} {
29    depends_lib-append  port:libsdl2 \
30                        port:libsdl2_image \
31                        port:libsdl2_mixer \
32                        port:libsdl2_ttf
33
34    patchfiles          dll.py.patch
35    post-patch {
36        reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/sdl2/dll.py
37    }
38
39    livecheck.type      none
40} else {
41    livecheck.type      regex
42    livecheck.url       [lindex $master_sites 0]
43    livecheck.regex     PySDL2-(\[0-9.\]+)${extract.suffix}
44}
Note: See TracBrowser for help on using the repository browser.