Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-cdr/dumpet/
Date: Fri, 28 Aug 2020 17:06:54
Message-Id: 1598634397.e0d5beb3b2411ff60fb73fa88a6f5ec343798b11.bkohler@gentoo
1 commit: e0d5beb3b2411ff60fb73fa88a6f5ec343798b11
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 28 10:50:18 2020 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 28 17:06:37 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0d5beb3
7
8 app-cdr/dumpet: respect LDFLAGS
9
10 Closes: https://bugs.gentoo.org/722066
11 Package-Manager: Portage-3.0.4, Repoman-3.0.1
12 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
13
14 app-cdr/dumpet/dumpet-2.1_p20140601-r3.ebuild | 45 +++++++++++++++++++++++++++
15 1 file changed, 45 insertions(+)
16
17 diff --git a/app-cdr/dumpet/dumpet-2.1_p20140601-r3.ebuild b/app-cdr/dumpet/dumpet-2.1_p20140601-r3.ebuild
18 new file mode 100644
19 index 00000000000..00b1082b508
20 --- /dev/null
21 +++ b/app-cdr/dumpet/dumpet-2.1_p20140601-r3.ebuild
22 @@ -0,0 +1,45 @@
23 +# Copyright 1999-2020 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +
28 +inherit toolchain-funcs vcs-snapshot
29 +
30 +COMMIT="8f47670dd582c96ad1b6dd3c9b9da0acebded5d8"
31 +
32 +DESCRIPTION="A tool to dump and debug bootable CD-like images"
33 +HOMEPAGE="https://github.com/rhboot/dumpet"
34 +SRC_URI="https://github.com/rhboot/dumpet/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
35 +
36 +LICENSE="GPL-2"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86"
39 +IUSE="test"
40 +#Restrict tests since required test file is unavailable
41 +RESTRICT="test"
42 +
43 +RDEPEND="dev-libs/libxml2
44 + dev-libs/popt"
45 +DEPEND="${RDEPEND}
46 + virtual/pkgconfig
47 + test? ( dev-util/valgrind )"
48 +
49 +PATCHES=( "${FILESDIR}"/musl-byteswap-fix.patch )
50 +
51 +src_prepare() {
52 + sed -i Makefile \
53 + -e "s/^install : all$/install :/" \
54 + -e "s/^CFLAGS:=/CFLAGS?=/" \
55 + -e "s/^CC:=/CC?=/" \
56 + -e '/^LFLAGS/ s/$/$(LDFLAGS)/' \
57 + || die
58 + default
59 +}
60 +
61 +src_compile() {
62 + emake CFLAGS="${CFLAGS}" dumpet
63 +}
64 +
65 +pkg_setup() {
66 + tc-export CC
67 +}