svn commit: r438707 - head/security/py-gnutls

Martin Wilke miwi at FreeBSD.org
Mon Apr 17 15:58:04 UTC 2017


Author: miwi
Date: Mon Apr 17 15:58:03 2017
New Revision: 438707
URL: https://svnweb.freebsd.org/changeset/ports/438707

Log:
  - Add NO_ARCH
  - Use options helper
  - Fix shebangs

Modified:
  head/security/py-gnutls/Makefile

Modified: head/security/py-gnutls/Makefile
==============================================================================
--- head/security/py-gnutls/Makefile	Mon Apr 17 15:42:19 2017	(r438706)
+++ head/security/py-gnutls/Makefile	Mon Apr 17 15:58:03 2017	(r438707)
@@ -3,6 +3,7 @@
 
 PORTNAME=	gnutls
 PORTVERSION=	3.1.1
+PORTREVISION=	1
 CATEGORIES=	security python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,9 +16,11 @@ LICENSE=	LGPL20
 
 LIB_DEPENDS=	libgnutls.so:security/gnutls
 
-USES=		python
+USES=		python shebangfix
 USE_PYTHON=	autoplist distutils
 PYDISTUTILS_PKGNAME=	python_gnutls
+NO_ARCH=	yes
+SHEBANG_FILES=	examples/*.py
 
 EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
 
@@ -28,7 +31,7 @@ post-patch:
 	${REINPLACE_CMD} -e "s|library_dirs=.*|library_dirs=\['${LOCALBASE}/lib'\],|" ${WRKSRC}/setup.py
 	${REINPLACE_CMD} -e "s|\.26||g" ${WRKSRC}/gnutls/library/functions.py
 
-post-install:
+post-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}/${EXAMPLESDIR}
 	${CP} -R ${WRKSRC}/examples/ ${STAGEDIR}/${EXAMPLESDIR}
 


More information about the svn-ports-head mailing list