Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/sparc-utils/
Date: Sat, 17 Jul 2021 11:22:37
Message-Id: 1626520948.cabd674726cea231819b23e278c0acdcd112c30f.slyfox@gentoo
1 commit: cabd674726cea231819b23e278c0acdcd112c30f
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 17 11:11:48 2021 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 17 11:22:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cabd6747
7
8 sys-apps/sparc-utils: update to EAPI=8
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 sys-apps/sparc-utils/sparc-utils-1.9-r7.ebuild | 62 ++++++++++++++++++++++++++
14 1 file changed, 62 insertions(+)
15
16 diff --git a/sys-apps/sparc-utils/sparc-utils-1.9-r7.ebuild b/sys-apps/sparc-utils/sparc-utils-1.9-r7.ebuild
17 new file mode 100644
18 index 00000000000..585dd2e6fac
19 --- /dev/null
20 +++ b/sys-apps/sparc-utils/sparc-utils-1.9-r7.ebuild
21 @@ -0,0 +1,62 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=8
26 +
27 +inherit toolchain-funcs
28 +
29 +DESCRIPTION="Various sparc utilities from Debian GNU/Linux"
30 +HOMEPAGE="https://packages.debian.org/sparc-utils"
31 +SRC_URI="mirror://debian/pool/main/s/${PN}/${PN}_${PV}.orig.tar.gz
32 + mirror://debian/pool/main/s/${PN}/${PN}_${PV}-4.diff.gz"
33 +
34 +LICENSE="GPL-2"
35 +SLOT="0"
36 +KEYWORDS="-* ~sparc"
37 +IUSE=""
38 +
39 +DEPEND="virtual/os-headers"
40 +RDEPEND=">=sys-apps/util-linux-2.13-r1"
41 +
42 +S=${WORKDIR}/${P}.orig
43 +
44 +PATCHES=(
45 + "${WORKDIR}/${PN}_${PV}-4.diff"
46 + "${FILESDIR}"/${P}-no-implicit.patch
47 + "${FILESDIR}"/elftoaout-2.3-64bit_fixes-1.patch
48 +)
49 +
50 +src_compile() {
51 + emake -C elftoaout-2.3 \
52 + CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
53 + emake -C src piggyback piggyback64 \
54 + CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
55 + emake -C prtconf-1.3 all \
56 + CC="$(tc-getCC)"
57 +}
58 +
59 +src_install() {
60 + # since the debian/piggyback64.1 manpage is a pointer to the
61 + # debian/piggyback.1 manpage, copy debian/piggyback.1 to
62 + # debian/piggyback64.1
63 +
64 + cp "${S}"/debian/piggyback.1 "${S}"/debian/piggyback64.1 || die
65 +
66 + dobin elftoaout-2.3/elftoaout
67 + dobin src/piggyback
68 + dobin src/piggyback64
69 + dosbin prtconf-1.3/prtconf
70 + dosbin prtconf-1.3/eeprom
71 +
72 + doman elftoaout-2.3/elftoaout.1
73 + doman prtconf-1.3/prtconf.8
74 + doman prtconf-1.3/eeprom.8
75 + doman debian/piggyback.1
76 + doman debian/piggyback64.1
77 +}
78 +
79 +pkg_postinst() {
80 + ewarn "In order to have /usr/sbin/eeprom, make sure you build /dev/openprom"
81 + ewarn "device support (CONFIG_SUN_OPENPROMIO) into the kernel, or as a"
82 + ewarn "module (and that the module is loaded)."
83 +}