1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/security/py-twofish/Makefile
Antoine Brodin f7455240e3 Reduce dependency on the python2 metaport
PR:		225752
Submitted by:	Yasuhiro KIMURA
2018-02-19 11:10:43 +00:00

33 lines
849 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= twofish
PORTVERSION= 0.7
PORTREVISION= 3
CATEGORIES= security python
MASTER_SITES= SF/${PORTNAME}-py/${PORTNAME}-py/${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= twofishmodule-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Twofish cryptographic module for Python
USES= python:2.7 shebangfix
SHEBANG_FILES= cryptfile.py decryptfile.py
GNU_CONFIGURE= yes
CFLAGS+= -fPIC
OPTIONS_DEFINE= DOCS
do-install:
@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
${INSTALL_DATA} ${WRKSRC}/_twofish.so ${STAGEDIR}${PYTHON_SITELIBDIR}
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_twofish.so
${INSTALL_SCRIPT} ${WRKSRC}/*.py ${STAGEDIR}${PYTHON_SITELIBDIR}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>