Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/sparc-utils/
Date: Fri, 06 Apr 2018 02:42:21
Message-Id: 1522982519.6ae34d5a28d5c50d25f68afbe631c30862d7ad38.bman@gentoo
1 commit: 6ae34d5a28d5c50d25f68afbe631c30862d7ad38
2 Author: Harri Nieminen <moikkis <AT> gmail <DOT> com>
3 AuthorDate: Thu Apr 5 15:22:44 2018 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 6 02:41:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ae34d5a
7
8 sys-apps/sparc-utils: Clean up old
9
10 Package-Manager: Portage-2.3.28, Repoman-2.3.9
11 Closes: https://github.com/gentoo/gentoo/pull/7827
12
13 sys-apps/sparc-utils/Manifest | 1 -
14 sys-apps/sparc-utils/sparc-utils-1.9-r4.ebuild | 75 --------------------------
15 2 files changed, 76 deletions(-)
16
17 diff --git a/sys-apps/sparc-utils/Manifest b/sys-apps/sparc-utils/Manifest
18 index c796e304cd2..4b38a775d37 100644
19 --- a/sys-apps/sparc-utils/Manifest
20 +++ b/sys-apps/sparc-utils/Manifest
21 @@ -1,3 +1,2 @@
22 -DIST sparc-utils_1.9-3.diff.gz 10337 BLAKE2B 03ee7ca15c4e736955fa08c66bbd1db2ec39764b4334fbec3838f5bcea3945d22c7a3148c00ab43a67324827af473739d014d7a6a895dbbd58c43ba13cbb1efe SHA512 c6eba75261ffee55cc49e3da71ad3a2f12e04574158975c69db0bbd94d7c22ca4dec50f3140cf0bf9f35bb547865deca3cfd3e28e76c70b9173926bc0b8f34ee
23 DIST sparc-utils_1.9-4.diff.gz 9083 BLAKE2B e4b16c26fe67be73d0fd3ad8e1e80b19356d5961abac344f28650e4d355cac9c557999591947391c41be88d819ebb703ae1ff177b4fbe0d9bea7a411a791821f SHA512 ef79dc480471117da3a778450b3a122eaf64fdee69d35ff30b301f2360ff5d76c6343ce37c25cc188891c1619809daa0595d01c6e85781ddd7ddf1713c8378b7
24 DIST sparc-utils_1.9.orig.tar.gz 110080 BLAKE2B 52f47c130fb8e24b0340589c846292fb2e4e9b211a10cddf52a7a63edd70673e2b7d05c2415e558c5f2d1235f33f4ae65b777d3f8b2cf2c50a601d1f0a7a941a SHA512 bde05f1a98211aaf502be6dfd757ddfb21c136cedbb46ca84a4539706c71901815c9d8bedfebc3800c7340634b32276197c75f92f9cc829e4f50c37d203e9358
25
26 diff --git a/sys-apps/sparc-utils/sparc-utils-1.9-r4.ebuild b/sys-apps/sparc-utils/sparc-utils-1.9-r4.ebuild
27 deleted file mode 100644
28 index f19f07a176b..00000000000
29 --- a/sys-apps/sparc-utils/sparc-utils-1.9-r4.ebuild
30 +++ /dev/null
31 @@ -1,75 +0,0 @@
32 -# Copyright 1999-2008 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -inherit eutils toolchain-funcs
36 -
37 -DESCRIPTION="Various sparc utilities from Debian GNU/Linux"
38 -HOMEPAGE="http://packages.debian.org/sparc-utils"
39 -SRC_URI="mirror://debian/pool/main/s/${PN}/${PN}_${PV}.orig.tar.gz
40 - mirror://debian/pool/main/s/${PN}/${PN}_${PV}-3.diff.gz"
41 -
42 -LICENSE="GPL-2"
43 -SLOT="0"
44 -KEYWORDS="-* sparc"
45 -IUSE=""
46 -
47 -DEPEND="virtual/os-headers"
48 -RDEPEND="|| ( >=sys-apps/util-linux-2.13-r1 sys-apps/setarch )"
49 -
50 -S=${WORKDIR}/${P}.orig
51 -
52 -# NOTE: If a system has >=sys-kernel/linux-headers-2.6.0, don't build audioctl
53 -# as the SPARC sound drivers have been replaced by their ALSA equivalents
54 -
55 -pkg_setup() {
56 - has_version '>=sys-kernel/linux-headers-2.6.0' && \
57 - einfo "Linux 2.6 kernel headers detected, not building audioctl"
58 -}
59 -
60 -src_unpack() {
61 - unpack ${A}
62 - epatch "${WORKDIR}/${PN}_${PV}-3.diff"
63 - sed -i -e 's:#include <linux/elf.h>:#include <elf.h>:' \
64 - ${S}/elftoaout*/elftoaout.c
65 -}
66 -
67 -src_compile() {
68 - emake -C elftoaout-2.3 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die
69 - emake -C src piggyback piggyback64 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die
70 - emake -C prtconf-1.3 CC="$(tc-getCC)" all || die
71 - has_version '>=sys-kernel/linux-headers-2.6.0' || \
72 - emake -C audioctl-1.3 CC="$(tc-getCC)" || die
73 -}
74 -
75 -src_install() {
76 - # since the debian/piggyback64.1 manpage is a pointer to the
77 - # debian/piggyback.1 manpage, copy debian/piggyback.1 to
78 - # debian/piggyback64.1
79 -
80 - cp ${S}/debian/piggyback.1 ${S}/debian/piggyback64.1
81 -
82 - dobin elftoaout-2.3/elftoaout || die
83 - dobin src/piggyback || die
84 - dobin src/piggyback64 || die
85 - dosbin prtconf-1.3/prtconf || die
86 - dosbin prtconf-1.3/eeprom || die
87 -
88 - if ! has_version '>=sys-kernel/linux-headers-2.6.0'; then
89 - dobin audioctl-1.3/audioctl || die
90 - newinitd "${FILESDIR}"/audioctl.init audioctl || die
91 - newconfd debian/audioctl.def audioctl || die
92 - doman audioctl-1.3/audioctl.1
93 - fi
94 -
95 - doman elftoaout-2.3/elftoaout.1
96 - doman prtconf-1.3/prtconf.8
97 - doman prtconf-1.3/eeprom.8
98 - doman debian/piggyback.1
99 - doman debian/piggyback64.1
100 -}
101 -
102 -pkg_postinst() {
103 - ewarn "In order to have /usr/sbin/eeprom, make sure you build /dev/openprom"
104 - ewarn "device support (CONFIG_SUN_OPENPROMIO) into the kernel, or as a"
105 - ewarn "module (and that the module is loaded)."
106 -}