Created
April 6, 2016 13:29
-
-
Save hideaki-t/9ab583a1409765069b1de371c10feb7b to your computer and use it in GitHub Desktop.
a fix for icu52 with clang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git source/tools/toolutil/toolutil.cpp source/tools/toolutil/toolutil.cpp | |
index 038f21b..0dbdaae 100644 | |
--- source/tools/toolutil/toolutil.cpp | |
+++ source/tools/toolutil/toolutil.cpp | |
@@ -1,7 +1,7 @@ | |
/* | |
******************************************************************************* | |
* | |
-* Copyright (C) 1999-2013, International Business Machines | |
+* Copyright (C) 1999-2014, International Business Machines | |
* Corporation and others. All Rights Reserved. | |
* | |
******************************************************************************* | |
@@ -18,6 +18,7 @@ | |
* This file contains utility functions for ICU tools like genccode. | |
*/ | |
+#include "unicode/platform.h" | |
#if U_PLATFORM == U_PF_MINGW | |
// *cough* - for struct stat | |
#ifdef __STRICT_ANSI__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Thomas Jost <[email protected]> | |
# Contributor: Andreas Radke <[email protected]> | |
# Contributor: Art Gramlich <[email protected]> | |
pkgname=icu52 | |
_pkgname=icu | |
pkgver=52.1 | |
pkgrel=1 | |
pkgdesc="International Components for Unicode library" | |
arch=(i686 x86_64) | |
url="http://www.icu-project.org/" | |
license=('custom:"icu"') | |
depends=('gcc-libs>=4.7.1-5' 'sh') | |
provides=("$_pkgname==$pkgver") | |
source=(http://download.icu-project.org/files/${_pkgname}4c/${pkgver}/${_pkgname}4c-${pkgver//./_}-src.tgz | |
icu.8198.revert.icu5431.patch | |
icu.clang.float128.patch) | |
md5sums=('9e96ed4c1d99c0d14ac03c140f9f346c' | |
'ebd5470fc969c75e52baf4af94a9ee82' | |
'10eaaee78f06692864afd86a8d19b00d') | |
prepare() { | |
cd icu/source | |
# fix Malayalam encoding https://bugzilla.redhat.com/show_bug.cgi?id=654200 | |
patch -Rp3 -i ${srcdir}/icu.8198.revert.icu5431.patch | |
patch -p1 -i ${srcdir}/icu.clang.float128.patch | |
} | |
build() { | |
cd icu/source | |
./configure --prefix=/usr \ | |
--sysconfdir=/etc \ | |
--mandir=/usr/share/man \ | |
--sbindir=/usr/bin | |
make | |
} | |
package() { | |
cd icu/source | |
make -j1 DESTDIR=${pkgdir} install | |
# Install license | |
install -Dm644 ${srcdir}/icu/license.html ${pkgdir}/usr/share/licenses/${pkgname}/license.html | |
# Only keep versioned libraries | |
cd "$pkgdir/usr" | |
for dir in bin include lib/pkgconfig share/man; do | |
rm -rf $dir | |
done | |
cd lib | |
rm *.so icu/{current,Makefile.inc,pkgdata.inc} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment