From 597db32c56965f8ed14ea78765074de414ea6487 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 20 Oct 2014 09:57:53 +0200 Subject: [PATCH] New package: icu-49-49.1.2 --- common/shlibs | 3 ++ srcpkgs/icu-49-devel | 1 + srcpkgs/icu-49-libs | 1 + srcpkgs/icu-49/template | 63 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 68 insertions(+) create mode 120000 srcpkgs/icu-49-devel create mode 120000 srcpkgs/icu-49-libs create mode 100644 srcpkgs/icu-49/template diff --git a/common/shlibs b/common/shlibs index 9b3770a374..28b25b95c7 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1789,3 +1789,6 @@ libgltf-0.0.so.0 libgltf-0.0.2_1 libabw-0.1.so.1 libabw-0.1.0_1 libcmis-0.4.so.4 libcmis-0.4.1_1 libcmis-c-0.4.so.4 libcmis-0.4.1_1 +libicutu.so.49 icu-49-libs-49.1.2_1 +libicuuc.so.49 icu-49-libs-49.1.2_1 +libicui18n.so.49 icu-49-libs-49.1.2_1 diff --git a/srcpkgs/icu-49-devel b/srcpkgs/icu-49-devel new file mode 120000 index 0000000000..f360ec5487 --- /dev/null +++ b/srcpkgs/icu-49-devel @@ -0,0 +1 @@ +icu-49 \ No newline at end of file diff --git a/srcpkgs/icu-49-libs b/srcpkgs/icu-49-libs new file mode 120000 index 0000000000..f360ec5487 --- /dev/null +++ b/srcpkgs/icu-49-libs @@ -0,0 +1 @@ +icu-49 \ No newline at end of file diff --git a/srcpkgs/icu-49/template b/srcpkgs/icu-49/template new file mode 100644 index 0000000000..8cee3a74c2 --- /dev/null +++ b/srcpkgs/icu-49/template @@ -0,0 +1,63 @@ +# Template build file for 'icu-49'. +pkgname=icu-49 +version=49.1.2 +revision=1 +wrksrc=icu +build_wrksrc=source +build_style=gnu-configure +short_desc="Robust and full-featured Unicode services (49.x branch)" +maintainer="Enno Boland " +homepage="http://www.icu-project.org/" +license="ICU License /usr/share/licenses/icu/license.html" +distfiles="http://download.icu-project.org/files/icu4c/${version}/icu4c-${version//./_}-src.tgz" +checksum=cce83cc88a2ff79d65c05426facbf30530bbe13a1cfda04b3ab81b55414cf5a3 +conflicts="icu>=0" + +if [ "$CROSS_BUILD" ]; then + configure_args+=" --with-cross-build=${XBPS_BUILDDIR}/${wrksrc}/host-icu" +fi + +pre_configure() { + if [ "$CROSS_BUILD" ]; then + # Configure and build for host. + mkdir host-build + cd host-build + env CC=gcc LD=ld CXX=g++ AR=ar RANLIB=ranlib \ + AS=as STRIP=strip CFLAGS="-Os" CXXFLAGS="-Os" \ + ../configure --prefix=/ + make ${makejobs} + mkdir -p ${wrksrc}/host-icu/config + cp config/icucross.mk ${wrksrc}/host-icu/config + make DESTDIR=${wrksrc}/host-icu install + mv ${wrksrc}/host-icu/sbin/* ${wrksrc}/host-icu/bin + # libicudata must be linked to libc, otherwise it's soft-float. + # See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653457 + sed -e 's,-nostdlib,,g' -i ${wrksrc}/source/config/mh-linux + fi +} + +post_install() { + vinstall $wrksrc/license.html 644 usr/share/licenses/icu +} + +icu-49-devel_package() { + depends="libstdc++-devel icu-49-libs>=${version}_${revision}" + short_desc+=" - development files" + conflicts="icu-devel>=0" + pkg_install() { + vmove usr/include + vmove usr/lib/icu + vmove usr/lib/pkgconfig + vmove usr/share/icu + vmove usr/bin/icu-config + vmove "usr/share/man/man1/icu-config*" + vmove "usr/lib/*.so" + } +} + +icu-49-libs_package() { + short_desc+=" - shared libs" + pkg_install() { + vmove "usr/lib/*.so.*" + } +}