Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Dec 2013 22:42:48 +0000 (UTC)
From:      Ruslan Makhmatkhanov <rm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337305 - head/devel/py-asn1-modules
Message-ID:  <201312232242.rBNMgm4h080922@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rm
Date: Mon Dec 23 22:42:48 2013
New Revision: 337305
URL: http://svnweb.freebsd.org/changeset/ports/337305

Log:
  - 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]

Modified:
  head/devel/py-asn1-modules/Makefile
  head/devel/py-asn1-modules/pkg-plist

Modified: head/devel/py-asn1-modules/Makefile
==============================================================================
--- head/devel/py-asn1-modules/Makefile	Mon Dec 23 22:37:14 2013	(r337304)
+++ head/devel/py-asn1-modules/Makefile	Mon Dec 23 22:42:48 2013	(r337305)
@@ -2,43 +2,34 @@
 
 PORTNAME=	asn1-modules
 PORTVERSION=	0.0.5
+PORTREVISION=	1
 CATEGORIES=	devel python
-MASTER_SITES=	SF/pyasn1/py${PORTNAME}/${PORTVERSION} \
-		CHEESESHOP
+MASTER_SITES=	SF/pyasn1/py${PORTNAME}/${PORTVERSION}
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 DISTNAME=	py${PORTNAME}-${PORTVERSION}
 
 MAINTAINER=	rm@FreeBSD.org
 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
 
+USES=			shebangfix
+SHEBANG_FILES=		tools/*.py
 USE_PYTHON=		yes
-USE_PYDISTUTILS=	easy_install
-PYDISTUTILS_PKGNAME=	pyasn1-modules
-
-DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
-
-BASEDOCS=	CHANGES README
+USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
 
+DOCSDIR=	${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
+PORTDOCS=	CHANGES README
 TOOLS=		cmpdump.py crldump.py crmfdump.py ocspclient.py ocspreqdump.py \
 		ocsprspdump.py ocspserver.py pkcs10dump.py pkcs1dump.py \
 		pkcs7dump.py pkcs8dump.py snmpget.py x509dump.py
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
 post-install:
-.for t in ${TOOLS}
-	@${INSTALL_SCRIPT} ${WRKSRC}/tools/${t} ${PREFIX}/bin
-.endfor
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-.for f in ${BASEDOCS}
-	@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.endfor
-.endif
+	${INSTALL_SCRIPT} ${TOOLS:S|^|${WRKSRC}/tools/|} ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/devel/py-asn1-modules/pkg-plist
==============================================================================
--- head/devel/py-asn1-modules/pkg-plist	Mon Dec 23 22:37:14 2013	(r337304)
+++ head/devel/py-asn1-modules/pkg-plist	Mon Dec 23 22:42:48 2013	(r337305)
@@ -11,7 +11,3 @@ bin/pkcs7dump.py
 bin/pkcs8dump.py
 bin/snmpget.py
 bin/x509dump.py
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
-%%PORTDOCS%%%%DOCSDIR%%/CHANGES
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312232242.rBNMgm4h080922>