| 20 |
20 |
# for the patchsets
|
| 21 |
21 |
|
| 22 |
22 |
PATCH_VER=1
|
| 23 |
|
PATCH_DEV=dilfridge
|
| 24 |
23 |
|
| 25 |
24 |
if [[ ${PV} == 9999 ]]; then
|
| 26 |
25 |
inherit git-r3
|
| ... | ... | |
| 29 |
28 |
inherit git-r3
|
| 30 |
29 |
SLOT=$(ver_cut 1-2)
|
| 31 |
30 |
else
|
|
31 |
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/binutils.asc
|
|
32 |
inherit verify-sig
|
| 32 |
33 |
PATCH_BINUTILS_VER=${PATCH_BINUTILS_VER:-${PV}}
|
| 33 |
34 |
PATCH_DEV=${PATCH_DEV:-dilfridge}
|
| 34 |
|
SRC_URI="mirror://gnu/binutils/binutils-${PV}.tar.xz https://sourceware.org/pub/binutils/releases/binutils-${PV}.tar.xz https://dev.gentoo.org/~${PATCH_DEV}/distfiles/binutils-${PV}.tar.xz"
|
| 35 |
|
[[ -z ${PATCH_VER} ]] || SRC_URI="${SRC_URI}
|
| 36 |
|
https://dev.gentoo.org/~${PATCH_DEV}/distfiles/binutils-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz"
|
|
35 |
SRC_URI="
|
|
36 |
mirror://gnu/binutils/binutils-${PV}.tar.xz
|
|
37 |
https://sourceware.org/pub/binutils/releases/binutils-${PV}.tar.xz
|
|
38 |
verify-sig? ( mirror://gnu/binutils/binutils-${PV}.tar.xz.sig )
|
|
39 |
"
|
|
40 |
[[ -z ${PATCH_VER} ]] || SRC_URI+=" https://distfiles.gentoo.org/pub/proj/toolchain/binutils/patches/binutils-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz"
|
| 37 |
41 |
SLOT=$(ver_cut 1-2)
|
| 38 |
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
|
|
42 |
#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
|
43 |
|
|
44 |
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-binutils )"
|
| 39 |
45 |
fi
|
| 40 |
46 |
|
| 41 |
47 |
#
|
| ... | ... | |
| 64 |
70 |
${RDEPEND}
|
| 65 |
71 |
xxhash? ( dev-libs/xxhash )
|
| 66 |
72 |
"
|
| 67 |
|
BDEPEND="
|
|
73 |
BDEPEND+="
|
| 68 |
74 |
doc? ( sys-apps/texinfo )
|
| 69 |
75 |
pgo? (
|
| 70 |
76 |
dev-util/dejagnu
|
| ... | ... | |
| 95 |
101 |
|
| 96 |
102 |
if [[ ${PV} != 9999 ]] ; then
|
| 97 |
103 |
EGIT_BRANCH=binutils-$(ver_cut 1)_$(ver_cut 2)-branch
|
| 98 |
|
mv patches-git/${PV%*.9999} patch || die
|
|
104 |
mv patches-git/${PV%*.9999} patches || die
|
| 99 |
105 |
else
|
| 100 |
|
mv patches-git/9999 patch || die
|
|
106 |
mv patches-git/9999 patches || die
|
| 101 |
107 |
fi
|
| 102 |
108 |
EGIT_REPO_URI="
|
| 103 |
109 |
https://sourceware.org/git/binutils-gdb.git
|
| ... | ... | |
| 108 |
114 |
EGIT_CHECKOUT_DIR=${S}
|
| 109 |
115 |
git-r3_src_unpack
|
| 110 |
116 |
else
|
|
117 |
use verify-sig && verify-sig_verify_detached "${DISTDIR}"/${P/-hppa64/}.tar.xz{,.sig}
|
| 111 |
118 |
unpack ${P/-hppa64/}.tar.xz
|
| 112 |
119 |
|
| 113 |
120 |
cd "${WORKDIR}" || die
|
| ... | ... | |
| 137 |
144 |
if [[ -n ${PATCH_VER} ]] || [[ ${PV} == *9999 ]] ; then
|
| 138 |
145 |
if ! use vanilla; then
|
| 139 |
146 |
einfo "Applying binutils patchset ${patchsetname}"
|
| 140 |
|
eapply "${WORKDIR}/patch"
|
|
147 |
eapply "${WORKDIR}/patches"
|
| 141 |
148 |
einfo "Done."
|
| 142 |
149 |
|
| 143 |
150 |
# This is applied conditionally for now just out of caution.
|