svn commit: r358619 - head/net/py-pcs

Steven Kreuzer skreuzer at FreeBSD.org
Fri Jun 20 18:02:36 UTC 2014


Author: skreuzer
Date: Fri Jun 20 18:02:35 2014
New Revision: 358619
URL: http://svnweb.freebsd.org/changeset/ports/358619
QAT: https://qat.redports.org/buildarchive/r358619/

Log:
  Add staging support
  Define LICENSE
  Convert to new options framework

Modified:
  head/net/py-pcs/Makefile

Modified: head/net/py-pcs/Makefile
==============================================================================
--- head/net/py-pcs/Makefile	Fri Jun 20 18:00:45 2014	(r358618)
+++ head/net/py-pcs/Makefile	Fri Jun 20 18:02:35 2014	(r358619)
@@ -10,6 +10,8 @@ PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 MAINTAINER=	gnn at FreeBSD.org
 COMMENT=	Protocol Construction Set
 
+LICENSE=	BSD3CLAUSE
+
 PORTDOCS=	pcs.pdf
 PORTEXAMPLES=	*
 
@@ -19,18 +21,18 @@ USE_PYTHON=	yes
 USE_PYDISTUTILS=	yes
 USE_PYTHON_PREFIX=	yes
 
-NO_STAGE=	yes
+.include <bsd.port.options.mk>
 .include <bsd.port.pre.mk>
 
 post-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC}/docs/Web && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC}/docs/Web && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 .endif
 
-.if !defined(NOPORTEXAMPLES)
-	@${MKDIR} ${EXAMPLESDIR}
-	cd ${WRKSRC}/scripts && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
+.if ${PORT_OPTIONS:MEXAMPLES}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	cd ${WRKSRC}/scripts && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
 .endif
 
 .include <bsd.port.post.mk>


More information about the svn-ports-head mailing list