diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2016-11-25 00:07:52 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2016-11-25 00:07:52 +0800 |
commit | d8f8fcfaf9661c4ea053c477a4c7eaf9d6bd068c (patch) | |
tree | 55f682ccbcb6ce644df76f3519f5bd5f86f0c351 /textproc/lucene5 | |
parent | 0f75dc057c67ac6f8b5ab8f2a136ecbabdb49671 (diff) | |
download | freebsd-ports-gnome-d8f8fcfaf9661c4ea053c477a4c7eaf9d6bd068c.tar.gz freebsd-ports-gnome-d8f8fcfaf9661c4ea053c477a4c7eaf9d6bd068c.tar.zst freebsd-ports-gnome-d8f8fcfaf9661c4ea053c477a4c7eaf9d6bd068c.zip |
- Add LICENSE_FILE
- Add NO_ARCH
- Pet portlint
- Switch to options helpers
- Cosmetic fixes
Diffstat (limited to 'textproc/lucene5')
-rw-r--r-- | textproc/lucene5/Makefile | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/textproc/lucene5/Makefile b/textproc/lucene5/Makefile index 4eebce847811..583fb6f61064 100644 --- a/textproc/lucene5/Makefile +++ b/textproc/lucene5/Makefile @@ -5,28 +5,25 @@ PORTNAME= lucene PORTVERSION= 5.5.3 CATEGORIES= textproc java devel MASTER_SITES= APACHE/${PORTNAME}/java/${PORTVERSION} +PKGNAMESUFFIX= 5 MAINTAINER= ports@FreeBSD.org COMMENT= Full-text search engine for Java, 5.x branch LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt CONFLICTS= lucene-[0-9].* USES= tar:tgz USE_JAVA= yes -NO_BUILD= yes JAVA_VERSION= 1.7+ - -OPTIONS_DEFINE= CONTRIB DOCS EXAMPLES -CONTRIB_DESC= Install contributed jars -OPTIONS_DEFAULT= CONTRIB +NO_BUILD= yes +NO_ARCH= yes PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}-core-${PORTVERSION}.jar -PKGNAMESUFFIX:= 5 -LASTEST_LINK= ${PORTNAME}5 - -.include <bsd.port.options.mk> +PORTDOCS= * +PORTEXAMPLES= * CONTRIBS= backward-codecs \ benchmark \ @@ -48,7 +45,8 @@ CONTRIBS= backward-codecs \ spatial3d \ suggest -EXTRA_CONTRIBS_DIRS= common \ +EXTRA_CONTRIBS_DIRS= \ + common \ icu \ kuromoji \ morfologik \ @@ -57,33 +55,36 @@ EXTRA_CONTRIBS_DIRS= common \ stempel \ uima -.if ${PORT_OPTIONS:MCONTRIB} +OPTIONS_DEFINE= CONTRIB DOCS EXAMPLES +OPTIONS_DEFAULT=CONTRIB +CONTRIB_DESC= Install contributed jars + .for f in ${CONTRIBS} -PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar +CONTRIB_PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar .endfor .for g in ${EXTRA_CONTRIBS_DIRS} -PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-analyzers-${g}-${PORTVERSION}.jar +CONTRIB_PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}-analyzers-${g}-${PORTVERSION}.jar .endfor -.endif - -PORTDOCS= * -PORTEXAMPLES= * do-install: ${INSTALL_DATA} ${WRKSRC}/core/${PORTNAME}-core-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR} -.if ${PORT_OPTIONS:MCONTRIB} -. for f in ${CONTRIBS} + +do-install-CONTRIB-on: +.for f in ${CONTRIBS} ${INSTALL_DATA} ${WRKSRC}/${f}/${PORTNAME}-${f}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR} -. endfor -. for d in ${EXTRA_CONTRIBS_DIRS} +.endfor +.for d in ${EXTRA_CONTRIBS_DIRS} ${INSTALL_DATA} ${WRKSRC}/analysis/${d}/${PORTNAME}-analyzers-${d}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR} -. endfor -.endif +.endfor + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in CHANGES.txt NOTICE.txt README.txt ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}) + +do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/demo/${PORTNAME}-demo-${PORTVERSION}.jar ${STAGEDIR}${EXAMPLESDIR} |