diff options
author | Ruben Bressler <ruben.bressler@cerpamid.co.cu> | 2010-06-03 17:43:42 -0400 |
---|---|---|
committer | Ruben Bressler <ruben.bressler@cerpamid.co.cu> | 2010-06-03 17:43:42 -0400 |
commit | 5316399319d66d5258beb17e4d25f901498038df (patch) | |
tree | 2b5cf5db1379132431bbfd31b92d8b7a4b099c22 /dev-java | |
parent | 20100514 - Cambio automático (diff) | |
download | rubenqba-5316399319d66d5258beb17e4d25f901498038df.tar.gz rubenqba-5316399319d66d5258beb17e4d25f901498038df.tar.bz2 rubenqba-5316399319d66d5258beb17e4d25f901498038df.zip |
Adicionando soporte para contrib en Lucene-3.0.0
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/lucene/Manifest | 6 | ||||
-rw-r--r-- | dev-java/lucene/files/disable-contrib.patch | 45 | ||||
-rw-r--r-- | dev-java/lucene/files/lucene-manifest | 10 | ||||
-rw-r--r-- | dev-java/lucene/lucene-3.0.0-r1.ebuild | 60 | ||||
-rw-r--r-- | dev-java/lucene/metadata.xml | 9 |
5 files changed, 130 insertions, 0 deletions
diff --git a/dev-java/lucene/Manifest b/dev-java/lucene/Manifest new file mode 100644 index 0000000..7353381 --- /dev/null +++ b/dev-java/lucene/Manifest @@ -0,0 +1,6 @@ +AUX disable-contrib.patch 2457 RMD160 a84c94094fab55c8b3fbf7c66f81518a2b9c0a37 SHA1 259d8abacdd8f1c2de2fb438e8ad5d38443169da SHA256 ddaa9d857e09ec02f64acdfb94c2eeff2b9ce061833b13822d2ecfac3bd8290f +AUX lucene-manifest 505 RMD160 82ee9900dee2f4ccee3d8b7b19b94c613326e473 SHA1 3cfc8148961f45eaa194e97948bd9c726c946247 SHA256 47d26e144e15ac7d675547630f8d4d4399244eaaf1fb84429a7f82e806463218 +DIST lucene-3.0.0-src.tar.gz 12421467 RMD160 ff42a7084f7f3fc2e0bdd0f14c6fd96d4ef8dc03 SHA1 45e6c44c15eaaf866dffc81379279036eaec971f SHA256 661fc4eec33c2c509c1a53896da469304a51c5cc5ce51313d9f77f385c63346a +EBUILD lucene-3.0.0-r1.ebuild 2082 RMD160 db85619dbfb9b70a2d317db565148cba5ec4ca40 SHA1 ddca0e106d19c09be5e668168823368b460fa471 SHA256 a649a31bf63559753b2f6f5c5a892a7910275ea89a8b0c77926b183defb98318 +MISC lucene-3.0.0-r1.ebuild~ 2069 RMD160 e96c31b90ef74afcb0a5bcaa080f4b0cc79b34b4 SHA1 035e0feb33e38781acceadaee6d722b4a2d81e8f SHA256 1f0719a347a60ce8fa222860fdee485414fda40334c81c1bb7bc077216e68064 +MISC metadata.xml 297 RMD160 db893ff54d9d4a95ba35d1613fc5b42804cfa15d SHA1 4e7eb21fcd2227280b7b8a8ba4f33a2475375b24 SHA256 f7d9dd8dbbcda76d9b8d81bd2b65b2463b428563534a17a7a1185f82ece14abe diff --git a/dev-java/lucene/files/disable-contrib.patch b/dev-java/lucene/files/disable-contrib.patch new file mode 100644 index 0000000..550564f --- /dev/null +++ b/dev-java/lucene/files/disable-contrib.patch @@ -0,0 +1,45 @@ +diff -u -r lucene-1.9.1-orig/build.xml lucene-1.9.1/build.xml +--- lucene-1.9.1-orig/build.xml 2006-02-27 21:12:42.000000000 +0100 ++++ lucene-1.9.1/build.xml 2008-01-16 13:28:50.000000000 +0100 +@@ -368,41 +368,10 @@ + <packageset dir="src/java"/> + + <packageset dir="src/demo"/> +- +- <packageset dir="contrib/analyzers/src/java"/> +- <packageset dir="contrib/ant/src/java"/> +- <packageset dir="contrib/highlighter/src/java"/> +- <packageset dir="contrib/lucli/src/java"/> +- <packageset dir="contrib/memory/src/java"/> +- <packageset dir="contrib/miscellaneous/src/java"/> +- <packageset dir="contrib/similarity/src/java"/> +- <packageset dir="contrib/regex/src/java"/> +- <packageset dir="contrib/snowball/src/java"/> +- <packageset dir="contrib/spellchecker/src/java"/> +- <packageset dir="contrib/surround/src/java"/> +- <packageset dir="contrib/swing/src/java"/> +- <packageset dir="contrib/wordnet/src/java"/> + + <group title="Core" packages="org.apache.*:org.apache.lucene.analysis:org.apache.lucene.analysis.standard*"/> + + <group title="Demo" packages="org.apache.lucene.demo*"/> +- +- <group title="contrib: Analysis" packages="org.apache.lucene.analysis.*"/> +- <group title="contrib: Ant" packages="org.apache.lucene.ant*"/> +- +- <group title="contrib: Highlighter" packages="org.apache.lucene.search.highlight*"/> +- <group title="contrib: Lucli" packages="lucli*"/> +- <group title="contrib: Memory" packages="org.apache.lucene.index.memory*"/> +- <group title="contrib: Miscellaneous " packages="org.apache.lucene.misc*:org.apache.lucene.queryParser.analyzing*:org.apache.lucene.queryParser.precedence*"/> +- <group title="contrib: MoreLikeThis" packages="org.apache.lucene.search.similar*"/> +- <group title="contrib: RegEx" packages="org.apache.lucene.search.regex*:org.apache.regexp*"/> +- <group title="contrib: Snowball" packages="org.apache.lucene.analysis.snowball*:net.sf.snowball*"/> +- <group title="contrib: SpellChecker" packages="org.apache.lucene.search.spell*"/> +- <group title="contrib: Surround Parser" packages="org.apache.lucene.queryParser.surround*"/> +- <group title="contrib: Swing" packages="org.apache.lucene.swing*"/> +- <group title="contrib: WordNet" packages="org.apache.lucene.wordnet*"/> +- +- + </javadoc> + </sequential> + </macrodef> diff --git a/dev-java/lucene/files/lucene-manifest b/dev-java/lucene/files/lucene-manifest new file mode 100644 index 0000000..3a742df --- /dev/null +++ b/dev-java/lucene/files/lucene-manifest @@ -0,0 +1,10 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-Vendor: %vendorName +Bundle-Localization: plugin +Export-Package: org.apache.lucene,org.apache.lucene.analysis,org.apache.lucene.analysis.de,org.apache.lucene.analysis.standard, + org.apache.lucene.document,org.apache.lucene.index,org.apache.lucene.queryParser, org.apache.lucene.search,org.apache.lucene.search.spans, + org.apache.lucene.store,org.apache.lucene.util +Bundle-SymbolicName: org.apache.lucene +Bundle-Version: 2.2.0 diff --git a/dev-java/lucene/lucene-3.0.0-r1.ebuild b/dev-java/lucene/lucene-3.0.0-r1.ebuild new file mode 100644 index 0000000..948eee2 --- /dev/null +++ b/dev-java/lucene/lucene-3.0.0-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/lucene/lucene-3.0.0.ebuild,v 1.4 2010/06/01 14:49:21 josejx Exp $ + +EAPI="2" +JAVA_PKG_IUSE="doc source contrib test" +JAVA_PKG_BSFIX_ALL="no" +JAVA_PKG_BSFIX_NAME="build.xml common-build.xml" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="High-performance, full-featured text search engine written entirely in Java" +HOMEPAGE="http://jakarta.apache.org/lucene" +# when doing version bump, SRC_URI of the previous version should most probably +# be changed to java/archive/ ! +SRC_URI="mirror://apache/lucene/java/${P}-src.tar.gz" +LICENSE="Apache-2.0" +SLOT="3.0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" +DEPEND=">=virtual/jdk-1.5 + dev-java/ant-nodeps:0 + dev-java/javacc:0 + test? ( dev-java/ant-junit =dev-java/junit-3* )" +RDEPEND=">=virtual/jdk-1.5" + +java_prepare() { + sed -i -e '/-Xmax/ d' common-build.xml + rm -rf contrib/{db,ant} +} + +src_compile() { + # regenerate javacc files just because we can + # put javacc.jar on ant's classpath here even when <javacc> task + # doesn't use it - it's to fool the <available> test, first time + # it's useful not to have ignoresystemclasses=true... + ANT_TASKS="ant-nodeps javacc" eant -Djavacc.home=/usr/share/javacc/lib javacc + use contrib && BUILD="build-contrib" + use contrib && DOCBUILD="javadoc-contrib" + ANT_TASKS="none" eant -Dversion=${PV} jar-core jar-demo ${BUILD} $(use_doc javadocs-core javadocs-demo ${DOCBUILD}) +# use contrib && ANT_TASKS="none" eant -Dbuild.sysclasspath=first -Dversion=${PV} build-contrib +} + +src_test() { + java-ant_rewrite-classpath common-build.xml + EANT_GENTOO_CLASSPATH="junit ant-core" ANT_TASKS="ant-junit" eant test-core +} + +src_install() { + dodoc CHANGES.txt README.txt || die + java-pkg_newjar build/${PN}-core-${PV}.jar ${PN}-core.jar + java-pkg_newjar build/${PN}-demos-${PV}.jar ${PN}-demos.jar + + if use doc; then + dohtml -r docs/* || die + # for the core and demo subdirs + java-pkg_dohtml -r build/docs/api + fi + use source && java-pkg_dosrc src/java/org +} diff --git a/dev-java/lucene/metadata.xml b/dev-java/lucene/metadata.xml new file mode 100644 index 0000000..ec088dd --- /dev/null +++ b/dev-java/lucene/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +<maintainer> + <email>ruben.bressler@cerpamid.co.cu</email> + <description>Maintainer for actual Lucene issues.</description> +</maintainer> +</pkgmetadata> |