From a6ec59e2b9cd1a3d9f5ba777713d2782e12cd23e Mon Sep 17 00:00:00 2001 From: Danilo Egea Gondolfo Date: Tue, 1 Oct 2013 12:51:02 +0000 Subject: [PATCH] - Change maintainer email to @FreeBSD.org - Add DOCS and EXAMPLES options - Add stage support Approved by: wg (mentor) --- textproc/lucene/Makefile | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/textproc/lucene/Makefile b/textproc/lucene/Makefile index 52ad1e782ea1..34e721667e3c 100644 --- a/textproc/lucene/Makefile +++ b/textproc/lucene/Makefile @@ -10,7 +10,7 @@ MASTER_SITES= APACHE MASTER_SITE_SUBDIR= ${PORTNAME}/java/${PORTVERSION}/ EXTRACT_SUFX= .tgz -MAINTAINER= danilogondolfo@gmail.com +MAINTAINER= danilo@FreeBSD.org COMMENT= Full-text search engine for Java LICENSE= AL2 @@ -23,13 +23,12 @@ USE_JAVA= yes NO_BUILD= yes JAVA_VERSION= 1.6+ -OPTIONS_DEFINE= CONTRIB +OPTIONS_DEFINE= CONTRIB DOCS EXAMPLES CONTRIB_DESC= Install contributed jars OPTIONS_DEFAULT= CONTRIB PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}-core-${PORTVERSION}.jar -NO_STAGE= yes .include CONTRIBS= benchmark \ @@ -69,28 +68,26 @@ PORTEXAMPLES= * DEMODIR= contrib/demo do-install: - ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-core-${PORTVERSION}.jar ${JAVAJARDIR} + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-core-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR} .if ${PORT_OPTIONS:MCONTRIB} . for f in ${CONTRIBS} - ${INSTALL_DATA} ${WRKSRC}/contrib/${f}/${PORTNAME}-${f}-${PORTVERSION}.jar ${JAVAJARDIR} + ${INSTALL_DATA} ${WRKSRC}/contrib/${f}/${PORTNAME}-${f}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR} . endfor . for d in ${EXTRA_CONTRIBS_DIRS} - ${INSTALL_DATA} ${WRKSRC}/contrib/${EXTRA_CONTRIBS_BASE}/${d}/${PORTNAME}-${d}-${PORTVERSION}.jar ${JAVAJARDIR} + ${INSTALL_DATA} ${WRKSRC}/contrib/${EXTRA_CONTRIBS_BASE}/${d}/${PORTNAME}-${d}-${PORTVERSION}.jar \ + ${STAGEDIR}${JAVAJARDIR} . endfor - ${INSTALL_DATA} ${WRKSRC}/contrib/${EXTRA_CONTRIBS_BASE}/common/${PORTNAME}-${EXTRA_CONTRIBS_BASE}-${PORTVERSION}.jar ${JAVAJARDIR} + ${INSTALL_DATA} \ + ${WRKSRC}/contrib/${EXTRA_CONTRIBS_BASE}/common/${PORTNAME}-${EXTRA_CONTRIBS_BASE}-${PORTVERSION}.jar \ + ${STAGEDIR}${JAVAJARDIR} .endif -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in CHANGES.txt LICENSE.txt NOTICE.txt README.txt - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor - (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR}) -.endif - -.if ${PORT_OPTIONS:MEXAMPLES} - @${MKDIR} ${EXAMPLESDIR} - (cd ${WRKSRC}/${DEMODIR} && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}) -.endif + (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}) + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/${DEMODIR} && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}) .include