1 |
commit: 4933c3aa36b15cb369014552e50cd1a2d720fd68 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 29 15:28:42 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 29 15:31:25 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4933c3aa |
7 |
|
8 |
sys-devel/make: add 9999 |
9 |
|
10 |
Desirable for make --shuffle [0][1]. |
11 |
|
12 |
[0] https://trofi.github.io/posts/238-new-make-shuffle-mode.html |
13 |
[1] https://trofi.github.io/posts/249-an-update-on-make-shuffle.html |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
sys-devel/make/make-4.3.ebuild | 28 +++++++++++++++++-- |
17 |
.../make/{make-4.3.ebuild => make-9999.ebuild} | 32 ++++++++++++++++++---- |
18 |
2 files changed, 52 insertions(+), 8 deletions(-) |
19 |
|
20 |
diff --git a/sys-devel/make/make-4.3.ebuild b/sys-devel/make/make-4.3.ebuild |
21 |
index 50caf0365bb0..e924bf762998 100644 |
22 |
--- a/sys-devel/make/make-4.3.ebuild |
23 |
+++ b/sys-devel/make/make-4.3.ebuild |
24 |
@@ -8,9 +8,12 @@ inherit flag-o-matic verify-sig |
25 |
|
26 |
DESCRIPTION="Standard tool to compile source trees" |
27 |
HOMEPAGE="https://www.gnu.org/software/make/make.html" |
28 |
-if [[ "$(ver_cut 3)" -ge 90 ]] ; then |
29 |
- SRC_URI="https://alpha.gnu.org/gnu//make/${P}.tar.gz" |
30 |
- SRC_URI+=" verify-sig? ( https://alpha.gnu.org/gnu//make/${P}.tar.gz.sig )" |
31 |
+if [[ ${PV} == 9999 ]] ; then |
32 |
+ EGIT_REPO_URI="https://git.savannah.gnu.org/git/make.git" |
33 |
+ inherit autotools git-r3 |
34 |
+elif [[ $(ver_cut 3) -ge 90 ]] ; then |
35 |
+ SRC_URI="https://alpha.gnu.org/gnu/make/${P}.tar.gz" |
36 |
+ SRC_URI+=" verify-sig? ( https://alpha.gnu.org/gnu/make/${P}.tar.gz.sig )" |
37 |
else |
38 |
SRC_URI="mirror://gnu//make/${P}.tar.gz" |
39 |
SRC_URI+=" verify-sig? ( mirror://gnu//make/${P}.tar.gz.sig )" |
40 |
@@ -32,6 +35,25 @@ PATCHES=( |
41 |
"${FILESDIR}"/${PN}-4.2-default-cxx.patch |
42 |
) |
43 |
|
44 |
+src_unpack() { |
45 |
+ if [[ ${PV} == 9999 ]] ; then |
46 |
+ git-r3_src_unpack |
47 |
+ |
48 |
+ cd "${S}" || die |
49 |
+ ./bootstrap || die |
50 |
+ else |
51 |
+ default |
52 |
+ fi |
53 |
+} |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ default |
57 |
+ |
58 |
+ if [[ ${PV} == 9999 ]] ; then |
59 |
+ eautoreconf |
60 |
+ fi |
61 |
+} |
62 |
+ |
63 |
src_configure() { |
64 |
use static && append-ldflags -static |
65 |
local myeconfargs=( |
66 |
|
67 |
diff --git a/sys-devel/make/make-4.3.ebuild b/sys-devel/make/make-9999.ebuild |
68 |
similarity index 62% |
69 |
copy from sys-devel/make/make-4.3.ebuild |
70 |
copy to sys-devel/make/make-9999.ebuild |
71 |
index 50caf0365bb0..c0a4aa6ff54a 100644 |
72 |
--- a/sys-devel/make/make-4.3.ebuild |
73 |
+++ b/sys-devel/make/make-9999.ebuild |
74 |
@@ -1,20 +1,23 @@ |
75 |
# Copyright 1999-2022 Gentoo Authors |
76 |
# Distributed under the terms of the GNU General Public License v2 |
77 |
|
78 |
-EAPI=7 |
79 |
+EAPI=8 |
80 |
|
81 |
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/make.asc |
82 |
inherit flag-o-matic verify-sig |
83 |
|
84 |
DESCRIPTION="Standard tool to compile source trees" |
85 |
HOMEPAGE="https://www.gnu.org/software/make/make.html" |
86 |
-if [[ "$(ver_cut 3)" -ge 90 ]] ; then |
87 |
- SRC_URI="https://alpha.gnu.org/gnu//make/${P}.tar.gz" |
88 |
- SRC_URI+=" verify-sig? ( https://alpha.gnu.org/gnu//make/${P}.tar.gz.sig )" |
89 |
+if [[ ${PV} == 9999 ]] ; then |
90 |
+ EGIT_REPO_URI="https://git.savannah.gnu.org/git/make.git" |
91 |
+ inherit autotools git-r3 |
92 |
+elif [[ $(ver_cut 3) -ge 90 ]] ; then |
93 |
+ SRC_URI="https://alpha.gnu.org/gnu/make/${P}.tar.gz" |
94 |
+ SRC_URI+=" verify-sig? ( https://alpha.gnu.org/gnu/make/${P}.tar.gz.sig )" |
95 |
else |
96 |
SRC_URI="mirror://gnu//make/${P}.tar.gz" |
97 |
SRC_URI+=" verify-sig? ( mirror://gnu//make/${P}.tar.gz.sig )" |
98 |
- KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
99 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
100 |
fi |
101 |
|
102 |
LICENSE="GPL-3+" |
103 |
@@ -32,6 +35,25 @@ PATCHES=( |
104 |
"${FILESDIR}"/${PN}-4.2-default-cxx.patch |
105 |
) |
106 |
|
107 |
+src_unpack() { |
108 |
+ if [[ ${PV} == 9999 ]] ; then |
109 |
+ git-r3_src_unpack |
110 |
+ |
111 |
+ cd "${S}" || die |
112 |
+ ./bootstrap || die |
113 |
+ else |
114 |
+ default |
115 |
+ fi |
116 |
+} |
117 |
+ |
118 |
+src_prepare() { |
119 |
+ default |
120 |
+ |
121 |
+ if [[ ${PV} == 9999 ]] ; then |
122 |
+ eautoreconf |
123 |
+ fi |
124 |
+} |
125 |
+ |
126 |
src_configure() { |
127 |
use static && append-ldflags -static |
128 |
local myeconfargs=( |