sthen 99ce12ef9a switch to a different test for the simple "is it at least possible to
import this module" check done at build time, viq noticed that the package
was now working (following safestack.h r1.13 et al) but the test still failed.
2014-05-15 22:00:13 +00:00

33 lines
766 B
Makefile

# $OpenBSD: Makefile,v 1.3 2014/05/15 22:00:13 sthen Exp $
COMMENT = crypto and ssl toolkit for python
MODPY_EGG_VERSION = 0.21.1
DISTNAME = M2Crypto-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = security
HOMEPAGE = http://chandlerproject.org/Projects/MeTooCrypto
MAINTAINER = Robert Peichaer <rpe@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += crypto pthread ssl ${MODPY_WANTLIB}
MASTER_SITES = ${MASTER_SITE_PYPI:=M/M2Crypto/}
MODULES = lang/python
MODPY_SETUPTOOLS = Yes
BUILD_DEPENDS = devel/swig
# XXX don't allow the build to "succeed" unless the module is usable;
# M2Crypto has had problems with api changes in libressl
post-build:
${MODPY_TEST_TARGET} --test-suite=tests.test_ssl_offline
.include <bsd.port.mk>