1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/security/py-pow/Makefile
Dmitry Marakasov d363fcb683 - Switch to options helpers
- Silence patching and stripping
- Regenerate patches with `make makepatch`
2016-03-13 01:50:06 +00:00

42 lines
890 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= pow
PORTVERSION= 0.7
PORTREVISION= 1
CATEGORIES= security python
MASTER_SITES= SF/${PORTNAME}/POW/POW-${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:tu}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Python OpenSSL Wrappers
LICENSE= BSD3CLAUSE
USES= python
USE_PYTHON= distutils
PYDISTUTILS_PKGNAME= POW
USE_OPENSSL= yes
PORTDOCS= POW.pdf
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|licence|license|' ${WRKSRC}/setup.py
do-build:
cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} build_ext -D NO_IDEA -D NO_RC5_32_12_16 ${PYDISTUTILS_BUILD_TARGET}
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/POW/_POW.so
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/docs/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>