icu: repair cross build and misc tweaks.
This commit is contained in:
parent
af8b5befde
commit
4a91e834fa
1 changed files with 9 additions and 33 deletions
|
@ -2,32 +2,20 @@
|
||||||
pkgname=icu
|
pkgname=icu
|
||||||
version=49.1.2
|
version=49.1.2
|
||||||
_distver="49_1_2"
|
_distver="49_1_2"
|
||||||
revision=3
|
revision=4
|
||||||
wrksrc=icu
|
wrksrc=icu
|
||||||
build_wrksrc=source
|
build_wrksrc=source
|
||||||
|
build_style=gnu-configure
|
||||||
short_desc="Robust and full-featured Unicode services"
|
short_desc="Robust and full-featured Unicode services"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.icu-project.org/"
|
homepage="http://www.icu-project.org/"
|
||||||
license="ICU License /usr/share/licenses/icu/license.html"
|
license="ICU License /usr/share/licenses/icu/license.html"
|
||||||
distfiles="http://download.icu-project.org/files/icu4c/${version}/icu4c-${_distver}-src.tgz"
|
distfiles="http://download.icu-project.org/files/icu4c/${version}/icu4c-${_distver}-src.tgz"
|
||||||
checksum=cce83cc88a2ff79d65c05426facbf30530bbe13a1cfda04b3ab81b55414cf5a3
|
checksum=cce83cc88a2ff79d65c05426facbf30530bbe13a1cfda04b3ab81b55414cf5a3
|
||||||
long_desc="
|
|
||||||
The International Components for Unicode(ICU) is a C and C++ library that
|
|
||||||
provides robust and full-featured Unicode support on a wide variety of
|
|
||||||
platforms. The library provides:
|
|
||||||
|
|
||||||
- Calendar support
|
if [ "$CROSS_BUILD" ]; then
|
||||||
- Character set conversions
|
configure_args+=" --with-cross-build=${XBPS_BUILDDIR}/${wrksrc}/host-icu"
|
||||||
- Collation (language-sensitive)
|
fi
|
||||||
- Date and time formatting
|
|
||||||
- Locales (140+ supported)
|
|
||||||
- Message catalogs (resources)
|
|
||||||
- Message formatting
|
|
||||||
- Normalization
|
|
||||||
- Number and currency formatting
|
|
||||||
- Time zones
|
|
||||||
- Transliteration
|
|
||||||
- Word, line and sentence breaks"
|
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
@ -45,25 +33,12 @@ pre_configure() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_configure() {
|
post_install() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
_cross_args="--with-cross-build=${wrksrc}/host-icu"
|
|
||||||
fi
|
|
||||||
./configure ${configure_args} ${_cross_args}
|
|
||||||
}
|
|
||||||
|
|
||||||
do_build() {
|
|
||||||
make ${makejobs}
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
make DESTDIR=${DESTDIR} install
|
|
||||||
|
|
||||||
vinstall $wrksrc/license.html 644 usr/share/licenses/icu
|
vinstall $wrksrc/license.html 644 usr/share/licenses/icu
|
||||||
}
|
}
|
||||||
|
|
||||||
icu-devel_package() {
|
icu-devel_package() {
|
||||||
depends="libstdc++-devel icu>=$version"
|
depends="libstdc++-devel icu-libs>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
|
@ -72,12 +47,13 @@ icu-devel_package() {
|
||||||
vmove usr/share/icu
|
vmove usr/share/icu
|
||||||
vmove usr/bin/icu-config
|
vmove usr/bin/icu-config
|
||||||
vmove "usr/share/man/man1/icu-config*"
|
vmove "usr/share/man/man1/icu-config*"
|
||||||
|
vmove "usr/lib/*.so"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
icu-libs_package() {
|
icu-libs_package() {
|
||||||
short_desc+=" - shared libs"
|
short_desc+=" - shared libs"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/lib/*.so*"
|
vmove "usr/lib/*.so.*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue