Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/
Date: Sun, 28 May 2017 21:14:14
Message-Id: 1496006036.84c99b77da0b644d8087cf9a76d2c163cb094878.mrueg@gentoo
1 commit: 84c99b77da0b644d8087cf9a76d2c163cb094878
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 28 21:13:56 2017 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Sun May 28 21:13:56 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84c99b77
7
8 dev-libs/elfutils: Fix incorrect logic for IUSE=utils
9
10 Gentoo-Bug: #619658
11
12 Package-Manager: Portage-2.3.6, Repoman-2.3.1
13
14 dev-libs/elfutils/elfutils-0.169-r1.ebuild | 64 ++++++++++++++++++++++++++++++
15 1 file changed, 64 insertions(+)
16
17 diff --git a/dev-libs/elfutils/elfutils-0.169-r1.ebuild b/dev-libs/elfutils/elfutils-0.169-r1.ebuild
18 new file mode 100644
19 index 00000000000..47328a2ac4f
20 --- /dev/null
21 +++ b/dev-libs/elfutils/elfutils-0.169-r1.ebuild
22 @@ -0,0 +1,64 @@
23 +# Copyright 1999-2017 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +
28 +inherit eutils flag-o-matic multilib-minimal
29 +
30 +DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
31 +HOMEPAGE="http://elfutils.org/"
32 +SRC_URI="https://sourceware.org/elfutils/ftp/${PV}/${P}.tar.bz2"
33 +
34 +LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
35 +SLOT="0"
36 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
37 +IUSE="bzip2 lzma nls static-libs test +threads +utils"
38 +
39 +RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
40 + bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
41 + lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
42 + !dev-libs/libelf"
43 +DEPEND="${RDEPEND}
44 + nls? ( sys-devel/gettext )
45 + >=sys-devel/flex-2.5.4a
46 + sys-devel/m4"
47 +
48 +src_prepare() {
49 + default
50 + epatch "${FILESDIR}"/${PN}-0.118-PaX-support.patch
51 + if use static-libs; then
52 + sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in || die
53 + fi
54 + sed -i 's:-Werror::' */Makefile.in || die
55 +}
56 +
57 +src_configure() {
58 + use test && append-flags -g #407135
59 + multilib-minimal_src_configure
60 +}
61 +
62 +multilib_src_configure() {
63 + ECONF_SOURCE="${S}" econf \
64 + $(use_enable nls) \
65 + $(use_enable threads thread-safety) \
66 + --program-prefix="eu-" \
67 + --with-zlib \
68 + $(use_with bzip2 bzlib) \
69 + $(use_with lzma)
70 +}
71 +
72 +multilib_src_test() {
73 + env LD_LIBRARY_PATH="${BUILD_DIR}/libelf:${BUILD_DIR}/libebl:${BUILD_DIR}/libdw:${BUILD_DIR}/libasm" \
74 + LC_ALL="C" \
75 + emake check
76 +}
77 +
78 +multilib_src_install_all() {
79 + einstalldocs
80 + dodoc NOTES
81 + # These build quick, and are needed for most tests, so don't
82 + # disable their building when the USE flag is disabled.
83 + if ! use utils; then
84 + rm -rf "${ED}"/usr/bin || die
85 + fi
86 +}