Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 224225 Details for
Bug 310147
>=dev-java/lucene-2.9 merge analyzers addition into lucene[analyzers]
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add useflag [analyzers]
lucene-analyzers.diff (text/plain), 3.21 KB, created by
Hanno Zysik (geki)
on 2010-03-19 11:01:01 UTC
(
hide
)
Description:
add useflag [analyzers]
Filename:
MIME Type:
Creator:
Hanno Zysik (geki)
Created:
2010-03-19 11:01:01 UTC
Size:
3.21 KB
patch
obsolete
>--- dev-java/lucene/lucene-2.9.1-r1.ebuild.orig 2010-03-19 11:21:31.000000000 +0100 >+++ dev-java/lucene/lucene-2.9.1-r1.ebuild 2010-03-19 11:47:53.000000000 +0100 >@@ -17,12 +17,12 @@ > LICENSE="Apache-2.0" > SLOT="2.9" > KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" >-IUSE="" >-DEPEND=">=virtual/jdk-1.4 >+IUSE="analyzers" >+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.4" >+RDEPEND=">=virtual/jdk-1.5" > > java_prepare() { > sed -i -e '/-Xmax/ d' common-build.xml >@@ -36,6 +36,12 @@ > ANT_TASKS="ant-nodeps javacc" eant \ > -Djavacc.home=/usr/share/javacc/lib javacc > ANT_TASKS="none" eant -Dversion=${PV} jar-core jar-demo $(use_doc javadocs-core javadocs-demo) >+ >+ if use analyzers; then >+ cd "${S}/contrib/analyzers" || die "analyzers addition not found!" >+ >+ ANT_TASKS="none" eant -Dversion=${PV} compile-core $(use_doc javadocs) >+ fi > } > > src_test() { >@@ -54,4 +60,23 @@ > java-pkg_dohtml -r build/docs/api > fi > use source && java-pkg_dosrc src/java/org >+ >+ if use analyzers; then >+ # build/contrib/analyzers/{common,smartcn}/classes/java/ >+ cd "${S}/build/contrib/analyzers" \ >+ || die "analyzers addition build not found!" >+ >+ # build jar >+ jar cf "${PN}-analyzers.jar" \ >+ -C common/classes/java org/ \ >+ -C smartcn/classes/java org/apache/lucene/analysis/cn/smart/ >+ >+ # install jar >+ java-pkg_dojar "${PN}-analyzers.jar" >+ >+ # FIXME: does calling dosrc twice work?! >+ # package source >+ #use source && java-pkg_dosrc \ >+ # "${S}/contrib/analyzers"/{common,smartcn}/src/java/org >+ fi > } >--- dev-java/lucene/lucene-3.0.0.ebuild.orig 2010-03-19 11:21:42.000000000 +0100 >+++ dev-java/lucene/lucene-3.0.0.ebuild 2010-03-19 11:55:54.000000000 +0100 >@@ -1,4 +1,4 @@ >-# Copyright 1999-2009 Gentoo Foundation >+# 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.1 2009/12/08 18:08:30 ali_bush Exp $ > >@@ -17,7 +17,7 @@ > LICENSE="Apache-2.0" > SLOT="3.0" > KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" >-IUSE="" >+IUSE="analyzers" > DEPEND=">=virtual/jdk-1.5 > dev-java/ant-nodeps:0 > dev-java/javacc:0 >@@ -36,6 +36,12 @@ > ANT_TASKS="ant-nodeps javacc" eant \ > -Djavacc.home=/usr/share/javacc/lib javacc > ANT_TASKS="none" eant -Dversion=${PV} jar-core jar-demo $(use_doc javadocs-core javadocs-demo) >+ >+ if use analyzers; then >+ cd "${S}/contrib/analyzers" || die "analyzers addition not found!" >+ >+ ANT_TASKS="none" eant -Dversion=${PV} compile-core $(use_doc javadocs) >+ fi > } > > src_test() { >@@ -54,4 +60,23 @@ > java-pkg_dohtml -r build/docs/api > fi > use source && java-pkg_dosrc src/java/org >+ >+ if use analyzers; then >+ # build/contrib/analyzers/{common,smartcn}/classes/java/ >+ cd "${S}/build/contrib/analyzers" \ >+ || die "analyzers addition build not found!" >+ >+ # build jar >+ jar cf "${PN}-analyzers.jar" \ >+ -C common/classes/java org/ \ >+ -C smartcn/classes/java org/apache/lucene/analysis/cn/smart/ >+ >+ # install jar >+ java-pkg_dojar "${PN}-analyzers.jar" >+ >+ # FIXME: does calling dosrc twice work?! >+ # package source >+ #use source && java-pkg_dosrc \ >+ # "${S}/contrib/analyzers"/{common,smartcn}/src/java/org >+ fi > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 310147
: 224225