# $Id: Portfile 148976 2016-05-24 07:48:05Z raimue@macports.org $ PortSystem 1.0 PortGroup python 1.0 name py-m2crypto version 0.23.0 revision 2 categories-append crypto devel # demos include some Apache-2 and ZPL-2 files but are not installed license MIT maintainers nomaintainer description M2Crypto is a crypto and SSL toolkit for Python. long_description ${description} platforms darwin homepage https://pypi.python.org/pypi/M2Crypto master_sites pypi:M/M2Crypto/ distname M2Crypto-${version} python.versions 26 27 checksums rmd160 f2d65c95c72b9ba9bd732768509be27f7d2c608e \ sha256 1ac3b6eafa5ff7e2a0796675316d7569b28aada45a7ab74042ad089d15a9567f if {${name} ne ${subport}} { depends_build port:py${python.version}-setuptools depends_lib-append port:swig-python \ path:lib/libssl.dylib:openssl post-patch { reinplace "s|#extra_link_args|extra_link_args|g" ${worksrcpath}/setup.py reinplace "s|self.openssl = '/usr'|self.openssl = '${prefix}'|g" \ ${worksrcpath}/setup.py } } if {${name} eq ${subport}} { livecheck.type regex livecheck.url ${homepage} livecheck.regex M2Crypto-(\[0-9\\.\]+)\.tar\.gz } else { test.run yes livecheck.type none }