ports/121537: New port: java/lucene
Gerrit Beine
gerrit.beine at gmx.de
Sun Mar 9 16:10:04 UTC 2008
>Number: 121537
>Category: ports
>Synopsis: New port: java/lucene
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Mar 09 16:10:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Gerrit Beine
>Release: FreeBSD 7.0-RELEASE
>Organization:
Beine Computer
>Environment:
FreeBSD tb.vmware.beine-computer.de 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
New Port: java/lucene
Lucene is a Java full-text search engine. Lucene is not a complete
application, but rather a code library and API that can easily be used
to add search capabilities to applications.
WWW: http://lucene.apache.org/java/
>How-To-Repeat:
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# lucene/
# lucene/Makefile
# lucene/pkg-descr
# lucene/distinfo
#
echo c - lucene/
mkdir -p lucene/ > /dev/null 2>&1
echo x - lucene/Makefile
sed 's/^X//' >lucene/Makefile << 'END-of-lucene/Makefile'
X# New ports collection makefile for: lucene
X# Date created: 02 Jan 2008
X# Whom: Gerrit Beine <gerrit.beine at gmx.de>
X#
X# $FreeBSD: ports/java/lucene/Makefile,v 1.2 2008/02/18 18:27:52 miwi Exp $
X
XPORTNAME= lucene
XPORTVERSION= 2.3.1
XCATEGORIES= java devel
XMASTER_SITES= ${MASTER_SITE_APACHE:S,%SUBDIR%,lucene/java,}
XDISTNAME= lucene-${PORTVERSION}
X
XMAINTAINER= gerrit.beine at gmx.de
XCOMMENT= A full-text search engine for Java
X
XNO_BUILD= yes
XUSE_JAVA= yes
XJAVA_VERSION= 1.5+
X
XOPTIONS= DOCS "Install docs & examples" on
X
XPLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}-core-${PORTVERSION}.jar
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITHOUT_DOCS) || !defined(WITH_DOCS)
XNOPORTDOCS= yes
X.endif
X
X.if !defined(NOPORTDOCS)
XPORTDOCS= *
X.endif
X
XDEMODIR= src/demo/org/apache/lucene/demo
X
Xdo-install:
X @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-core-${PORTVERSION}.jar ${JAVAJARDIR}
X.if !defined(NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/CHANGES.txt ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/NOTICE.txt ${DOCSDIR}
X @${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
X @cd ${WRKSRC}/docs/ \
X && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
X && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
X @${MKDIR} ${EXAMPLESDIR}
X @cd ${WRKSRC}/${DEMODIR} \
X && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; \
X && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
X.endif
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X @${FIND} -s ${WRKSRC}/${DEMODIR} -not -type d \
X | ${SED} -ne 's,^${WRKSRC}/${DEMODIR},${EXAMPLESDIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
X @${FIND} -s -d ${WRKSRC}/${DEMODIR} -type d \
X | ${SED} -ne 's,^${WRKSRC}/${DEMODIR}, at dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
X.endif
X
X.include <bsd.port.post.mk>
END-of-lucene/Makefile
echo x - lucene/pkg-descr
sed 's/^X//' >lucene/pkg-descr << 'END-of-lucene/pkg-descr'
XLucene is a Java full-text search engine. Lucene is not a complete
Xapplication, but rather a code library and API that can easily be used
Xto add search capabilities to applications.
X
XWWW: http://lucene.apache.org/java/
END-of-lucene/pkg-descr
echo x - lucene/distinfo
sed 's/^X//' >lucene/distinfo << 'END-of-lucene/distinfo'
XMD5 (lucene-2.3.1.tar.gz) = 5bf11cc19adb469f272c12590182f50f
XSHA256 (lucene-2.3.1.tar.gz) = 6b5399dcce60ac8cad45a2a840c8e38a37104a72a75ab46505198ff206be6caf
XSIZE (lucene-2.3.1.tar.gz) = 6721058
END-of-lucene/distinfo
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list