blob: d72fe5b4b79a66cf04e92eb65436023e7bd6840c (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/palo/palo-1.18-r1.ebuild,v 1.3 2013/01/30 00:44:35 jer Exp $
EAPI="2"
inherit eutils flag-o-matic toolchain-funcs
DESCRIPTION="PALO : PArisc Linux Loader"
HOMEPAGE="http://parisc-linux.org/"
SRC_URI="mirror://debian/pool/main/p/${PN}/${P/-/_}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* hppa"
IUSE=""
src_prepare() {
epatch \
"${FILESDIR}"/${PN}-remove-HOME-TERM.patch \
"${FILESDIR}"/${PN}-1.16_p1-build.patch \
"${FILESDIR}"/${P}-include.patch
sed -i lib/common.h -e '/^#define PALOVERSION/{s|".*"|"'${PV}'"|g}' || die
sed -i palo/Makefile -e '/^LDFLAGS=/d' || die
}
src_compile() {
tc-export CC
emake -C palo || die "make palo failed"
emake -C ipl || die "make ipl failed"
emake MACHINE=parisc iplboot || die "make iplboot failed"
}
src_install() {
into /
dosbin palo/palo || die
doman palo.8
dohtml README.html
dodoc README palo.conf
insinto /etc
doins "${FILESDIR}"/palo.conf || die
insinto /usr/share/palo
doins iplboot || die
insinto /etc/kernel/postinst.d/
INSOPTIONS="-m 0744" doins "${FILESDIR}"/99palo
}
|