1 |
commit: 80eec66e4cb41c01f90716bcaa503c55fb88a6f4 |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Wed Apr 21 12:12:02 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 2 22:58:49 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80eec66e |
7 |
|
8 |
dev-libs/libuv: Sync live ebuild |
9 |
|
10 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
dev-libs/libuv/libuv-9999.ebuild | 27 ++++++++++++++++++--------- |
14 |
1 file changed, 18 insertions(+), 9 deletions(-) |
15 |
|
16 |
diff --git a/dev-libs/libuv/libuv-9999.ebuild b/dev-libs/libuv/libuv-9999.ebuild |
17 |
index 6d626d10b33..f1d10ed56e9 100644 |
18 |
--- a/dev-libs/libuv/libuv-9999.ebuild |
19 |
+++ b/dev-libs/libuv/libuv-9999.ebuild |
20 |
@@ -1,18 +1,23 @@ |
21 |
-# Copyright 1999-2020 Gentoo Authors |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
EAPI=7 |
26 |
-inherit autotools git-r3 multilib-minimal |
27 |
+ |
28 |
+inherit autotools multilib-minimal |
29 |
|
30 |
DESCRIPTION="Cross-platform asychronous I/O" |
31 |
HOMEPAGE="https://github.com/libuv/libuv" |
32 |
-EGIT_REPO_URI="https://github.com/libuv/libuv" |
33 |
+ |
34 |
+if [[ ${PV} = 9999* ]]; then |
35 |
+ EGIT_REPO_URI="https://github.com/libuv/libuv.git" |
36 |
+ inherit git-r3 |
37 |
+else |
38 |
+ SRC_URI="https://github.com/libuv/libuv/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
39 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
40 |
+fi |
41 |
|
42 |
LICENSE="BSD BSD-2 ISC MIT" |
43 |
SLOT="0/1" |
44 |
-KEYWORDS="" |
45 |
-IUSE="static-libs" |
46 |
-RESTRICT="test" |
47 |
|
48 |
BDEPEND=" |
49 |
sys-devel/libtool |
50 |
@@ -25,25 +30,29 @@ src_prepare() { |
51 |
echo "m4_define([UV_EXTRA_AUTOMAKE_FLAGS], [serial-tests])" \ |
52 |
> m4/libuv-extra-automake-flags.m4 || die |
53 |
|
54 |
+ if [[ ${CHOST} == *-darwin* && ${CHOST##*darwin} -le 9 ]] ; then |
55 |
+ eapply "${FILESDIR}"/${PN}-1.41.0-darwin.patch |
56 |
+ fi |
57 |
+ |
58 |
# upstream fails to ship a configure script |
59 |
eautoreconf |
60 |
} |
61 |
|
62 |
multilib_src_configure() { |
63 |
local myeconfargs=( |
64 |
+ --disable-static |
65 |
cc_cv_cflags__g=no |
66 |
- $(use_enable static-libs static) |
67 |
) |
68 |
+ |
69 |
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
70 |
} |
71 |
|
72 |
multilib_src_test() { |
73 |
- mkdir "${BUILD_DIR}"/test || die |
74 |
cp -pPR "${S}"/test/fixtures "${BUILD_DIR}"/test/fixtures || die |
75 |
default |
76 |
} |
77 |
|
78 |
multilib_src_install_all() { |
79 |
einstalldocs |
80 |
- find "${D}" -name '*.la' -delete || die |
81 |
+ find "${ED}" -name '*.la' -delete || die |
82 |
} |