mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
- Update to 3.5.0
- standardize MASTER_SITES - move away from binary, and build from source distribution PR: ports/166289 Submitted by: jgh (me) Approved by: maintainer timeout ( 15 days ) Feature safe: yes
This commit is contained in:
parent
ddd6a2a23c
commit
15f4596232
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=294207
@ -7,10 +7,11 @@
|
||||
# Please don't forget to bump the version in py-lucene if this changes!
|
||||
|
||||
PORTNAME= lucene
|
||||
PORTVERSION= 3.4.0
|
||||
PORTVERSION= 3.5.0
|
||||
CATEGORIES= textproc java devel
|
||||
MASTER_SITES= ${MASTER_SITE_APACHE:S,%SUBDIR%,lucene/java/$(PORTVERSION),}
|
||||
DISTNAME= lucene-${PORTVERSION}
|
||||
MASTER_SITES= APACHE
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}/java/${PORTVERSION}/
|
||||
DISTNAME= lucene-${PORTVERSION}-src
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= gerrit.beine@gmx.de
|
||||
@ -18,9 +19,10 @@ COMMENT= A full-text search engine for Java
|
||||
|
||||
LICENSE= AL2
|
||||
|
||||
NO_BUILD= yes
|
||||
USE_JAVA= yes
|
||||
USE_ANT= yes
|
||||
JAVA_VERSION= 1.5+
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
OPTIONS= DOCS "Install docs & examples" on \
|
||||
CONTRIB "Install contribs" off
|
||||
@ -29,8 +31,8 @@ PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}-core-${PORTVERSION}.jar
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
CONTRIBS= analyzers \
|
||||
benchmark \
|
||||
CONTRIBS= benchmark \
|
||||
demo \
|
||||
facet \
|
||||
grouping \
|
||||
highlighter \
|
||||
@ -42,14 +44,17 @@ CONTRIBS= analyzers \
|
||||
queries \
|
||||
queryparser \
|
||||
remote \
|
||||
smartcn \
|
||||
spatial \
|
||||
spellchecker \
|
||||
stempel \
|
||||
xml-query-parser
|
||||
|
||||
EXTRA_CONTRIBS_BUILD= analyzers
|
||||
|
||||
EXTRA_CONTRIBS_DIRS= smartcn \
|
||||
stempel
|
||||
|
||||
.if defined(WITH_CONTRIB)
|
||||
.for f in ${CONTRIBS}
|
||||
.for f in ${EXTRA_CONTRIBS_BUILD} ${CONTRIBS} ${EXTRA_CONTRIBS_DIRS}
|
||||
PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar
|
||||
.endfor
|
||||
.endif
|
||||
@ -65,29 +70,35 @@ PORTEXAMPLES= *
|
||||
DEMODIR= contrib/demo
|
||||
|
||||
.if defined(WITH_CONTRIB)
|
||||
post-extract:
|
||||
${MV} ${WRKSRC}/contrib/analyzers/common/* ${WRKSRC}/contrib/analyzers/
|
||||
${RMDIR} ${WRKSRC}/contrib/analyzers/common
|
||||
${MV} ${WRKSRC}/contrib/analyzers/smartcn/ ${WRKSRC}/contrib/
|
||||
${MV} ${WRKSRC}/contrib/analyzers/stempel/ ${WRKSRC}/contrib/
|
||||
post-build:
|
||||
.for i in ${EXTRA_CONTRIBS_BUILD} ${CONTRIBS}
|
||||
cd ${WRKSRC}/contrib/${i} && ${ANT}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-core-${PORTVERSION}.jar \
|
||||
${JAVAJARDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}-core-${PORTVERSION:R}-SNAPSHOT.jar \
|
||||
${JAVAJARDIR}/${PORTNAME}-core-${PORTVERSION}.jar
|
||||
.if defined(WITH_CONTRIB)
|
||||
. for f in ${CONTRIBS}
|
||||
@${INSTALL_DATA} \
|
||||
${WRKSRC}/contrib/${f}/${PORTNAME}-${f}-${PORTVERSION}.jar \
|
||||
${JAVAJARDIR}
|
||||
${WRKSRC}/build/contrib/${f}/${PORTNAME}-${f}-${PORTVERSION:R}-SNAPSHOT.jar \
|
||||
${JAVAJARDIR}/${PORTNAME}-${f}-${PORTVERSION}.jar
|
||||
. endfor
|
||||
. for d in ${EXTRA_CONTRIBS_DIRS}
|
||||
@${INSTALL_DATA} \
|
||||
${WRKSRC}/build/contrib/${EXTRA_CONTRIBS_BUILD}/${d}/${PORTNAME}-${d}-${PORTVERSION:R}-SNAPSHOT.jar \
|
||||
${JAVAJARDIR}/${PORTNAME}-${d}-${PORTVERSION}.jar
|
||||
. endfor
|
||||
@${INSTALL_DATA} \
|
||||
${WRKSRC}/build/contrib/${EXTRA_CONTRIBS_BUILD}/common/${PORTNAME}-${EXTRA_CONTRIBS_BUILD}-${PORTVERSION:R}-SNAPSHOT.jar \
|
||||
${JAVAJARDIR}/${PORTNAME}-${EXTRA_CONTRIBS_BUILD}-${PORTVERSION}.jar
|
||||
.endif
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/CHANGES.txt ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/NOTICE.txt ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
|
||||
.for i in CHANGES.txt LICENSE.txt NOTICE.txt README.txt
|
||||
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
||||
.endfor
|
||||
@(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR})
|
||||
.endif
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (lucene-3.4.0.tgz) = 56fa8afd3b9cbce1b990aa10dd9af30aef434a06506f08814fb6b8c7c526af57
|
||||
SIZE (lucene-3.4.0.tgz) = 42933801
|
||||
SHA256 (lucene-3.5.0-src.tgz) = 814dbfcd91b76522ae350817c306be8c4a72dfe8c809540be4b20209acfb9a27
|
||||
SIZE (lucene-3.5.0-src.tgz) = 39564076
|
||||
|
Loading…
Reference in New Issue
Block a user