summaryrefslogtreecommitdiff
blob: cfbe80ff3eda1c6066cd34564fa186eda628a168 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/quik/quik-2.0.1k.ebuild,v 1.8 2005/05/22 05:33:41 mr_bones_ Exp $

inherit toolchain-funcs mount-boot eutils

S="${WORKDIR}/"
MY_PV=${PV%.*}-${PV#*.*.}

DESCRIPTION="OldWorld PowerMac Bootloader"
HOMEPAGE="http://www.xs4all.nl/~eddieb/linuxppc/"
SRC_URI="http://www.xs4all.nl/~eddieb/linuxppc/YDL3/quik-${MY_PV}.src.rpm"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~ppc -x86 -amd64 -alpha -hppa -mips -sparc"
IUSE=""

DEPEND="virtual/libc
	app-arch/rpm2targz"

PROVIDE="virtual/bootloader"

src_unpack() {
	cd ${WORKDIR}
	rpm2targz ${DISTDIR}/quik-${MY_PV}.src.rpm
	tar -xzf ${WORKDIR}/quik-${MY_PV}.src.tar.gz || die
	tar -xzf ${WORKDIR}/quik-2.0.tar.gz

	cd ${WORKDIR}/quik-2.0
	epatch ${WORKDIR}/quik_2.0e-0.1.diff
	epatch ${WORKDIR}/quik-glibc2.2.patch
	epatch ${WORKDIR}/quik-noargs.patch
	epatch ${WORKDIR}/quik-j-k-diff.patch
	epatch ${WORKDIR}/quik-k-dac.patch
}

src_compile() {
	cd ${WORKDIR}/quik-2.0
	emake || die
}

src_install() {
	cd ${WORKDIR}/quik-2.0
	DESTDIR=${D} make install
	prepman /usr
}