blob: 966222d7662e0976f7396f757c0e0ba0dfe7a1ae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Created by: Peter Haight <peterh@sapros.com>
# $FreeBSD$
PORTNAME= m2crypto
PORTVERSION= 0.21.1
PORTREVISION= 1
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= M2Crypto-${PORTVERSION}
DIST_SUBDIR= python
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Crypto and SSL toolkit for Python
BUILD_DEPENDS= ${LOCALBASE}/bin/swig:${PORTSDIR}/devel/swig13
USE_OPENSSL= yes
USE_PYTHON= -2.7
USE_PYDISTUTILS=yes
PYDISTUTILS_BUILDARGS= build_ext --openssl="${OPENSSLBASE}"
PYDISTUTILS_PKGNAME= M2Crypto
post-patch:
@${REINPLACE_CMD} -e 's|setuptools|do_not_use_&|; /test_suite/d' ${WRKSRC}/${PYSETUP}
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|; s|$$(PYVER)|${PYTHON_VER}|' ${WRKSRC}/SWIG/Makefile
.include <bsd.port.mk>
|