Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI="4" |
5 |
EAPI="4" |
6 |
|
6 |
|
7 |
inherit eutils flag-o-matic |
7 |
inherit eutils flag-o-matic multilib-minimal |
8 |
|
8 |
|
9 |
DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)" |
9 |
DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)" |
10 |
HOMEPAGE="https://fedorahosted.org/elfutils/" |
10 |
HOMEPAGE="https://fedorahosted.org/elfutils/" |
Lines 20-28
Link Here
|
20 |
# This pkg does not actually seem to compile currently in a uClibc |
20 |
# This pkg does not actually seem to compile currently in a uClibc |
21 |
# environment (xrealloc errs), but we need to ensure that glibc never |
21 |
# environment (xrealloc errs), but we need to ensure that glibc never |
22 |
# gets pulled in as a dep since this package does not respect virtual/libc |
22 |
# gets pulled in as a dep since this package does not respect virtual/libc |
23 |
RDEPEND="zlib? ( >=sys-libs/zlib-1.2.2.3 ) |
23 |
RDEPEND="zlib? ( >=sys-libs/zlib-1.2.2.3[${MULTILIB_USEDEP}] ) |
24 |
bzip2? ( app-arch/bzip2 ) |
24 |
bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] ) |
25 |
lzma? ( app-arch/xz-utils ) |
25 |
lzma? ( app-arch/xz-utils[${MULTILIB_USEDEP}] ) |
26 |
!dev-libs/libelf" |
26 |
!dev-libs/libelf" |
27 |
DEPEND="${RDEPEND} |
27 |
DEPEND="${RDEPEND} |
28 |
nls? ( sys-devel/gettext ) |
28 |
nls? ( sys-devel/gettext ) |
Lines 41-47
Link Here
|
41 |
|
41 |
|
42 |
src_configure() { |
42 |
src_configure() { |
43 |
use test && append-flags -g #407135 |
43 |
use test && append-flags -g #407135 |
44 |
econf \ |
44 |
multilib-minimal_src_configure |
|
|
45 |
} |
46 |
|
47 |
multilib_src_configure() { |
48 |
ECONF_SOURCE="${S}" econf \ |
45 |
--disable-werror \ |
49 |
--disable-werror \ |
46 |
$(use_enable nls) \ |
50 |
$(use_enable nls) \ |
47 |
$(use_enable threads thread-safety) \ |
51 |
$(use_enable threads thread-safety) \ |
Lines 51-64
Link Here
|
51 |
$(use_with lzma) |
55 |
$(use_with lzma) |
52 |
} |
56 |
} |
53 |
|
57 |
|
54 |
src_test() { |
58 |
multilib_src_test() { |
55 |
env LD_LIBRARY_PATH="${S}/libelf:${S}/libebl:${S}/libdw:${S}/libasm" \ |
59 |
env LD_LIBRARY_PATH="${S}/libelf:${S}/libebl:${S}/libdw:${S}/libasm" \ |
56 |
LC_ALL="C" \ |
60 |
LC_ALL="C" \ |
57 |
emake check || die |
61 |
emake check || die |
58 |
} |
62 |
} |
59 |
|
63 |
|
60 |
src_install() { |
64 |
multilib_src_install_all() { |
61 |
default |
|
|
62 |
dodoc NOTES |
65 |
dodoc NOTES |
63 |
# These build quick, and are needed for most tests, so don't |
66 |
# These build quick, and are needed for most tests, so don't |
64 |
# disable their building when the USE flag is disabled. |
67 |
# disable their building when the USE flag is disabled. |