summaryrefslogtreecommitdiff
blob: f976ff9d6ccf79d2a8edecf65b23618c55831876 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/quik/quik-2.0.1k.ebuild,v 1.1 2003/06/10 21:48:11 vladimir Exp $

inherit mount-boot

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

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

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

DEPEND="virtual/glibc
        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
}