Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 May 2014 12:39:18 +0000 (UTC)
From:      Alex Dupre <ale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r353945 - head/textproc/xalan-j
Message-ID:  <201405131239.s4DCdIlr065926@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ale
Date: Tue May 13 12:39:17 2014
New Revision: 353945
URL: http://svnweb.freebsd.org/changeset/ports/353945
QAT: https://qat.redports.org/buildarchive/r353945/

Log:
  Stagify.

Modified:
  head/textproc/xalan-j/Makefile

Modified: head/textproc/xalan-j/Makefile
==============================================================================
--- head/textproc/xalan-j/Makefile	Tue May 13 12:33:16 2014	(r353944)
+++ head/textproc/xalan-j/Makefile	Tue May 13 12:39:17 2014	(r353945)
@@ -11,10 +11,11 @@ DISTNAME=	${PORTNAME}_${PORTVERSION:S/./
 MAINTAINER=	ale@FreeBSD.org
 COMMENT=	Apache XSLT processor for transforming XML documents
 
+LICENSE=	APACHE20
+
 RUN_DEPENDS=	${JAVALIBDIR}/xml-apis.jar:${PORTSDIR}/textproc/xerces-j
 
-LICENSE=	APACHE20
-LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
 USES=		zip
 USE_JAVA=	yes
@@ -32,28 +33,29 @@ PLIST_FILES=	${JARFILES:S|^|%%JAVAJARDIR
 
 SUB_FILES=	xalan-j.sh
 
-NO_STAGE=	yes
+.include <bsd.port.options.mk>
+
 do-install:
 	@${ECHO_MSG} -n ">> Installing JAR files in ${JAVAJARDIR}..."
 .for jarfile in ${JARFILES}
-	@${INSTALL_DATA} ${WRKSRC}/${jarfile} ${JAVAJARDIR}/
+	@${INSTALL_DATA} ${WRKSRC}/${jarfile} ${STAGEDIR}${JAVAJARDIR}/
 	@${ECHO_MSG} -n " ${jarfile}"
 .endfor
 	@${ECHO_MSG} " [ DONE ]"
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
-	@${MKDIR} ${DOCSDIR}
-	@(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR})
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	@(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR})
 	@${ECHO_MSG} " [ DONE ]"
 .endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
 	@${ECHO_MSG} -n ">> Installing samples in ${EXAMPLESDIR}..."
-	@${MKDIR} ${EXAMPLESDIR}
-	@(cd ${WRKSRC}/samples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	@(cd ${WRKSRC}/samples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR})
 	@${ECHO_MSG} " [ DONE ]"
 .endif
 	@${ECHO_MSG} -n ">> Installing script in ${PREFIX}/bin/..."
-	@${INSTALL_SCRIPT} ${WRKDIR}/xalan-j.sh ${PREFIX}/bin/xalan-j
+	@${INSTALL_SCRIPT} ${WRKDIR}/xalan-j.sh ${STAGEDIR}${PREFIX}/bin/xalan-j
 	@${ECHO_MSG} " [ DONE ]"
 
 .include <bsd.port.mk>



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