Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=860ed4546ab1e65fcc22437eb8c9ddc1142b5c2c

commit 860ed4546ab1e65fcc22437eb8c9ddc1142b5c2c
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Sun Aug 8 23:12:39 2010 +0200

lucene-2.9.3-1-i686

- downgrade to 2.x, openoffice.org does not support 3.x yet
- add missing analyzers jar

diff --git a/source/devel-extra/lucene/Fix_Build.diff 
b/source/devel-extra/lucene/Fix_Build.diff
index ba8d2fd..172db76 100644
--- a/source/devel-extra/lucene/Fix_Build.diff
+++ b/source/devel-extra/lucene/Fix_Build.diff
@@ -1,11 +1,12 @@
---- lucene-3.0.0/common-build.xml~     2009-11-16 14:00:08.000000000 +0000
-+++ lucene-3.0.0/common-build.xml      2009-12-04 15:20:04.000000000 +0000
-@@ -555,8 +555,6 @@
-         source="@{javac.source}"
-         target="@{javac.target}">
+--- lucene-2.4.0old/common-build.xml   2008-10-05 18:39:20.000000000 +0200
++++ lucene-2.4.0/common-build.xml      2008-10-09 20:14:21.000000000 +0200
+@@ -480,8 +480,7 @@
+         source="${javac.source}"
+         target="${javac.target}">
<nested/>
-        <compilerarg line="-Xmaxwarns 10000000"/>
-        <compilerarg line="-Xmaxerrs 10000000"/>
-         <!-- for generics in Java 1.5: -->
-         <!--<compilerarg line="-Xlint:unchecked"/>-->
++
</javac>
+     </sequential>
+   </macrodef>
diff --git a/source/devel-extra/lucene/FrugalBuild 
b/source/devel-extra/lucene/FrugalBuild
index 609c0de..a346e38 100644
--- a/source/devel-extra/lucene/FrugalBuild
+++ b/source/devel-extra/lucene/FrugalBuild
@@ -1,24 +1,34 @@
-# Compiling Time: 0.20 SBU
+# Compiling Time: 0.96 SBU
# Maintainer: bouleetbil <bouleet...@frogdev.info>

pkgname=lucene
-pkgver=3.0.2
+pkgver=2.9.3
pkgrel=1
pkgdesc="High-performance, full-featured text search engine written entirely in 
Java"
url="http://jakarta.apache.org/$pkgname/";
Finclude java
+makedepends=(${makedepen...@]} 'junit')
groups=('devel-extra')
archs=('i686' 'x86_64')
+_F_archive_grepv="3\." # 3.x does not work with openoffice.org yet
up2date="Flastarchive http://www.apache.org/dist/$pkgname/java/ -src.tar.gz"
-source=(http://www.apache.org/dist/$pkgname/java/$pkgname-$pkgver-src.zip 
Fix_Build.diff)
-sha1sums=('42f050ba53aae898fba855bfa9c80adc89e63f78' \
-          '12853ed1a9db658fe9b9487bf4277b38d43e63de')
+source=(http://www.apache.org/dist/$pkgname/java/$pkgname-$pkgver-src.tar.gz 
Fix_Build.diff)
+sha1sums=('2cdfe2cc54557c127544a0996f4cd49266d68636' \
+          '64f2bd8d7596232f8d28d6b547b47db2dcc5c37d')
+options=('force')

build() {
Fcd
Fpatchall
Fjavacleanup
-       Fant
-       mv build/${pkgname}-core-$pkgver-dev.jar ${pkgname}-core.jar || Fdie
-       Fjar ${pkgname}-core.jar
+       # we don't need contrib modules (except analyzers)
+       find contrib/* -maxdepth 0 -type d ! -name analyzers -exec rm -rfv {} \;
+       ln -s /usr/share/java/junit.jar lib/junit-3.8.2.jar
+       Fant jar-core build-contrib
+       for i in $(find build -name *.jar)
+       do
+               nover=$(echo $i|sed "s/-$pkgver-dev//")
+               mv $i $nover
+               Fjar $nover
+       done
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to