freebsd-ports/textproc/lucene/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

92 lines
2.1 KiB
Makefile

# Created by: Gerrit Beine <gerrit.beine@gmx.de>
# $FreeBSD$
PORTNAME= lucene
PORTVERSION= 3.6.2
# Be sure to chase devel/openoffice-devel and textproc/py-lucene
# when updating this
CATEGORIES= textproc java devel
MASTER_SITES= APACHE/${PORTNAME}/java/${PORTVERSION}
MAINTAINER= danilo@FreeBSD.org
COMMENT= Full-text search engine for Java
LICENSE= APACHE20
CONFLICTS= lucene4-[0-9].*
PORTSCOUT= limit:^3\.
USES= tar:tgz
USE_JAVA= yes
NO_BUILD= yes
JAVA_VERSION= 1.6+
OPTIONS_DEFINE= CONTRIB DOCS EXAMPLES
CONTRIB_DESC= Install contributed jars
OPTIONS_DEFAULT= CONTRIB
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}-core-${PORTVERSION}.jar
.include <bsd.port.options.mk>
CONTRIBS= benchmark \
demo \
facet \
grouping \
highlighter \
icu \
instantiated \
join \
memory \
misc \
pruning \
queries \
queryparser \
remote \
spatial \
spellchecker \
xml-query-parser
EXTRA_CONTRIBS_BASE= analyzers
EXTRA_CONTRIBS_DIRS= kuromoji \
phonetic \
smartcn \
stempel
.if ${PORT_OPTIONS:MCONTRIB}
.for f in ${EXTRA_CONTRIBS_BASE} ${CONTRIBS} ${EXTRA_CONTRIBS_DIRS}
PLIST_FILES+=%%JAVAJARDIR%%/${PORTNAME}-${f}-${PORTVERSION}.jar
.endfor
.endif
PORTDOCS= *
PORTEXAMPLES= *
DEMODIR= contrib/demo
do-install:
${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 ${STAGEDIR}${JAVAJARDIR}
. endfor
. for d in ${EXTRA_CONTRIBS_DIRS}
${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 \
${STAGEDIR}${JAVAJARDIR}
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in CHANGES.txt LICENSE.txt NOTICE.txt README.txt
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/${DEMODIR} && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>