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

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

py24-config: Replace with py27

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 891 bytes
Line 
1# $Id: Portfile 130990 2015-01-04 21:50:01Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name                    py-config
7version                 1.2
8revision                1
9license                 MIT
10platforms               darwin
11supported_archs noarch
12maintainers             nomaintainer
13description             alternative ConfigParser module for python
14long_description        powerful alternative to the ConfigParser module \
15                                already available in the standard Python.
16
17homepage                http://config-py.sourceforge.net/
18master_sites    sourceforge:config-py
19distname                config-py-[string map {. -} ${version}]
20checksums               md5 0deb5f48cb3c3f1067f347b8093a1f78
21
22python.versions 27
23
24if {${name} ne ${subport}} {
25    use_zip                     yes
26    extract.mkdir       yes
27
28    post-extract        {
29        file copy ${filespath}/setup.py ${worksrcpath}
30        reinplace "s|VERSION|${version}|" ${worksrcpath}/setup.py
31    }
32
33    post-destroot       {
34        xinstall -m 644 -W ${worksrcpath} readme.txt \
35            ${destroot}${prefix}/share/doc/${subport}
36    }
37}
Note: See TracBrowser for help on using the repository browser.