diff options
Diffstat (limited to 'sys-boot/dvhtool/dvhtool-1.0.1-r2.ebuild')
-rw-r--r-- | sys-boot/dvhtool/dvhtool-1.0.1-r2.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sys-boot/dvhtool/dvhtool-1.0.1-r2.ebuild b/sys-boot/dvhtool/dvhtool-1.0.1-r2.ebuild new file mode 100644 index 000000000000..73f6db4383b7 --- /dev/null +++ b/sys-boot/dvhtool/dvhtool-1.0.1-r2.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit autotools eutils toolchain-funcs + +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="~amd64 ~mips ~x86" +IUSE="" +DEPEND="" +RDEPEND="" + +S="${S}.orig" + +src_prepare() { + # 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-xopen_source.diff + + # Allow dvhtool to recognize Linux RAID and Linux LVM partitions + epatch "${FILESDIR}"/${P}-add-raid-lvm-parttypes.patch + + eautoreconf +} + +src_configure() { + CC=$(tc-getCC) LD=$(tc-getLD) \ + econf +} + +src_compile() { + CC=$(tc-getCC) LD=$(tc-getLD) \ + emake +} |