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: Wed, 19 Sep 2018 22:25:47
Message-Id: 1537395935.c0c99015001c32b40a0cc0b7b41885fc20e3a7be.mgorny@gentoo
1 commit: c0c99015001c32b40a0cc0b7b41885fc20e3a7be
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 19 22:22:20 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 19 22:25:35 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0c99015
7
8 dev-util/debugedit: Bump to 4.14.2
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.14.2.ebuild | 89 ++++++++++++++++++++++++++++++
14 2 files changed, 90 insertions(+)
15
16 diff --git a/dev-util/debugedit/Manifest b/dev-util/debugedit/Manifest
17 index eab9b10ef33..9a83bb233b3 100644
18 --- a/dev-util/debugedit/Manifest
19 +++ b/dev-util/debugedit/Manifest
20 @@ -1 +1,2 @@
21 DIST debugedit-5.3.5.tar.bz2 27799 BLAKE2B f81b39122502afe66386b962d0e50e9a16a314f31acf2a44c6d53f16d24ac91b62483a67fed43d085c3dd573adcd312cbb5e15c214fd8f00bc5415835c2caa37 SHA512 afac800a8f2e035705fcf997500d8fd2c3dc658850f47754863e8811db97859748721c5a252cc90dc81d07bf08763a9507e2272e983ee3f6bf16d8016fe5b8c9
22 +DIST rpm-4.14.2.tar.bz2 4151934 BLAKE2B eb7e32dd736a195f2e5effc184ee8f2c700dcaf80477574c2112b6c96504d86a67c81e611f82ea35ce244e95fad339bd262eb51c35ada5eeffa8d306b6938cb7 SHA512 22e309e8be936e6070430cedd6f5ea0c3871db4c6aadd0d567a9c418796c178c8dd45d44920d7eaa66681790cc2821347affe471cb215d7a490fe7947fbf291c
23
24 diff --git a/dev-util/debugedit/debugedit-4.14.2.ebuild b/dev-util/debugedit/debugedit-4.14.2.ebuild
25 new file mode 100644
26 index 00000000000..754bbccb0cf
27 --- /dev/null
28 +++ b/dev-util/debugedit/debugedit-4.14.2.ebuild
29 @@ -0,0 +1,89 @@
30 +# Copyright 1999-2018 Gentoo Foundation
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="http://www.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
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-nls
94 + --disable-python
95 + --without-acl
96 + --without-archive
97 + --without-cap
98 + --without-external-db
99 + --without-hackingdocs
100 + --without-lua
101 + --without-selinux
102 + )
103 + econf "${myconf[@]}"
104 +}
105 +
106 +src_compile() {
107 + emake -C misc
108 + emake -C rpmio
109 + emake debugedit
110 +}
111 +
112 +src_test() {
113 + :
114 +}
115 +
116 +src_install() {
117 + dobin debugedit
118 +}