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: Thu, 01 Oct 2020 07:59:28
Message-Id: 1601539157.7f6acb3b0637f074ffeab6955685dc5412835a3a.mgorny@gentoo
1 commit: 7f6acb3b0637f074ffeab6955685dc5412835a3a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 1 06:53:30 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 1 07:59:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f6acb3b
7
8 dev-util/debugedit: Bump to 4.16.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.16.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 6293e1f0115..a8c1f1590b8 100644
18 --- a/dev-util/debugedit/Manifest
19 +++ b/dev-util/debugedit/Manifest
20 @@ -1 +1,2 @@
21 DIST rpm-4.15.1.tar.bz2 4243893 BLAKE2B 352695e1fdac231127c9a2a775ff1aa05c1f3acbb10b0678e06011f9e4a5124e48cc19dce83417866e0f3c92bfd94e9c52b8c1884151ee77559bea1020d3623e SHA512 6c66835da5a54349bcfba5cc69831c8c57568aabd53c5c2820ec78c361be5116fecd41777b097e9c49458f984a7beb054fa8ed453ff7263cad4a29a11f780767
22 +DIST rpm-4.16.0.tar.bz2 4341683 BLAKE2B 5161e5dcc6d9a1f1d4b8e44740fb368050b808fd9e8b8276fb17b530a4642e1b9ad104b5a30c0071215aef7f823eeab10988dd41f73af1c52d575529c374b5eb SHA512 177119c3ac3d48980db55bb4ba0fdbb2a911968e5efc690bfa8cc343f850fc90531cc0dee6dd8e45d2b14f0d951ced35bd8893d24011b7f270745d281ddf4e3d
23
24 diff --git a/dev-util/debugedit/debugedit-4.16.0.ebuild b/dev-util/debugedit/debugedit-4.16.0.ebuild
25 new file mode 100644
26 index 00000000000..d2c33879440
27 --- /dev/null
28 +++ b/dev-util/debugedit/debugedit-4.16.0.ebuild
29 @@ -0,0 +1,91 @@
30 +# Copyright 1999-2020 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 ~arm64 ~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 +}