diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-11-25 04:27:12 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-11-25 04:27:12 +0000 |
commit | 7d9f8e08bf76d47aa835b0fc5bcdccbf407b8ff4 (patch) | |
tree | 424080b2ec6a8d2411da816939449d65b30ffba0 /sys-boot/gnu-efi/gnu-efi-3.0s.ebuild | |
parent | Push out fixes from upstream for #439432 and 439988. (diff) | |
download | historical-7d9f8e08bf76d47aa835b0fc5bcdccbf407b8ff4.tar.gz historical-7d9f8e08bf76d47aa835b0fc5bcdccbf407b8ff4.tar.bz2 historical-7d9f8e08bf76d47aa835b0fc5bcdccbf407b8ff4.zip |
Version bump and update to EAPI=4 #412645 by Rod Smith. Disable QA checks on compiled objects as they do not make sense for bootloaders #329823 by Dane Smith. Disable ssp since that requires a C library (like glibc) to work, and does not make sense for bootloaders #444246 by Maxim Kammerer.
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64
Manifest-Sign-Key: 0xFB7C4156
Diffstat (limited to 'sys-boot/gnu-efi/gnu-efi-3.0s.ebuild')
-rw-r--r-- | sys-boot/gnu-efi/gnu-efi-3.0s.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/sys-boot/gnu-efi/gnu-efi-3.0s.ebuild b/sys-boot/gnu-efi/gnu-efi-3.0s.ebuild new file mode 100644 index 000000000000..d206aa81535e --- /dev/null +++ b/sys-boot/gnu-efi/gnu-efi-3.0s.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-boot/gnu-efi/gnu-efi-3.0s.ebuild,v 1.1 2012/11/25 04:27:08 vapier Exp $ + +EAPI="4" + +inherit eutils multilib + +MY_P="${PN}_${PV}" +DEB_VER="3.0i-4" +DESCRIPTION="Library for build EFI Applications" +HOMEPAGE="http://developer.intel.com/technology/efi" +SRC_URI="mirror://sourceforge/gnu-efi/${MY_P}.orig.tar.gz + mirror://debian/pool/main/g/gnu-efi/${PN}_${DEB_VER}.diff.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~x86" +IUSE="" + +DEPEND="sys-apps/pciutils" +RDEPEND="" + +S=${WORKDIR}/${P%?} + +# These objects get run early boot (i.e. not inside of Linux), +# so doing these QA checks on them doesn't make sense. +QA_EXECSTACK="usr/*/lib*efi.a:* usr/*/crt*.o" + +src_prepare() { + EPATCH_OPTS="-p1" epatch "${WORKDIR}"/*.diff + sed -i -e '/^CFLAGS/s:$: -fno-stack-protector:' Make.defaults || die #444246 +} + +_emake() { + emake prefix=${CHOST}- ARCH=${iarch} LIBDIR=$(get_libdir) "$@" +} + +src_compile() { + case ${ARCH} in + ia64) iarch=ia64 ;; + x86) iarch=ia32 ;; + amd64) iarch=x86_64 ;; + *) die "unknown architecture: $ARCH" ;; + esac + # The lib subdir uses unsafe archive targets, and + # the apps subdir needs gnuefi subdir + _emake -j1 +} + +src_install() { + _emake install INSTALLROOT="${D}"/usr + dodoc README* ChangeLog +} |