# New ports collection makefile for:	apache-solr
# Date created:		2009-03-15
# Whom:			Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD: ports/textproc/apache-solr/Makefile,v 1.1 2009/03/22 13:47:54 miwi Exp $
#

PORTNAME=	apache-solr
PORTVERSION=	1.3.0
CATEGORIES=	textproc java
MASTER_SITES=	${MASTER_SITE_APACHE:S,%SUBDIR%,lucene/solr/${PORTVERSION},}
EXTRACT_SUFX=	.tgz

MAINTAINER=	gslin@gslin.org
COMMENT=	High performance search server built using Lucene Java

NO_BUILD=	yes
USE_JAVA=	yes
JAVA_VERSION=	1.5+

.include <bsd.port.pre.mk>

do-install:
	${CP} -R ${WRKSRC}/dist/ ${JAVAJARDIR}
.if !defined(NOPORTEXAMPLES)
	${MKDIR} ${EXAMPLESDIR}
	${CP} -R ${WRKSRC}/example/ ${EXAMPLESDIR}
.endif

.include <bsd.port.post.mk>
