aboutsummaryrefslogtreecommitdiff
path: root/security/py-pyme/Makefile
blob: ba40c6c7c5a153a93cf55be6d581f97ef0bf5d11 (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
29
30
31
32
33
# Created by: Johan van Selst <johans@stack.nl>
# $FreeBSD$

PORTNAME=	pyme
PORTVERSION=	0.8.1
PORTREVISION=	4
CATEGORIES=	security python
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	johans@FreeBSD.org
COMMENT=	Python interface to GPGME library

BUILD_DEPENDS=	swig1.3:${PORTSDIR}/devel/swig13
LIB_DEPENDS=	gpgme:${PORTSDIR}/security/gpgme

USE_GMAKE=	yes
USE_PYTHON=	2.5+
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGNAME=pygpgme

NO_STAGE=	yes
.include <bsd.port.pre.mk>

post-patch:
	@${REINPLACE_CMD} -e 's,gpgme-config,${PREFIX}/bin/&,' \
		${WRKSRC}/Makefile ${WRKSRC}/setup.py
	@${REINPLACE_CMD} -e 's,include/,&gpgme/,' ${WRKSRC}/Makefile

pre-build:
	@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} build)

.include <bsd.port.post.mk>