From e68d405c5d712af4387159df07e226217bdda049 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 6 Apr 2022 22:33:41 +0100 Subject: gentoo resync : 06.04.2022 --- dev-util/crash/crash-8.0.0-r1.ebuild | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 dev-util/crash/crash-8.0.0-r1.ebuild (limited to 'dev-util/crash/crash-8.0.0-r1.ebuild') diff --git a/dev-util/crash/crash-8.0.0-r1.ebuild b/dev-util/crash/crash-8.0.0-r1.ebuild new file mode 100644 index 000000000000..13cee473e98b --- /dev/null +++ b/dev-util/crash/crash-8.0.0-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/crash-utility/crash.git" + SRC_URI="http://ftp.gnu.org/gnu/gdb/gdb-7.6.tar.gz" + EGIT_BRANCH="master" + inherit git-r3 +else + SRC_URI="https://github.com/crash-utility/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~dlan/distfiles/${CATEGORY}/${PN}/${PN}-8.0.0-patches-1.tar.xz + mirror://gnu/gdb/gdb-10.2.tar.gz" + KEYWORDS="-* ~alpha ~amd64 ~arm ~ia64 ~ppc64 ~s390 ~x86" +fi + +DESCRIPTION="Red Hat crash utility; used for analyzing kernel core dumps" +HOMEPAGE="https://crash-utility.github.io/" + +LICENSE="GPL-3" +SLOT="0" +IUSE="" +# there is no "make test" target, but there is a test.c so the automatic +# make rules catch it and tests fail +RESTRICT="test" + +PATCHES=( "${WORKDIR}"/${P}-patches/ ) + +src_prepare() { + default + sed -i -e "s|ar -rs|\${AR} -rs|g" Makefile || die + ln -s "${DISTDIR}"/gdb-10.2.tar.gz . || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + AR="$(tc-getAR)" \ + CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} -- cgit v1.2.3