Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/debugedit/
Date: Sat, 28 Sep 2019 05:52:12
Message-Id: 1569649925.b32023a27514e51957187da5f9b2de518a697cfc.mgorny@gentoo
1 commit: b32023a27514e51957187da5f9b2de518a697cfc
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 28 05:44:53 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 28 05:52:05 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b32023a2
7
8 dev-util/debugedit: Bump to 4.15.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-util/debugedit/Manifest | 1 +
13 dev-util/debugedit/debugedit-4.15.0.ebuild | 91 ++++++++++++++++++++++++++++++
14 2 files changed, 92 insertions(+)
15
16 diff --git a/dev-util/debugedit/Manifest b/dev-util/debugedit/Manifest
17 index 355633f1484..4c309b61605 100644
18 --- a/dev-util/debugedit/Manifest
19 +++ b/dev-util/debugedit/Manifest
20 @@ -1 +1,2 @@
21 DIST rpm-4.14.2.tar.bz2 4151934 BLAKE2B eb7e32dd736a195f2e5effc184ee8f2c700dcaf80477574c2112b6c96504d86a67c81e611f82ea35ce244e95fad339bd262eb51c35ada5eeffa8d306b6938cb7 SHA512 22e309e8be936e6070430cedd6f5ea0c3871db4c6aadd0d567a9c418796c178c8dd45d44920d7eaa66681790cc2821347affe471cb215d7a490fe7947fbf291c
22 +DIST rpm-4.15.0.tar.bz2 4205632 BLAKE2B 3e9701582e82d4164a21374df78c7a9ab3ca4f9aeafc13706fd0aa27782a34d2a732d7ae9659589abc9f9b8a48ce5c2cdbbea72c46768f1baba28ded26817e5b SHA512 bca9cc9ef0ad53fa5cd257c29a0a0b9447956afe4024835f5416b13926bc8bbaf8aacd481e721b4a28983bc57f98b75b91750d39dd72de4876efa9d6db53a26c
23
24 diff --git a/dev-util/debugedit/debugedit-4.15.0.ebuild b/dev-util/debugedit/debugedit-4.15.0.ebuild
25 new file mode 100644
26 index 00000000000..7a6ec67dddc
27 --- /dev/null
28 +++ b/dev-util/debugedit/debugedit-4.15.0.ebuild
29 @@ -0,0 +1,91 @@
30 +# Copyright 1999-2019 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit flag-o-matic
36 +
37 +MY_P=rpm-${PV}
38 +DESCRIPTION="Stand-alone debugedit from RPM"
39 +HOMEPAGE="https://rpm.org
40 + https://github.com/rpm-software-management/rpm"
41 +SRC_URI="http://ftp.rpm.org/releases/rpm-$(ver_cut 1-2).x/${MY_P}.tar.bz2"
42 +
43 +LICENSE="GPL-2+ LGPL-2+"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
46 +IUSE=""
47 +
48 +RDEPEND="
49 + sys-libs/zlib:=
50 + >=dev-libs/popt-1.7
51 + >=dev-libs/elfutils-0.176-r1
52 + dev-libs/nss
53 +"
54 +DEPEND="${RDEPEND}
55 + virtual/pkgconfig
56 +"
57 +
58 +S=${WORKDIR}/${MY_P}
59 +
60 +src_prepare() {
61 + eapply_user
62 +
63 + # cheat it into believing we're bundling db
64 + mkdir -p db/dist || die
65 + touch db/dist/configure || die
66 + chmod +x db/dist/configure || die
67 + echo 'install:' > db3/Makefile || die
68 +
69 + # TODO: why do we need to do this?
70 + mkdir rpm || die
71 + find -name '*.h' -exec cp {} rpm/ ';' || die
72 +}
73 +
74 +src_configure() {
75 + append-cppflags -I"${EPREFIX}/usr/include/nss" -I"${EPREFIX}/usr/include/nspr"
76 + local myconf=(
77 + # force linking to static librpmio
78 + --disable-shared
79 +
80 + # disable linking compression libraries
81 + ac_cv_header_bzlib_h=no
82 + ac_cv_header_lzma_h=no
83 + --disable-zstd
84 +
85 + # fake some libraries we don't use
86 + ac_cv_header_magic_h=yes
87 + ac_cv_lib_magic_magic_open=yes
88 +
89 + # use nss as crypto provider
90 + --with-crypto=nss
91 +
92 + # disable other stuff irrelevant to debugedit
93 + --disable-bdb
94 + --disable-nls
95 + --disable-plugins
96 + --disable-python
97 + --without-acl
98 + --without-archive
99 + --without-cap
100 + --without-external-db
101 + --without-hackingdocs
102 + --without-lua
103 + --without-selinux
104 + )
105 + econf "${myconf[@]}"
106 +}
107 +
108 +src_compile() {
109 + emake -C misc
110 + emake -C rpmio
111 + emake debugedit
112 +}
113 +
114 +src_test() {
115 + :
116 +}
117 +
118 +src_install() {
119 + dobin debugedit
120 +}