Gentoo Archives: gentoo-commits

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