Line 0
Link Here
|
|
|
1 |
# Copyright 1999-2018 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
4 |
EAPI=7 |
5 |
|
6 |
inherit autotools multilib-minimal |
7 |
|
8 |
DESCRIPTION="Cross-platform asychronous I/O" |
9 |
HOMEPAGE="https://github.com/libuv/libuv" |
10 |
SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
11 |
|
12 |
LICENSE="BSD BSD-2 ISC MIT" |
13 |
SLOT="0/1" |
14 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
15 |
IUSE="static-libs" |
16 |
RESTRICT="test" |
17 |
|
18 |
DEPEND="sys-devel/libtool" |
19 |
BDEPEND="virtual/pkgconfig[${MULTILIB_USEDEP}]" |
20 |
|
21 |
src_prepare() { |
22 |
default |
23 |
|
24 |
echo "m4_define([UV_EXTRA_AUTOMAKE_FLAGS], [serial-tests])" \ |
25 |
> m4/libuv-extra-automake-flags.m4 || die |
26 |
|
27 |
eautoreconf |
28 |
} |
29 |
|
30 |
multilib_src_configure() { |
31 |
local myeconfargs=( |
32 |
cc_cv_cflags__g=no |
33 |
$(use_enable static-libs static) |
34 |
) |
35 |
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
36 |
} |
37 |
|
38 |
multilib_src_test() { |
39 |
mkdir "${BUILD_DIR}"/test || die |
40 |
cp -pPR "${S}"/test/fixtures "${BUILD_DIR}"/test/fixtures || die |
41 |
default |
42 |
} |
43 |
|
44 |
multilib_src_install_all() { |
45 |
einstalldocs |
46 |
find "${D}" -name '*.la' -delete || die |
47 |
} |