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

Last change on this file was 148976, checked in by raimue@…, 16 months ago

Mass update of python ports for master_sites pypi

The pypi hosting site changed the naming scheme for new uploads. While old URLs
continue to work, this possibly breaks updates as master_sites would need to be
changed. This patch updates all previously hardcoded references to
pypi.python.org to the pypi: mirror sites, which was already updated to check
at both the old and new location. See #51391.

Overriding maintainers as this is a mass update of ports.

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