# -*- 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}
rmd160 7d366493b5563ddfad047a3b05ec7e7ad01b80cc \
sha256 75deaa3f6d25c8300c41da042a1abfa27154de5164c7073d68cb1809cedb8553
python.versions 27 35 36 37
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}