Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-firmware/ipxe/
Date: Sat, 24 Apr 2021 16:51:18
Message-Id: 1619283049.441c26374b07d44e3a836209dd79eebe7b094325.soap@gentoo
1 commit: 441c26374b07d44e3a836209dd79eebe7b094325
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 24 16:50:49 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 24 16:50:49 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=441c2637
7
8 sys-firmware/ipxe: [QA] Add missing || die and canonical ordering
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 sys-firmware/ipxe/ipxe-1.21.1.ebuild | 29 ++++++++++++++++-------------
14 1 file changed, 16 insertions(+), 13 deletions(-)
15
16 diff --git a/sys-firmware/ipxe/ipxe-1.21.1.ebuild b/sys-firmware/ipxe/ipxe-1.21.1.ebuild
17 index fbc44c9ad9b..bfa23b68a2e 100644
18 --- a/sys-firmware/ipxe/ipxe-1.21.1.ebuild
19 +++ b/sys-firmware/ipxe/ipxe-1.21.1.ebuild
20 @@ -10,15 +10,16 @@ HOMEPAGE="https://ipxe.org/"
21 SRC_URI="
22 !binary? ( https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz )
23 binary? ( https://dev.gentoo.org/~tamiko/distfiles/${P}-bin.tar.xz )"
24 +S="${WORKDIR}/${P}/src"
25
26 LICENSE="GPL-2"
27 SLOT="0"
28 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~x86"
29 IUSE="+binary efi ipv6 iso lkrn +qemu undi usb vmware"
30 -
31 REQUIRED_USE="!amd64? ( !x86? ( binary ) )"
32
33 -SOURCE_DEPEND="app-arch/xz-utils
34 +SOURCE_DEPEND="
35 + app-arch/xz-utils
36 dev-lang/perl
37 iso? (
38 app-cdr/cdrtools
39 @@ -30,23 +31,25 @@ BDEPEND="
40 x86? ( ${SOURCE_DEPEND} )
41 )"
42
43 -S="${WORKDIR}/${P}/src"
44 -
45 src_configure() {
46 use binary && return
47
48 - cat <<-EOF > "${S}"/config/local/general.h
49 -#undef BANNER_TIMEOUT
50 -#define BANNER_TIMEOUT 0
51 -EOF
52 + cat > config/local/general.h <<-EOF || die
53 + #undef BANNER_TIMEOUT
54 + #define BANNER_TIMEOUT 0
55 + EOF
56
57 - use ipv6 && echo "#define NET_PROTO_IPV6" >> "${S}"/config/local/general.h
58 + if use ipv6; then
59 + cat >> config/local/general.h <<-EOF || die
60 + #define NET_PROTO_IPV6
61 + EOF
62 + fi
63
64 if use vmware; then
65 - cat <<-EOF >> "${S}"/config/local/general.h
66 -#define VMWARE_SETTINGS
67 -#define CONSOLE_VMWARE
68 -EOF
69 + cat >> config/local/general.h <<-EOF || die
70 + #define VMWARE_SETTINGS
71 + #define CONSOLE_VMWARE
72 + EOF
73 fi
74
75 restore_config config/local/general.h