Diff crash-9.0.3 with a crash-9999

/usr/portage/dev-util/crash/crash-9999.ebuild 2024-12-25 15:56:39.363561129 +0300
1
# Copyright 1999-2026 Gentoo Authors
1
# Copyright 1999-2024 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6 6
inherit flag-o-matic toolchain-funcs
7 7

  
8
GDB_VERSION=16.2
9
UPSTREAM_VER=
10
EXTRA_VER=
11

  
8
GDB_VERSION=10.2
12 9
if [[ ${PV} == "9999" ]] ; then
13 10
	EGIT_REPO_URI="https://github.com/crash-utility/crash.git"
14 11
	SRC_URI="mirror://gnu/gdb/gdb-${GDB_VERSION}.tar.gz"
15 12
	EGIT_BRANCH="master"
16 13
	inherit git-r3
17 14
else
18
	[[ -n ${UPSTREAM_VER} ]] && \
19
		UPSTREAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${CATEGORY}/${PN}/${P}-patches-${UPSTREAM_VER}.tar.xz"
20

  
21
	[[ -n ${EXTRA_VER} ]] && \
22
		EXTRA_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${CATEGORY}/${PN}/${PN}-8.0.3-extra-${EXTRA_VER}.tar.xz"
23

  
24 15
	SRC_URI="https://github.com/crash-utility/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
25
		${UPSTREAM_PATCHSET_URI} ${EXTRA_PATCHSET_URI}
26
		mirror://gnu/gdb/gdb-${GDB_VERSION}.tar.gz"
27
	KEYWORDS="-* ~alpha ~amd64 ~arm ~ppc64 ~riscv ~s390 ~x86"
16
		mirror://gnu/gdb/gdb-${GDB_VERSION}.tar.xz"
17
	KEYWORDS="-* ~alpha ~amd64 ~arm ~ppc64 ~s390 ~x86"
28 18
fi
29 19

  
30 20
DESCRIPTION="Red Hat crash utility; used for analyzing kernel core dumps"
......
38 28

  
39 29
src_prepare() {
40 30
	default
41

  
42
	if [[ -n ${UPSTREAM_VER} ]]; then
43
		einfo "Try to apply Crash's Upstream patch set"
44
		eapply "${WORKDIR}"/patches-upstream
45
	fi
46

  
47
	if [[ -n ${EXTRA_VER} ]]; then
48
		einfo "Try to apply Crash's Extra patch set"
49
		eapply "${WORKDIR}"/patches-extra
50
	fi
51

  
52 31
	sed -i -e "s|ar -rs|\${AR} -rs|g" Makefile || die
53
	ln -s "${DISTDIR}"/gdb-${GDB_VERSION}.tar.gz . || die
32
	ln -s "${DISTDIR}"/gdb-10.2.tar.gz . || die
54 33
}
55 34

  
56 35
src_configure() {
Thank you!