Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 May 2016 21:30:47 +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: r414966 - head/textproc/xincluder
Message-ID:  <201605102130.u4ALUljC078922@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue May 10 21:30:47 2016
New Revision: 414966
URL: https://svnweb.freebsd.org/changeset/ports/414966

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

Modified:
  head/textproc/xincluder/Makefile

Modified: head/textproc/xincluder/Makefile
==============================================================================
--- head/textproc/xincluder/Makefile	Tue May 10 21:30:42 2016	(r414965)
+++ head/textproc/xincluder/Makefile	Tue May 10 21:30:47 2016	(r414966)
@@ -11,39 +11,35 @@ DISTNAME=	${PORTNAME}-1.0d11
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Java-based XInclude processors
 
+LICENSE=	LGPL21
+LICENSE_FILE=	${WRKSRC}/lgpl.txt
+
 RUN_DEPENDS=	${JAVALIBDIR}/jdom.jar:java/jdom \
 		${JAVALIBDIR}/xercesImpl.jar:textproc/xerces-j
 
 USE_JAVA=	yes
 JAVA_VERSION=	1.6+
 NO_BUILD=	yes
+NO_ARCH=	yes
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
-OPTIONS_DEFINE=	DOCS
-
 SUFFIXES=	-sax -dom -jdom
 PLIST_FILES=	%%JAVAJARDIR%%/${PORTNAME}.jar bin/xincluder ${SUFFIXES:S,^,bin/xincluder,}
 PORTDOCS=	apidoc index.html
 SUB_FILES=	xincluder.sh
 
+OPTIONS_DEFINE=	DOCS
+
 do-install:
-	@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
 	@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
 	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/
-	@${ECHO_MSG} " [ DONE ]"
-	@${ECHO_MSG} -n ">> Installing scripts in ${PREFIX}/bin..."
-	@${ECHO_MSG} -n " xincluder"
 	${INSTALL_SCRIPT} ${WRKDIR}/xincluder.sh ${STAGEDIR}${PREFIX}/bin/xincluder
 .for suffix in ${SUFFIXES}
-	@${ECHO_MSG} -n " xincluder${suffix}"
 	${LN} -s xincluder ${STAGEDIR}${PREFIX}/bin/xincluder${suffix}
 .endfor
-	@${ECHO_MSG} " [ DONE ]"
-	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
-	cd ${WRKSRC} \
-	  && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
-	  && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
-	@${ECHO_MSG} " [ DONE ]"
+
+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?201605102130.u4ALUljC078922>