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: Mon, 07 Aug 2017 21:55:24
Message-Id: 1502142896.cf3ebf28d8d512db0060035783672e9f62f6c26e.slyfox@gentoo
1 commit: cf3ebf28d8d512db0060035783672e9f62f6c26e
2 Author: Michael Mair-Keimberger (t1) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Sun Aug 6 15:12:21 2017 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 7 21:54:56 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf3ebf28
7
8 dev-libs/elfutils: Version bump to 0.170
9
10 Closes: https://github.com/gentoo/gentoo/pull/5323
11
12 dev-libs/elfutils/Manifest | 1 +
13 dev-libs/elfutils/elfutils-0.170.ebuild | 64 +++++++++++++++++++++++++++++++++
14 2 files changed, 65 insertions(+)
15
16 diff --git a/dev-libs/elfutils/Manifest b/dev-libs/elfutils/Manifest
17 index 3243f5c574b..ecec6085c5e 100644
18 --- a/dev-libs/elfutils/Manifest
19 +++ b/dev-libs/elfutils/Manifest
20 @@ -2,3 +2,4 @@ DIST elfutils-0.166.tar.bz2 6496225 SHA256 3c056914c8a438b210be0d790463b960fc79d
21 DIST elfutils-0.167.tar.bz2 6456047 SHA256 3f300087c42b6f35591163b48246b4098ce39c4c6f5d55a83023c903c5776553 SHA512 855b27b7b2785265e095a5c28518b9765238bbcdc8aefede11453e9727156b71360a4b0e2634f2c3813d4b632d3be7079b2d952701bf0455a9c2c19f7facdc91 WHIRLPOOL 1eccbdf65e75c36d7e7704e34eb824d8f54aa4d5879c8df174a1121889fd796cd0aaf5e727f07f361da301659f23d7167e5e59e6a039003def0411d0d01a570e
22 DIST elfutils-0.168.tar.bz2 6840399 SHA256 b88d07893ba1373c7dd69a7855974706d05377766568a7d9002706d5de72c276 SHA512 c8f2077ffe6877ad9e9d2f553bf0576361799c601d246f53e1d99a6f7046794c5916e1087b97ad1d1e5f59f9debc20384f864d507ef6c4c75a8e767d15d6eb91 WHIRLPOOL 281e6917ad243c4f28dad48801d43c29b503da0198f1cd882b6e378b9016e0843088185a39909db75295484f28b963b711f68b80dc6cc810b3027a2ea5cce556
23 DIST elfutils-0.169.tar.bz2 8067758 SHA256 9412fac7b30872b738bc1ed1ebcaed54493c26ef9a67887913498c17b10f3bc2 SHA512 0a81a20bb2aff533d035d6b76f1403437b2e11bce390db57e34b8c26e4b9b3150346d83dddcbfbbdc58063f046ca3223508dba35c6ce88e375d201e7a777a8b9 WHIRLPOOL dc4f689b403160272dccb1e306ee3584f6d06156d3318d745bba46f9b4a31a477795223233ffb420b096b1c196aba09492e4ab5803f6150326b48e1045f92e06
24 +DIST elfutils-0.170.tar.bz2 8358001 SHA256 1f844775576b79bdc9f9c717a50058d08620323c1e935458223a12f249c9e066 SHA512 aca0b5e271138eaf86e36505ffb101181207b151e833e6cd7c18986ac50678542a5ecd2250f8dd6923ca497142f197c8b08fd225e4130b16b6203c24013d6d28 WHIRLPOOL ebb3069aa52e49b7e137c722ac490b12393e0c54656d6d7476193eaa4253b48209e62e4babd4819a52cf5a9f3a1a6f56945eb776f014df9cbd841aa392e94823
25
26 diff --git a/dev-libs/elfutils/elfutils-0.170.ebuild b/dev-libs/elfutils/elfutils-0.170.ebuild
27 new file mode 100644
28 index 00000000000..c6b460b456e
29 --- /dev/null
30 +++ b/dev-libs/elfutils/elfutils-0.170.ebuild
31 @@ -0,0 +1,64 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit eutils flag-o-matic multilib-minimal
38 +
39 +DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
40 +HOMEPAGE="http://elfutils.org/"
41 +SRC_URI="https://sourceware.org/elfutils/ftp/${PV}/${P}.tar.bz2"
42 +
43 +LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
46 +IUSE="bzip2 lzma nls static-libs test +threads +utils"
47 +
48 +RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
49 + bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
50 + lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
51 + !dev-libs/libelf"
52 +DEPEND="${RDEPEND}
53 + nls? ( sys-devel/gettext )
54 + >=sys-devel/flex-2.5.4a
55 + sys-devel/m4"
56 +
57 +src_prepare() {
58 + default
59 + epatch "${FILESDIR}"/${PN}-0.118-PaX-support.patch
60 + if use static-libs; then
61 + sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in || die
62 + fi
63 + sed -i 's:-Werror::' */Makefile.in || die
64 +}
65 +
66 +src_configure() {
67 + use test && append-flags -g #407135
68 + multilib-minimal_src_configure
69 +}
70 +
71 +multilib_src_configure() {
72 + ECONF_SOURCE="${S}" econf \
73 + $(use_enable nls) \
74 + $(use_enable threads thread-safety) \
75 + --program-prefix="eu-" \
76 + --with-zlib \
77 + $(use_with bzip2 bzlib) \
78 + $(use_with lzma)
79 +}
80 +
81 +multilib_src_test() {
82 + env LD_LIBRARY_PATH="${BUILD_DIR}/libelf:${BUILD_DIR}/libebl:${BUILD_DIR}/libdw:${BUILD_DIR}/libasm" \
83 + LC_ALL="C" \
84 + emake check
85 +}
86 +
87 +multilib_src_install_all() {
88 + einstalldocs
89 + dodoc NOTES
90 + # These build quick, and are needed for most tests, so don't
91 + # disable their building when the USE flag is disabled.
92 + if ! use utils; then
93 + rm -rf "${ED}"/usr/bin || die
94 + fi
95 +}