mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-22 20:41:26 +00:00
Lucene version 3.x has many new features.
Lucene 2.9.4 is based on Java 4, while the Lucene 3.x series is based on Java 5. Java 4 was deprecated recently on FreeBSD. Versions of lucene and py-lucene are meant to match and since py-lucene was updated recently to version 3.4.0 it was only natural to do this update. PR: ports/161119 Submitted by: Pedro Giffuni <giffunip@tutopia.com> Approved by: maintainer timeout (gerrit.beine@gmx.de) Feature safe: yes
This commit is contained in:
parent
6ab02ccd5e
commit
8ecec8d2ff
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285710
@ -3,12 +3,15 @@
|
||||
# Whom: Gerrit Beine <gerrit.beine@gmx.de>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
# Please don't forget to bump the version in py-lucene if this changes!
|
||||
|
||||
PORTNAME= lucene
|
||||
PORTVERSION= 2.9.4
|
||||
PORTVERSION= 3.4.0
|
||||
CATEGORIES= textproc java devel
|
||||
MASTER_SITES= ${MASTER_SITE_APACHE:S,%SUBDIR%,lucene/java/$(PORTVERSION),}
|
||||
DISTNAME= lucene-${PORTVERSION}
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= gerrit.beine@gmx.de
|
||||
COMMENT= A full-text search engine for Java
|
||||
@ -24,33 +27,27 @@ OPTIONS= DOCS "Install docs & examples" on \
|
||||
|
||||
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}-core-${PORTVERSION}.jar
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
CONTRIBS= analyzers \
|
||||
ant \
|
||||
benchmark \
|
||||
collation \
|
||||
bdb \
|
||||
bdb-je \
|
||||
instantiated \
|
||||
facet \
|
||||
grouping \
|
||||
highlighter \
|
||||
lucli \
|
||||
icu \
|
||||
instantiated \
|
||||
join \
|
||||
memory \
|
||||
misc \
|
||||
queries \
|
||||
queryparser \
|
||||
regex \
|
||||
remote \
|
||||
smartcn \
|
||||
snowball \
|
||||
spatial \
|
||||
spellchecker \
|
||||
surround \
|
||||
swing \
|
||||
wikipedia \
|
||||
wordnet \
|
||||
stempel \
|
||||
xml-query-parser
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_CONTRIB)
|
||||
.for f in ${CONTRIBS}
|
||||
PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar
|
||||
@ -59,25 +56,31 @@ PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar
|
||||
|
||||
.if defined(WITHOUT_DOCS) || !defined(WITH_DOCS)
|
||||
NOPORTDOCS= yes
|
||||
NOPORTEXAMPLES= yes
|
||||
.endif
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
PORTDOCS= *
|
||||
.endif
|
||||
PORTEXAMPLES= *
|
||||
|
||||
DEMODIR= src/demo/org/apache/lucene/demo
|
||||
DEMODIR= contrib/demo
|
||||
|
||||
do-install:
|
||||
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-core-${PORTVERSION}.jar ${JAVAJARDIR}
|
||||
.if defined(WITH_CONTRIB)
|
||||
${MV} ${WRKSRC}/contrib/analyzers/common/*.jar ${WRKSRC}/contrib/analyzers/
|
||||
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/db/bdb/ ${WRKSRC}/contrib/bdb
|
||||
${MV} ${WRKSRC}/contrib/db/bdb-je/ ${WRKSRC}/contrib/bdb-je
|
||||
${INSTALL_DATA} \
|
||||
${CONTRIBS:C,^(.*)$,${WRKSRC}/contrib/\1/${PORTNAME}-\1-${PORTVERSION}.jar,} \
|
||||
${MV} ${WRKSRC}/contrib/analyzers/stempel/ ${WRKSRC}/contrib/
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-core-${PORTVERSION}.jar \
|
||||
${JAVAJARDIR}
|
||||
.if defined(WITH_CONTRIB)
|
||||
. for f in ${CONTRIBS}
|
||||
@${INSTALL_DATA} \
|
||||
${WRKSRC}/contrib/${f}/${PORTNAME}-${f}-${PORTVERSION}.jar \
|
||||
${JAVAJARDIR}
|
||||
. endfor
|
||||
.endif
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@ -85,21 +88,11 @@ do-install:
|
||||
@${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/NOTICE.txt ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
|
||||
@cd ${WRKSRC}/docs/ \
|
||||
&& ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
|
||||
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
||||
@(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${DOCSDIR})
|
||||
.endif
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
@cd ${WRKSRC}/${DEMODIR} \
|
||||
&& ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; \
|
||||
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
|
||||
@(cd ${WRKSRC}/${DEMODIR} && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${FIND} -s ${WRKSRC}/${DEMODIR} -not -type d \
|
||||
| ${SED} -ne 's,^${WRKSRC}/${DEMODIR},${EXAMPLESDIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
|
||||
@${FIND} -s -d ${WRKSRC}/${DEMODIR} -type d \
|
||||
| ${SED} -ne 's,^${WRKSRC}/${DEMODIR},@dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (lucene-2.9.4.tar.gz) = e04fb2aa72e828c2f1b9a80823edfd9935915e83b19a9f9d84ebe92ab2232b00
|
||||
SIZE (lucene-2.9.4.tar.gz) = 18096066
|
||||
SHA256 (lucene-3.4.0.tgz) = 56fa8afd3b9cbce1b990aa10dd9af30aef434a06506f08814fb6b8c7c526af57
|
||||
SIZE (lucene-3.4.0.tgz) = 42933801
|
||||
|
Loading…
Reference in New Issue
Block a user