From ee61b5340e09390184f3b32c1504dae45a1bd917 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Fri, 21 Nov 2014 09:31:27 +0100 Subject: [PATCH] libuv: update to 1.0.0. --- common/shlibs | 2 +- srcpkgs/libuv/files/{libuv.pc => libuv.pc.in} | 2 +- srcpkgs/libuv/template | 34 ++++++------------- 3 files changed, 12 insertions(+), 26 deletions(-) rename srcpkgs/libuv/files/{libuv.pc => libuv.pc.in} (92%) diff --git a/common/shlibs b/common/shlibs index 44f06329da5..c77bc1234c6 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1617,7 +1617,7 @@ librtlsdr.so.0 librtlsdr-0.5.3_1 libSDL2_mixer-2.0.so.0 SDL2_mixer-2.0.0_1 libnxml.so.0 libnxml-0.18.3_1 libmrss.so.0 libmrss-0.19.2_1 -libuv.so.0.10 libuv-0.10.27_1 +libuv.so.1 libuv-1.0.0_1 libXm.so.2 lesstif-0.95.2_1 libMrm.so.2 lesstif-0.95.2_1 libUil.so.2 lesstif-0.95.2_1 diff --git a/srcpkgs/libuv/files/libuv.pc b/srcpkgs/libuv/files/libuv.pc.in similarity index 92% rename from srcpkgs/libuv/files/libuv.pc rename to srcpkgs/libuv/files/libuv.pc.in index bdae19ac569..cf855b1509d 100644 --- a/srcpkgs/libuv/files/libuv.pc +++ b/srcpkgs/libuv/files/libuv.pc.in @@ -4,7 +4,7 @@ libdir=${exec_prefix}/lib includedir=${prefix}/include Name: libuv -Version: 0.10.27 +Version: %VERSION% Description: multi-platform support library with a focus on asynchronous I/O. Libs: -L${libdir} -luv -lrt -lpthread -lnsl -ldl diff --git a/srcpkgs/libuv/template b/srcpkgs/libuv/template index f0e8c36c45b..dd29094cb39 100644 --- a/srcpkgs/libuv/template +++ b/srcpkgs/libuv/template @@ -1,38 +1,24 @@ # Template build file for 'libuv' pkgname=libuv -version=0.10.29 +version=1.0.0 revision=1 short_desc="Multi-platform support library with a focus on asynchronous I/O" maintainer="Enno Boland " license="BSD/ISC" +build_style="gnu-configure" homepage="http://libuv.org/" distfiles="https://github.com/joyent/${pkgname}/archive/v${version}.tar.gz" -checksum=a778908e1c658138b353fdb4d5f8e330384bd4984e973233e828bdc69dce2718 +checksum=c8e6a31044fc9e19015a2ef78e6be814a7f7ef146788a613c1e10bb158175fd4 +hostmakedepends="automake libtool" -do_build() { - make CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \ - CC="$CC" CXX="$CXX" LD="$LD" AR="$AR" RANLIB="$RANLIB" \ - CPP="$CPP" AS="$AS" OBJDUMP="$OBJDUMP" STRIP="$STRIP" +pre_configure() { + ./autogen.sh + + sed "s:%VERSION:${version}:g" $FILESDIR/libuv.pc.in > libuv.pc } -do_install() { - vinstall LICENSE 644 \ - usr/share/licenses/${pkgname} - vinstall AUTHORS 644 \ - usr/share/doc/${pkgname} - vinstall README.md 644 \ - usr/share/doc/${pkgname} - vinstall include/uv.h 644 usr/include - vinstall include/uv-private/uv-unix.h 644 \ - usr/include/uv-private - vinstall include/uv-private/uv-linux.h 644 \ - usr/include/uv-private - vinstall $FILESDIR/libuv.pc 644 /usr/lib/pkgconfig - - vinstall libuv.a 644 "usr/lib" - vinstall libuv.so 644 "usr/lib" - mv $DESTDIR/usr/lib/libuv.so $DESTDIR/usr/lib/libuv.so.${version%.*} - ln -sr $DESTDIR/usr/lib/libuv.so.${version%.*} $DESTDIR/usr/lib/libuv.so +post_install() { + vinstall libuv.pc 644 /usr/lib/pkgconfig } libuv-devel_package() {