# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
categories-append crypto devel
# demos include some Apache-2 and ZPL-2 files but are not installed
maintainers {gmail.com:allan.que @aque} openmaintainer
description Crypto and SSL toolkit for Python
long_description M2Crypto is the most complete Python wrapper for OpenSSL.
homepage https://pypi.python.org/pypi/${python.rootname}
master_sites pypi:m/${python.rootname}/
distname M2Crypto-${version}
checksums md5 45fb8bf2b64cfe9d9d72e332de339a2c \
rmd160 2ccbcbe161d9e58015a5d7d720333d75ed9239c1 \
sha256 0faf8588cc472061ed90ef3dd2f1c11fc3d61d8ac368853ff05fa23a768ee893
python.versions 27 34 35 36
if {${name} ne ${subport}} {
depends_build port:py${python.version}-setuptools
depends_lib-append port:swig-python \
path:lib/libssl.dylib:openssl
if {${python.version} < 35} {
port:py${python.version}-typing
patchfiles patch-setup.py
build.env-append SWIG_FEATURES=-I${prefix}/include
build.cmd-append build_ext --openssl=${prefix}