[Midnightbsd-cvs] mports [20506] trunk/textproc: add lucene port based on freebsd port

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Oct 10 16:13:50 EDT 2015


Revision: 20506
          http://svnweb.midnightbsd.org/mports/?rev=20506
Author:   laffer1
Date:     2015-10-10 16:13:50 -0400 (Sat, 10 Oct 2015)
Log Message:
-----------
add lucene port based on freebsd port

Modified Paths:
--------------
    trunk/textproc/Makefile

Added Paths:
-----------
    trunk/textproc/lucene/
    trunk/textproc/lucene/Makefile
    trunk/textproc/lucene/distinfo
    trunk/textproc/lucene/pkg-descr

Modified: trunk/textproc/Makefile
===================================================================
--- trunk/textproc/Makefile	2015-10-10 20:08:45 UTC (rev 20505)
+++ trunk/textproc/Makefile	2015-10-10 20:13:50 UTC (rev 20506)
@@ -70,6 +70,7 @@
 SUBDIR += linux-f10-scim-libs
 SUBDIR += linuxdoc
 SUBDIR += localize
+SUBDIR += lucene
 SUBDIR += makepatch
 SUBDIR += meld
 SUBDIR += openjade

Added: trunk/textproc/lucene/Makefile
===================================================================
--- trunk/textproc/lucene/Makefile	                        (rev 0)
+++ trunk/textproc/lucene/Makefile	2015-10-10 20:13:50 UTC (rev 20506)
@@ -0,0 +1,90 @@
+# Created by: Gerrit Beine <gerrit.beine at gmx.de>
+# $FreeBSD: head/textproc/lucene/Makefile 386312 2015-05-14 10:15:04Z mat $
+# $MidnightBSD$
+
+PORTNAME=	lucene
+PORTVERSION=	3.6.2
+# Be sure to chase textproc/py-lucene
+CATEGORIES=	textproc java devel
+MASTER_SITES=	APACHE/${PORTNAME}/java/${PORTVERSION}
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Full-text search engine for Java
+
+LICENSE=	apache2
+
+CONFLICTS=	lucene4-[0-9].*
+
+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.mport.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>


Property changes on: trunk/textproc/lucene/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/textproc/lucene/distinfo
===================================================================
--- trunk/textproc/lucene/distinfo	                        (rev 0)
+++ trunk/textproc/lucene/distinfo	2015-10-10 20:13:50 UTC (rev 20506)
@@ -0,0 +1,2 @@
+SHA256 (lucene-3.6.2.tgz) = 957cb888941e140fdfed5549abe96789872e7a393c9c107959cf0b31c081cedd
+SIZE (lucene-3.6.2.tgz) = 48795023


Property changes on: trunk/textproc/lucene/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/textproc/lucene/pkg-descr
===================================================================
--- trunk/textproc/lucene/pkg-descr	                        (rev 0)
+++ trunk/textproc/lucene/pkg-descr	2015-10-10 20:13:50 UTC (rev 20506)
@@ -0,0 +1,5 @@
+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/


Property changes on: trunk/textproc/lucene/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list