Mathieu Arnold 4a3bebcae1 Add EXAMPLES options to ports that should have one.
Also various fixes related to said option.

PR:		230864
Submitted by:	mat
exp-runs by:	antoine
2018-09-10 13:15:47 +00:00

35 lines
757 B
Makefile

# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$
PORTNAME= apache-solr
PORTVERSION= 3.6.2
CATEGORIES= textproc java
MASTER_SITES= APACHE/lucene/solr/${PORTVERSION}
PKGNAMESUFFIX= 3
MAINTAINER= gaod@hychen.org
COMMENT= High performance search server built using Lucene Java
LICENSE= APACHE20
CONFLICT= apache-solr-4.1.*
JAVA_VERSION= 1.6+
NO_BUILD= yes
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
USE_JAVA= yes
PORTEXAMPLES= *
USES= cpe tar:tgz
CPE_PRODUCT= solr
CPE_VENDOR= apache
NO_ARCH= yes
OPTIONS_DEFINE= EXAMPLES
do-install:
cd ${WRKSRC}/dist && ${COPYTREE_SHARE} . ${STAGEDIR}${JAVAJARDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "-not -empty"
.include <bsd.port.mk>