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

Last change on this file was 126849, checked in by larryv@…, 3 years ago

py25-mpdclient2: Replace with py27-mpdclient2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1# $Id: Portfile 126849 2014-10-16 06:03:44Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name            py-mpdclient2
7version         0.48
8description     Python MPD client library
9categories-append      audio
10maintainers     nomaintainer
11long_description \
12    Python library interfacing with MPD. Taken from Pygmy.
13
14distname        pygmy-${version}
15homepage        http://pygmy.berlios.de/
16platforms       darwin
17master_sites    ${homepage}files http://distfiles.macports.org/python/
18use_bzip2       yes
19checksums       md5 5cac04dbffff24a4b8f9ae0a77689a14 \
20                sha1 a7c39edd8018a3238611813de0f43ba4c6ad61d3 \
21                rmd160 064690b1d3ed52349d352d598e6fbdf89a4ced69
22
23python.versions 27
24
25if {${name} ne ${subport}} {
26    build {
27        # force bytecode compilation of mpdclient2.py => mpdclient2.pyc
28        system -W ${worksrcpath} "${python.bin} -c 'import mpdclient2'"
29    }
30    destroot {
31        xinstall -m 755 -d ${destroot}${python.pkgd}
32        xinstall -m 644 ${worksrcpath}/mpdclient2.py \
33            ${destroot}${python.pkgd}
34        xinstall -m 644 ${worksrcpath}/mpdclient2.pyc \
35            ${destroot}${python.pkgd}
36    }
37}
Note: See TracBrowser for help on using the repository browser.