Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jan 2016 14:04:20 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r406502 - head/devel/jcmdline
Message-ID:  <201601171404.u0HE4KmM037593@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sun Jan 17 14:04:20 2016
New Revision: 406502
URL: https://svnweb.freebsd.org/changeset/ports/406502

Log:
  - Add LICENSE_FILE
  - Add NO_ARCH
  - Switch to options helpers

Modified:
  head/devel/jcmdline/Makefile

Modified: head/devel/jcmdline/Makefile
==============================================================================
--- head/devel/jcmdline/Makefile	Sun Jan 17 14:04:08 2016	(r406501)
+++ head/devel/jcmdline/Makefile	Sun Jan 17 14:04:20 2016	(r406502)
@@ -9,23 +9,28 @@ MASTER_SITES=	SF
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Java command line processor
 
+LICENSE=	MPL
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
 USE_JAVA=	yes
 JAVA_VERSION=	1.6+
 NO_BUILD=	yes
-
-LICENSE=	MPL
+NO_ARCH=	yes
 
 JARFILE=	${PORTNAME}.jar
 
 PLIST_FILES=	%%JAVAJARDIR%%/${JARFILE}
-DOCFILES=	CHANGES CREDITS README
 PORTDOCS=	*
 
+OPTIONS_DEFINE=	DOCS
+
 do-install:
 	${INSTALL_DATA} ${JARFILE:S|.jar|-${PORTVERSION}.jar|:S|^|${WRKSRC}/|}	\
 		${STAGEDIR}${JAVAJARDIR}/${JARFILE}
+
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${DOCFILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
-	${CP} -R ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} CHANGES CREDITS README ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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