blob: 71f844f46dc0ae4cc0b0ed165d40146109295d88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
BASEVER=$(ver_cut 1-3)
DEBREV=$(ver_cut 4)
DESCRIPTION="PowerPC utilities and additional OldWorld apps"
SRC_URI="http://http.us.debian.org/debian/pool/main/p/powerpc-utils/${PN}_${BASEVER}.orig.tar.gz
http://http.us.debian.org/debian/pool/main/p/powerpc-utils/${PN}_${BASEVER}-${DEBREV}.diff.gz
mirror://gentoo/${PN}-cleanup.patch.bz2"
HOMEPAGE="http://http.us.debian.org/debian/pool/main/p/powerpc-utils/"
KEYWORDS="-* ppc ppc64"
SLOT="0"
LICENSE="GPL-2"
S="${WORKDIR}/pmac-utils"
PATCHES=(
"${WORKDIR}"/${PN}_${BASEVER}-${DEBREV}.diff
"${WORKDIR}"/${PN}-cleanup.patch
)
src_prepare() {
default
# use users CFLAGS, LDFLAGS and CC, bug 280400
sed -i -e "/LDFLAGS =/d" -e "/CC\t=/d" -e "s/CFLAGS\t=/CFLAGS +=/" \
-e "s/-g -O2/-Wstrict-prototypes/" Makefile || die "sed failed"
}
src_compile() {
tc-export CC
emake
}
src_install() {
into /usr
dosbin autoboot backlight bootsched clock fblevel fdeject fnset
dosbin macos mousemode nvsetvol nvvideo sndvolmix trackpad
doman autoboot.8 bootsched.8 clock.8 fblevel.8 fdeject.8 macos.8
doman mousemode.8 nvsetvol.8 nvvideo.8 sndvolmix.8 trackpad.8
ewarn "The lsprop and nvsetenv utilities have been moved into the"
ewarn "sys-apps/ibm-powerpc-utils package."
}
|