# -*- 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 1620100aaedb4dd52e9e5dc1fc189b247db610ff \
sha256 4c6ad45ffb88670c590233683074f2440d96aaccb05b831371869fc387cbd127
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}