summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-01-12 09:04:33 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-01-12 09:04:33 +0000
commitf74979b737c8642266ab552a963f3fbed1ada521 (patch)
treed5d2d789545a3195cd0af4267008ba6d9622b0a4
parent1a52bb0ba7ae9678c88188a55937862614078c15 (diff)
downloadaports-f74979b737c8642266ab552a963f3fbed1ada521.tar.bz2
aports-f74979b737c8642266ab552a963f3fbed1ada521.tar.xz
main/vala: downgrade to 0.10.2
-rw-r--r--main/vala/APKBUILD28
-rw-r--r--main/vala/version.patch17
2 files changed, 37 insertions, 8 deletions
diff --git a/main/vala/APKBUILD b/main/vala/APKBUILD
index 2da2535d9..3dd451b43 100644
--- a/main/vala/APKBUILD
+++ b/main/vala/APKBUILD
@@ -1,27 +1,39 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vala
-pkgver=0.11.2
+pkgver=0.10.2
pkgrel=0
pkgdesc="Compiler for the GObject type system"
url="http://live.gnome.org/Vala"
-arch="x86 x86_64"
+arch="all"
license="LGPL"
subpackages="$pkgname-doc"
depends="glib-dev"
makedepends="libxslt-dev bash glib-dev flex bison"
-source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.gz"
+source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.gz
+ version.patch"
-build ()
-{
- cd "$srcdir/$pkgname-$pkgver"
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg "$i"; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
./configure --prefix=/usr \
--enable-vapigen || return 1
make || return 1
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
-md5sums="e16c398ef1af503dea64b6cd59142bb2 vala-0.11.2.tar.gz"
+md5sums="7310764a2ffe611cb03c0bd627d14bcf vala-0.10.2.tar.gz
+99524c2de7df37c95f314709a041ac65 version.patch"
diff --git a/main/vala/version.patch b/main/vala/version.patch
new file mode 100644
index 000000000..27c6799c9
--- /dev/null
+++ b/main/vala/version.patch
@@ -0,0 +1,17 @@
+diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen
+index 0fa6faa..596203a 100755
+--- a/build-aux/git-version-gen
++++ b/build-aux/git-version-gen
+@@ -129,7 +129,11 @@ v=`echo "$v" |sed 's/^v//'`
+ # Don't declare a version "dirty" merely because a time stamp has changed.
+ git status > /dev/null 2>&1
+
+-dirty=`sh -c 'git diff-index --name-only HEAD' 2>/dev/null` || dirty=
++if [ -d .git ]; then
++ dirty=`sh -c 'git diff-index --name-only HEAD' 2>/dev/null` || dirty=
++else
++ dirty=
++fi
+ case "$dirty" in
+ '') ;;
+ *) # Append the suffix only if there isn't one already.