1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python25 1.0 |
---|
5 | |
---|
6 | name py25-m2crypto |
---|
7 | version 0.19.1 |
---|
8 | categories-append crypto devel |
---|
9 | maintainers nomaintainer |
---|
10 | description M2Crypto is a crypto and SSL toolkit for Python. |
---|
11 | long_description ${description} |
---|
12 | |
---|
13 | platforms darwin |
---|
14 | |
---|
15 | homepage http://wiki.osafoundation.org/bin/view/Projects/MeTooCrypto |
---|
16 | master_sites http://wiki.osafoundation.org/pub/Projects/MeTooCrypto/ \ |
---|
17 | http://pypi.python.org/packages/source/M/M2Crypto/ |
---|
18 | distname M2Crypto-${version} |
---|
19 | |
---|
20 | checksums md5 c92286fdf0a75f017e72122c2832d5ff \ |
---|
21 | sha1 e1c0bc6c006c95a52c60c1ecd8f2e6a1af5fb967 \ |
---|
22 | rmd160 b28c2082a55e7dfcf242ed19f68052114dea5aec |
---|
23 | |
---|
24 | depends_lib-append bin:swig:swig \ |
---|
25 | port:openssl \ |
---|
26 | port:py25-setuptools |
---|
27 | |
---|
28 | post-patch { |
---|
29 | reinplace "s|#extra_link_args|extra_link_args|g" \ |
---|
30 | ${worksrcpath}/setup.py |
---|
31 | reinplace "s|self.openssl = '/usr'|self.openssl = '${prefix}'|g" \ |
---|
32 | ${worksrcpath}/setup.py |
---|
33 | } |
---|
34 | |
---|
35 | post-destroot { |
---|
36 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
---|
37 | eval file copy [glob ${worksrcpath}/doc/*] \ |
---|
38 | ${destroot}${prefix}/share/doc/${name} |
---|
39 | } |
---|
40 | |
---|
41 | livecheck.check regex |
---|
42 | livecheck.url ${homepage} |
---|
43 | livecheck.regex M2Crypto-(\[0-9\\.\]+)\.tar\.gz |
---|