svn commit: r411913 - head/sysutils/cw

Dmitry Marakasov amdmi3 at FreeBSD.org
Sat Mar 26 01:07:47 UTC 2016


Author: amdmi3
Date: Sat Mar 26 01:07:45 2016
New Revision: 411913
URL: https://svnweb.freebsd.org/changeset/ports/411913

Log:
  - Clarify LICENSE
  - Add LICENSE_FILE
  - Don't install useless docs
  - Switch to options helpers

Modified:
  head/sysutils/cw/Makefile

Modified: head/sysutils/cw/Makefile
==============================================================================
--- head/sysutils/cw/Makefile	Sat Mar 26 01:07:16 2016	(r411912)
+++ head/sysutils/cw/Makefile	Sat Mar 26 01:07:45 2016	(r411913)
@@ -11,7 +11,8 @@ MASTER_SITES=	http://cwrapper.sourceforg
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Non-intrusive color wrapper for common commands
 
-LICENSE=	GPLv2
+LICENSE=	GPLv2+
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		shebangfix
 
@@ -23,15 +24,17 @@ cw_CMD=		${PREFIX}/bin/cw
 GNU_CONFIGURE=	yes
 ALL_TARGET=	local
 
-PORTDOCS=	CHANGES CONTRIB FILES INSTALL PLATFORM README VERSION
+PORTDOCS=	CHANGES CONTRIB README
 
 OPTIONS_DEFINE=	DOCS
 
 post-install:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 .for file in cw cwu
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${file}
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${file}
 .endfor
 
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list