summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Jezak <josejx@gentoo.org>2012-05-02 06:09:57 +0000
committerJoseph Jezak <josejx@gentoo.org>2012-05-02 06:09:57 +0000
commit23b04509f0a1076e9ca63b697b50d561b06809f9 (patch)
tree672bb0a9dee244254ce4111591bd622b0bad51a3 /sys-boot/yaboot/yaboot-1.3.17-r1.ebuild
parentx86 stable, see bug 413657. Thanks Mikle Kolyada. (diff)
downloadhistorical-23b04509f0a1076e9ca63b697b50d561b06809f9.tar.gz
historical-23b04509f0a1076e9ca63b697b50d561b06809f9.tar.bz2
historical-23b04509f0a1076e9ca63b697b50d561b06809f9.zip
Added stubbed function patch to fix building with e2fsprogs-1.42.
Package-Manager: portage-2.1.10.57/cvs/Linux x86_64
Diffstat (limited to 'sys-boot/yaboot/yaboot-1.3.17-r1.ebuild')
-rw-r--r--sys-boot/yaboot/yaboot-1.3.17-r1.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/sys-boot/yaboot/yaboot-1.3.17-r1.ebuild b/sys-boot/yaboot/yaboot-1.3.17-r1.ebuild
new file mode 100644
index 000000000000..2a874563bc9c
--- /dev/null
+++ b/sys-boot/yaboot/yaboot-1.3.17-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-boot/yaboot/yaboot-1.3.17-r1.ebuild,v 1.1 2012/05/02 06:09:57 josejx Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="PPC Bootloader"
+SRC_URI="http://yaboot.ozlabs.org/releases/${P}.tar.gz"
+HOMEPAGE="http://yaboot.ozlabs.org"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="-* ~ppc -ppc64"
+IUSE="ibm"
+
+DEPEND="sys-apps/powerpc-utils"
+RDEPEND="!ibm? ( sys-fs/hfsutils
+ sys-fs/hfsplusutils
+ sys-fs/mac-fdisk )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ cp "${FILESDIR}/new-ofpath" "${S}/ybin/ofpath"
+
+ # dual boot patch
+ epatch "${FILESDIR}/yabootconfig-1.3.13.patch"
+ epatch "${FILESDIR}/chrpfix.patch"
+ if [[ "$(gcc-major-version)" -eq "3" ]]; then
+ epatch "${FILESDIR}/${PN}-nopiessp.patch"
+ fi
+ if [[ "$(gcc-major-version)" -eq "4" ]]; then
+ epatch "${FILESDIR}/${P}-nopiessp-gcc4.patch"
+ fi
+
+ # Error only on real errors, for prom printing format compile failure
+ sed -i "s:-Werror:-Wno-error:g" Makefile
+
+ epatch "${FILESDIR}/${PN}-stubfuncs.patch"
+}
+
+src_compile() {
+ export -n CFLAGS
+ export -n CXXFLAGS
+ [ -n "$(tc-getCC)" ] || CC="gcc"
+ emake PREFIX=/usr MANDIR=share/man CC="$(tc-getCC)" || die
+}
+
+src_install() {
+ sed -i -e 's/\/local//' etc/yaboot.conf
+ make ROOT="${D}" PREFIX=/usr MANDIR=share/man install || die
+ mv "${D}/etc/yaboot.conf" "${D}/etc/yaboot.conf.sample"
+}