mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Allow build with Python 3.x
- Bump PORTREVISION
This commit is contained in:
parent
e01844530d
commit
ccc7e4ee7e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345700
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= spf
|
||||
PORTVERSION= 2.0.8
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail python
|
||||
MASTER_SITES= SF/pymilter/py${PORTNAME}/py${PORTNAME}-${PORTVERSION}
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
@ -13,8 +14,6 @@ COMMENT= Python implementation of the RFC 4408 SPF protocol
|
||||
|
||||
LICENSE= PSFL
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dns>=0:${PORTSDIR}/dns/py-dns
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
|
||||
|
||||
@ -28,10 +27,18 @@ PORTDOCS= CHANGELOG README
|
||||
|
||||
SHEBANG_FILES= spf.py
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PYTHON_REL} < 300
|
||||
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dns>=0:${PORTSDIR}/dns/py-dns
|
||||
.else
|
||||
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dns3>=0:${PORTSDIR}/dns/py-dns3
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${CHMOD} ${BINMODE} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/spf.py
|
||||
${LN} -s ${PYTHONPREFIX_SITELIBDIR}/spf.py ${STAGEDIR}${PREFIX}/bin/
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}/
|
||||
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user