source: trunk/dports/python/py-m2crypto/Portfile @ 120642

Last change on this file since 120642 was 120642, checked in by ram@…, 5 years ago

python/py-m2crypto: drop maintainership

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: Portfile 120642 2014-06-04 14:45:34Z ram@macports.org $
2
3PortSystem         1.0
4PortGroup          python 1.0
5
6name               py-m2crypto
7version            0.22.3
8categories-append  crypto devel
9# demos include some Apache-2 and ZPL-2 files but are not installed
10license            MIT
11maintainers        nomaintainer
12description        M2Crypto is a crypto and SSL toolkit for Python.
13long_description   ${description}
14
15platforms          darwin
16
17homepage           http://pypi.python.org/packages/source/M/M2Crypto/
18master_sites       ${homepage}
19distname           M2Crypto-${version}
20
21python.versions    26 27
22
23checksums          rmd160 3ba7498308949f4c40c7eb8b649d575afd665a55 \
24                   sha256 6071bfc817d94723e9b458a010d565365104f84aa73f7fe11919871f7562ff72
25
26if {${name} ne ${subport}} {
27  depends_build      port:py${python.version}-setuptools
28  depends_lib-append port:swig-python \
29                     port:openssl
30
31  post-patch {
32    reinplace "s|#extra_link_args|extra_link_args|g" ${worksrcpath}/setup.py
33    reinplace "s|self.openssl = '/usr'|self.openssl = '${prefix}'|g" \
34      ${worksrcpath}/setup.py
35  }
36}
37
38if {${name} eq ${subport}} {
39  livecheck.type     regex
40  livecheck.url      ${homepage}
41  livecheck.regex    M2Crypto-(\[0-9\\.\]+)\.tar\.gz
42} else {
43  livecheck.type     none
44}
Note: See TracBrowser for help on using the repository browser.