commit:     5f3a7d49a6ce95d321a89863a7fa8023ae798383
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 28 00:20:10 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Sep 28 02:34:34 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f3a7d49

sys-block/scsiping: EAPI7->8, respect CC, remove dead HOMEPAGE

Closes: https://bugs.gentoo.org/725768
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 sys-block/scsiping/scsiping-0.0.1-r1.ebuild | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/sys-block/scsiping/scsiping-0.0.1-r1.ebuild 
b/sys-block/scsiping/scsiping-0.0.1-r1.ebuild
index c3cc60f5cb01..745fd177ef62 100644
--- a/sys-block/scsiping/scsiping-0.0.1-r1.ebuild
+++ b/sys-block/scsiping/scsiping-0.0.1-r1.ebuild
@@ -1,23 +1,26 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
+
+inherit toolchain-funcs
 
 DESCRIPTION="SCSIPing pings a host on the SCSI-chain"
-HOMEPAGE="https://www.vanheusden.com/Linux/";
-SRC_URI="https://www.vanheusden.com/Linux/${P}.tgz";
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage";
+SRC_URI="mirror://gentoo/${P}.tgz"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ppc x86"
 
 src_prepare() {
-       sed -i -e '/strip scsiping/d' "${S}"/Makefile
        default
+
+       sed -i '/strip scsiping/d' Makefile || die
 }
 
 src_compile() {
-       emake DEBUG='' CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${CPPFLAGS}" 
LDFLAGS="${LDFLAGS}"
 }
 
 src_install() {

Reply via email to