[Frugalware-git] frugalware-current: hamcrest-1.2-1-i686

Miklos Vajna vmiklos at frugalware.org
Tue Aug 24 12:19:44 CEST 2010


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

commit e4654a43b5e4e50c790c5c411618e1bd5927a3bd
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Tue Aug 24 12:15:15 2010 +0200

hamcrest-1.2-1-i686

- version bump

diff --git a/source/devel-extra/hamcrest/FrugalBuild b/source/devel-extra/hamcrest/FrugalBuild
index f2fc258..4fc415e 100644
--- a/source/devel-extra/hamcrest/FrugalBuild
+++ b/source/devel-extra/hamcrest/FrugalBuild
@@ -2,35 +2,29 @@
# Maintainer: Miklos Vajna <vmiklos at frugalware.org>

pkgname=hamcrest
-pkgver=1.1
-pkgrel=2
+pkgver=1.2
+pkgrel=1
pkgdesc="Library of matchers for building test expressions."
url="http://code.google.com/p/hamcrest/"
Finclude java
depends=(${depends[@]} 'jarjar' 'qdox' 'easymock')
+makedepends=(${makedepends[@]} 'openjdk')
groups=('devel-extra')
archs=('i686' 'x86_64')
up2date="Flasttgz $url"
source=(http://hamcrest.googlecode.com/files/hamcrest-$pkgver.tgz)
-sha1sums=('e7c8511e3702545eb50b38e5aa2c3d887d8393ef')
+sha1sums=('236b0e01ed002f5c889eb3152e34677363ea1e83')

build()
{
Fcd
Fjavacleanup
ln -sf /usr/share/java/qdox.jar lib/generator/qdox-1.6.1.jar
-	# hacks for gnu classpath
-	Fsed 'javac ' 'javac source="1.5" ' build.xml
-	Fsed '\.\.\.", Pattern\.LITERAL' '\\\\.\\\\.\\\\."' \
-		hamcrest-generator/src/main/java/org/hamcrest/generator/QDoxFactoryReader.java
-	sed -i -e '/return type.toString();/ s/type.toString()/\0.replaceFirst("class ", "")/' \
-		hamcrest-generator/src/main/java/org/hamcrest/generator/ReflectiveFactoryReader.java
-	sed -i -e '/Pattern.quote/ s/Pattern.quote(\("[^"]*"\|[^)]*\))/"\\\\Q" + \1 + "\\\\E"/' \
-		hamcrest-text/src/main/java/org/hamcrest/text/pattern/internal/ast/Literal.java
Fant bigjar -Dversion=$pkgver
-	for i in all core generator integration library text
+	for i in build/*.jar
do
-		mv build/$pkgname-$i{-$pkgver,}.jar
-		Fjar build/$pkgname-$i.jar
+		short=$(echo $i|sed "s/-$pkgver//")
+		mv $i $short
+		Fjar $short
done
}


More information about the Frugalware-git mailing list