1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

- remove pypi mirrors, because they hold different distfile [1]

- correct license type (BSD 2 clause)
- support staging
- use PYDISTUTILS_AUTOPLIST
- bump PORTREVISION

PR:		180208
Reported by:	    Lance Chen <cyen0312@gmail.com> [1]
This commit is contained in:
Ruslan Makhmatkhanov 2013-12-23 22:42:48 +00:00
parent a23801bec3
commit 634946a66f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337305
2 changed files with 12 additions and 25 deletions

View File

@ -2,43 +2,34 @@
PORTNAME= asn1-modules PORTNAME= asn1-modules
PORTVERSION= 0.0.5 PORTVERSION= 0.0.5
PORTREVISION= 1
CATEGORIES= devel python CATEGORIES= devel python
MASTER_SITES= SF/pyasn1/py${PORTNAME}/${PORTVERSION} \ MASTER_SITES= SF/pyasn1/py${PORTNAME}/${PORTVERSION}
CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= py${PORTNAME}-${PORTVERSION} DISTNAME= py${PORTNAME}-${PORTVERSION}
MAINTAINER= rm@FreeBSD.org MAINTAINER= rm@FreeBSD.org
COMMENT= Collection of ASN.1 data structures for py-asn1 COMMENT= Collection of ASN.1 data structures for py-asn1
LICENSE= BSD LICENSE= BSD2CLAUSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1>=0.1.4:${PORTSDIR}/devel/py-asn1 RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1>=0.1.4:${PORTSDIR}/devel/py-asn1
USES= shebangfix
SHEBANG_FILES= tools/*.py
USE_PYTHON= yes USE_PYTHON= yes
USE_PYDISTUTILS= easy_install USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= pyasn1-modules PYDISTUTILS_AUTOPLIST= yes
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
BASEDOCS= CHANGES README
DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
PORTDOCS= CHANGES README
TOOLS= cmpdump.py crldump.py crmfdump.py ocspclient.py ocspreqdump.py \ TOOLS= cmpdump.py crldump.py crmfdump.py ocspclient.py ocspreqdump.py \
ocsprspdump.py ocspserver.py pkcs10dump.py pkcs1dump.py \ ocsprspdump.py ocspserver.py pkcs10dump.py pkcs1dump.py \
pkcs7dump.py pkcs8dump.py snmpget.py x509dump.py pkcs7dump.py pkcs8dump.py snmpget.py x509dump.py
NO_STAGE= yes
.include <bsd.port.options.mk>
post-install: post-install:
.for t in ${TOOLS} ${INSTALL_SCRIPT} ${TOOLS:S|^|${WRKSRC}/tools/|} ${STAGEDIR}${PREFIX}/bin
@${INSTALL_SCRIPT} ${WRKSRC}/tools/${t} ${PREFIX}/bin @${MKDIR} ${STAGEDIR}${DOCSDIR}
.endfor ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for f in ${BASEDOCS}
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -11,7 +11,3 @@ bin/pkcs7dump.py
bin/pkcs8dump.py bin/pkcs8dump.py
bin/snmpget.py bin/snmpget.py
bin/x509dump.py bin/x509dump.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%@dirrm %%DOCSDIR%%