diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-09-03 14:04:51 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-09-03 14:04:51 +0000 |
commit | c240bcc69839d096a399fa3530d44a457ca75f67 (patch) | |
tree | 431beea1381da12388223c7863bf94e79613a49d /main/icu/APKBUILD | |
parent | d6caf4e73440c391d609a85cea7d554f679b4756 (diff) | |
download | aports-c240bcc69839d096a399fa3530d44a457ca75f67.tar.bz2 aports-c240bcc69839d096a399fa3530d44a457ca75f67.tar.xz |
main/icu: fix building with ccache/distcc and bump so we get new version
Diffstat (limited to 'main/icu/APKBUILD')
-rw-r--r-- | main/icu/APKBUILD | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/main/icu/APKBUILD b/main/icu/APKBUILD index a2764b8775..8aae187347 100644 --- a/main/icu/APKBUILD +++ b/main/icu/APKBUILD @@ -2,17 +2,38 @@ pkgname=icu pkgver=4.4.1 _ver=4_4_1 -pkgrel=2 +pkgrel=3 pkgdesc="International Components for Unicode library" url="http://www.icu-project.org/" license="custom:icu" subpackages="$pkgname-dev $pkgname-doc" depends= makedepends= -source="http://download.icu-project.org/files/icu4c/${pkgver}/${pkgname}4c-$_ver-src.tgz" +source="http://download.icu-project.org/files/icu4c/${pkgver}/${pkgname}4c-$_ver-src.tgz + icu-ccache.patch + " _builddir="$srcdir"/icu/source +prepare() { + cd "$_builddir" + local x + # https://bugs.icu-project.org/trac/ticket/6102 + for x in ARFLAGS CFLAGS CPPFLAGS CXXFLAGS FFLAGS LDFLAGS; do + sed -i -e "/^${x} =.*/s:@${x}@::" "config/Makefile.inc.in" \ + || return 1 + done + + for i in $source; do + case "$i" in + *.patch) + msg "Applying $i" + patch -p1 -i "$srcdir"/$i || return 1 + ;; + esac + done +} + build() { cd "$_builddir" ./configure --prefix=/usr \ @@ -28,4 +49,5 @@ package() { install -Dm644 "$srcdir"/icu/license.html \ "$pkgdir"/usr/share/licenses/icu/license.html } -md5sums="b6bc0a1153540b2088f8b03e0ba625d3 icu4c-4_4_1-src.tgz" +md5sums="b6bc0a1153540b2088f8b03e0ba625d3 icu4c-4_4_1-src.tgz +e729eb08687b042e40df572932cbf9ce icu-ccache.patch" |