source: trunk/dports/python/py-async/Portfile @ 22478

Last change on this file since 22478 was 22478, checked in by pipping@…, 13 years ago
  • Spring-cleaning @opendarwin.org addresses

see #11465
see http://www.mail-archive.com/macports-dev@lists.macosforge.org/msg00309.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $
2
3PortSystem 1.0
4PortGroup python24 1.0
5
6name                    py-async
7version                 0.1.0
8revision                1
9categories              python net
10platforms               darwin
11maintainers             nomaintainer@macports.org
12description             asynchronous TCP server python module
13long_description        PyAsync is a Python module that implements an \
14                                asynchronous TCP server, with some TCP client \
15                                functionality too. Features include usage simplicity \
16                                and DNS caching.
17
18homepage                http://www.softlab.ece.ntua.gr/~ckotso/PyAsync/
19master_sites    ${homepage}
20distname                PyAsync-${version}
21checksums               md5 fb2c37a7b913df8b6effc27cfaf2fe38
22
23patch   {
24        file mkdir ${worksrcpath}/PyAsync
25        cd ${worksrcpath}
26        file rename dnsthread.py PyAsync
27        file rename error_object.py PyAsync
28        file rename name_services.py PyAsync
29        file rename network_engine.py PyAsync
30        system "touch ${worksrcpath}/PyAsync/__init__.py"
31        file copy ${filespath}/setup.py ${worksrcpath}
32        reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
33}
34
35post-destroot   {
36        xinstall -m 644 -W ${worksrcpath} README COPYING \
37                ${destroot}${prefix}/share/doc/${name}
38        xinstall -m 644 -W ${worksrcpath}/example handler.py main.py \
39                ${destroot}${prefix}/share/doc/${name}/examples
40}
Note: See TracBrowser for help on using the repository browser.