You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.4 KiB
55 lines
1.4 KiB
4 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
5 years ago
|
# 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)
|
||
|
|
||
4 years ago
|
DESCRIPTION="PowerPC utilities and additional OldWorld apps"
|
||
5 years ago
|
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/"
|
||
5 years ago
|
KEYWORDS="-* ppc ppc64"
|
||
5 years ago
|
IUSE=""
|
||
|
DEPEND=""
|
||
|
RDEPEND="${DEPEND}"
|
||
|
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
|
||
4 years ago
|
dosbin macos mousemode nvsetvol nvvideo sndvolmix trackpad
|
||
5 years ago
|
|
||
|
doman autoboot.8 bootsched.8 clock.8 fblevel.8 fdeject.8 macos.8
|
||
4 years ago
|
doman mousemode.8 nvsetvol.8 nvvideo.8 sndvolmix.8 trackpad.8
|
||
5 years ago
|
|
||
4 years ago
|
ewarn "The lsprop and nvsetenv utilities have been moved into the"
|
||
|
ewarn "sys-apps/ibm-powerpc-utils package."
|
||
5 years ago
|
}
|