1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/textproc/lucene4/Makefile
2014-11-20 13:20:40 +00:00

90 lines
2.0 KiB
Makefile

# Created by: Jason Helfman <jgh@FreeBSD.org>
# $FreeBSD$
PORTNAME= lucene
PORTVERSION= 4.10.2
CATEGORIES= textproc java devel
MASTER_SITES= APACHE
MASTER_SITE_SUBDIR= ${PORTNAME}/java/${PORTVERSION}/
EXTRACT_SUFX= .tgz
MAINTAINER= mva@FreeBSD.org
COMMENT= Full-text search engine for Java, 4.x branch
LICENSE= APACHE20
CONFLICTS= lucene-[0-9].*
USE_JAVA= yes
NO_BUILD= yes
JAVA_VERSION= 1.7+
OPTIONS_DEFINE= CONTRIB DOCS EXAMPLES
CONTRIB_DESC= Install contributed jars
OPTIONS_DEFAULT= CONTRIB
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}-core-${PORTVERSION}.jar
PKGNAMESUFFIX:= 4
LASTEST_LINK= ${PORTNAME}4
.include <bsd.port.options.mk>
CONTRIBS= benchmark \
classification \
codecs \
demo \
expressions \
facet \
grouping \
highlighter \
join \
memory \
misc \
queries \
queryparser \
replicator \
sandbox \
spatial \
suggest
EXTRA_CONTRIBS_DIRS= common \
icu \
kuromoji \
morfologik \
phonetic \
smartcn \
stempel \
uima
.if ${PORT_OPTIONS:MCONTRIB}
.for f in ${CONTRIBS}
PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar
.endfor
.for g in ${EXTRA_CONTRIBS_DIRS}
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}
${INSTALL_DATA} ${WRKSRC}/${f}/${PORTNAME}-${f}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}
. endfor
. for d in ${EXTRA_CONTRIBS_DIRS}
${INSTALL_DATA} ${WRKSRC}/analysis/${d}/${PORTNAME}-analyzers-${d}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}
. endfor
.endif
@${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})
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/demo/${PORTNAME}-demo-${PORTVERSION}.jar ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>