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-util/bloaty/
Date: Tue, 28 Mar 2017 23:45:42
Message-Id: 1490744661.87c053bc11ad0b97c987bd2541d1106f6bc2acf5.mrueg@gentoo
1 commit: 87c053bc11ad0b97c987bd2541d1106f6bc2acf5
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 28 23:43:19 2017 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 28 23:44:21 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87c053bc
7
8 dev-util/bloaty: Initial version
9
10 Package-Manager: Portage-2.3.4, Repoman-2.3.2
11
12 dev-util/bloaty/Manifest | 1 +
13 dev-util/bloaty/bloaty-0_p20170321.ebuild | 38 +++++++++++++++++++++++++++++++
14 dev-util/bloaty/metadata.xml | 13 +++++++++++
15 3 files changed, 52 insertions(+)
16
17 diff --git a/dev-util/bloaty/Manifest b/dev-util/bloaty/Manifest
18 new file mode 100644
19 index 00000000000..ea161db0752
20 --- /dev/null
21 +++ b/dev-util/bloaty/Manifest
22 @@ -0,0 +1 @@
23 +DIST bloaty-0_p20170321.tar.gz 3100291 SHA256 0873e2abe0cf3dbb1fd47c97dfa9d0b47bf4b2627647b60325240a08f2ff0acc SHA512 9c784524e60e646b7af81fb48eb1d2b2cb9c7239a22d970c93dd9f28f932f66c16974dc18e4aa9edd96adbc26c17d0fd2160d469bacf8e82539e1b5c5a63077e WHIRLPOOL a15aa28d8d49d1e67d961a2db01d691f91474bee1703462eddeb41e2cb87a49c4a184c318a1b94d765b54bb5b3e92281f3eed23a44a2378ada19eceeadd36cb2
24
25 diff --git a/dev-util/bloaty/bloaty-0_p20170321.ebuild b/dev-util/bloaty/bloaty-0_p20170321.ebuild
26 new file mode 100644
27 index 00000000000..d444e0b7d78
28 --- /dev/null
29 +++ b/dev-util/bloaty/bloaty-0_p20170321.ebuild
30 @@ -0,0 +1,38 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit vcs-snapshot toolchain-funcs
37 +
38 +COMMIT="8e2298492eb9c0c9c358f4e5173bbc147e8e0436"
39 +
40 +DESCRIPTION="A size profiler for binaries"
41 +HOMEPAGE="https://github.com/google/bloaty"
42 +SRC_URI="https://github.com/google/bloaty/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +IUSE=""
48 +
49 +DEPEND=">=dev-libs/re2-0.2017.03.01"
50 +RDEPEND="${DEPEND}"
51 +
52 +src_prepare() {
53 + default
54 + sed -i -e "s#\$(RE2_[AH])##"\
55 + -e "s/\tar /\t$(tc-getAR) /"\
56 + -e "s#-lpthread#-lre2 -lpthread#"\
57 + -e "/^CXXFLAGS/ s#-I third_party/re2##"\
58 + Makefile || die
59 +}
60 +
61 +src_compile() {
62 + CXX=$(tc-getCXX) emake
63 +}
64 +
65 +src_install() {
66 + dobin ${PN}
67 + dodoc README.md
68 +}
69
70 diff --git a/dev-util/bloaty/metadata.xml b/dev-util/bloaty/metadata.xml
71 new file mode 100644
72 index 00000000000..945ab4f537a
73 --- /dev/null
74 +++ b/dev-util/bloaty/metadata.xml
75 @@ -0,0 +1,13 @@
76 +<?xml version="1.0" encoding="UTF-8"?>
77 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
78 +<pkgmetadata>
79 + <longdescription>
80 + </longdescription>
81 + <maintainer type="person">
82 + <email>mrueg@g.o</email>
83 + <name>Manuel Rüger</name>
84 + </maintainer>
85 + <upstream>
86 + <remote-id type="github">google/bloaty</remote-id>
87 + </upstream>
88 +</pkgmetadata>