blob: 569e9950de04b8c9ecce3b5f0ad8f61ece2a3429 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/dvhtool/dvhtool-1.0.1-r2.ebuild,v 1.1 2009/03/01 22:37:10 kumba Exp $
inherit eutils
DESCRIPTION="Tool to copy kernel(s) into the volume header on SGI MIPS-based workstations."
HOMEPAGE="http://packages.debian.org/unstable/utils/dvhtool"
SRC_URI="mirror://debian/pool/main/d/dvhtool/dvhtool_1.0.1.orig.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~mips ~x86 ~amd64"
IUSE=""
DEPEND=""
RDEPEND=""
src_unpack() {
unpack ${A}
cd "${S}.orig"
# several applicable hunks from a debian patch
epatch "${FILESDIR}"/${P}-debian.diff
# Newer minor patches from Debian
epatch "${FILESDIR}"/${P}-debian-warn_type_guess.diff
epatch "${FILESDIR}"/${P}-debian-debian-xopen_source.diff
# Allow dvhtool to recognize Linux RAID and Linux LVM partitions
epatch "${FILESDIR}"/${P}-add-raid-lvm-parttypes.patch
}
src_compile() {
cd "${S}.orig"
econf || die "econf failed"
emake || die "Failed to compile"
}
src_install() {
cd "${S}.orig"
einstall
}
|