Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Apr 2016 18:10:06 +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: r412366 - head/www/myfaces
Message-ID:  <201604011810.u31IA6fM044569@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Apr  1 18:10:06 2016
New Revision: 412366
URL: https://svnweb.freebsd.org/changeset/ports/412366

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

Modified:
  head/www/myfaces/Makefile

Modified: head/www/myfaces/Makefile
==============================================================================
--- head/www/myfaces/Makefile	Fri Apr  1 17:39:12 2016	(r412365)
+++ head/www/myfaces/Makefile	Fri Apr  1 18:10:06 2016	(r412366)
@@ -10,20 +10,24 @@ MASTER_SITES=	APACHE/${PORTNAME}/binarie
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Free open source JavaServer(tm) Faces implementation
 
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
 USE_JAVA=	yes
 JAVA_VERSION=	1.6+
 NO_BUILD=	yes
+NO_ARCH=	yes
 USES=		cpe
 CPE_VENDOR=	apache
 
-OPTIONS_DEFINE=	DOCS
-
 DATADIR=	${JAVASHAREDIR}/${PORTNAME}
 PORTDOCS=	javadoc tlddoc LICENSE.txt NOTICE.txt
 JAR_FILES=	myfaces-all.jar myfaces-api.jar myfaces-impl.jar tomahawk.jar
 PLIST_FILES=	%%JAVAJARDIR%%/${PORTNAME}.jar \
 		${JAR_FILES:S|^|%%DATADIR%%/|}
 
+OPTIONS_DEFINE=	DOCS
+
 do-install:
 	${INSTALL_DATA} ${WRKSRC}/myfaces-all.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
 	@${MKDIR} ${STAGEDIR}${DATADIR}
@@ -31,7 +35,7 @@ do-install:
 	${INSTALL_DATA} ${WRKSRC}/${jarfile} ${STAGEDIR}${DATADIR}/${jarfile}
 .endfor
 
-	cd ${WRKSRC} && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \;
-	cd ${WRKSRC} && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
+do-install-DOCS-on:
+	@cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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