From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8B4A8139345 for ; Sat, 17 Jul 2021 11:22:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC3E3E0B92; Sat, 17 Jul 2021 11:22:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 87A5CE0B92 for ; Sat, 17 Jul 2021 11:22:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9153E342B23 for ; Sat, 17 Jul 2021 11:22:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 645627DA for ; Sat, 17 Jul 2021 11:22:32 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1626520948.cabd674726cea231819b23e278c0acdcd112c30f.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/sparc-utils/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/sparc-utils/sparc-utils-1.9-r7.ebuild X-VCS-Directories: sys-apps/sparc-utils/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: cabd674726cea231819b23e278c0acdcd112c30f X-VCS-Branch: master Date: Sat, 17 Jul 2021 11:22:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0374c8a3-fb1c-414f-8c6f-d09c954626bd X-Archives-Hash: 316fb0d0a710c22dbe464c68aaf6d961 commit: cabd674726cea231819b23e278c0acdcd112c30f Author: Sergei Trofimovich gentoo org> AuthorDate: Sat Jul 17 11:11:48 2021 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sat Jul 17 11:22:28 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cabd6747 sys-apps/sparc-utils: update to EAPI=8 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Sergei Trofimovich gentoo.org> sys-apps/sparc-utils/sparc-utils-1.9-r7.ebuild | 62 ++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/sys-apps/sparc-utils/sparc-utils-1.9-r7.ebuild b/sys-apps/sparc-utils/sparc-utils-1.9-r7.ebuild new file mode 100644 index 00000000000..585dd2e6fac --- /dev/null +++ b/sys-apps/sparc-utils/sparc-utils-1.9-r7.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Various sparc utilities from Debian GNU/Linux" +HOMEPAGE="https://packages.debian.org/sparc-utils" +SRC_URI="mirror://debian/pool/main/s/${PN}/${PN}_${PV}.orig.tar.gz + mirror://debian/pool/main/s/${PN}/${PN}_${PV}-4.diff.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~sparc" +IUSE="" + +DEPEND="virtual/os-headers" +RDEPEND=">=sys-apps/util-linux-2.13-r1" + +S=${WORKDIR}/${P}.orig + +PATCHES=( + "${WORKDIR}/${PN}_${PV}-4.diff" + "${FILESDIR}"/${P}-no-implicit.patch + "${FILESDIR}"/elftoaout-2.3-64bit_fixes-1.patch +) + +src_compile() { + emake -C elftoaout-2.3 \ + CC="$(tc-getCC)" CFLAGS="${CFLAGS}" + emake -C src piggyback piggyback64 \ + CC="$(tc-getCC)" CFLAGS="${CFLAGS}" + emake -C prtconf-1.3 all \ + CC="$(tc-getCC)" +} + +src_install() { + # since the debian/piggyback64.1 manpage is a pointer to the + # debian/piggyback.1 manpage, copy debian/piggyback.1 to + # debian/piggyback64.1 + + cp "${S}"/debian/piggyback.1 "${S}"/debian/piggyback64.1 || die + + dobin elftoaout-2.3/elftoaout + dobin src/piggyback + dobin src/piggyback64 + dosbin prtconf-1.3/prtconf + dosbin prtconf-1.3/eeprom + + doman elftoaout-2.3/elftoaout.1 + doman prtconf-1.3/prtconf.8 + doman prtconf-1.3/eeprom.8 + doman debian/piggyback.1 + doman debian/piggyback64.1 +} + +pkg_postinst() { + ewarn "In order to have /usr/sbin/eeprom, make sure you build /dev/openprom" + ewarn "device support (CONFIG_SUN_OPENPROMIO) into the kernel, or as a" + ewarn "module (and that the module is loaded)." +}