diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-05-18 17:44:35 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-05-18 17:44:35 +0000 |
commit | c23c10a156a1a82b5b572f7288bda7610d5b1874 (patch) | |
tree | c645e5d11a232d0e13e5d50f72721137e5a0bea9 /sys-firmware | |
parent | Add ppc/ppc64 keywords as this project can build on any arch (it will still g... (diff) | |
download | gentoo-2-c23c10a156a1a82b5b572f7288bda7610d5b1874.tar.gz gentoo-2-c23c10a156a1a82b5b572f7288bda7610d5b1874.tar.bz2 gentoo-2-c23c10a156a1a82b5b572f7288bda7610d5b1874.zip |
Add USE=binary support with upstream tarball #459346 by reno reckling.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Diffstat (limited to 'sys-firmware')
-rw-r--r-- | sys-firmware/vgabios/ChangeLog | 8 | ||||
-rw-r--r-- | sys-firmware/vgabios/metadata.xml | 4 | ||||
-rw-r--r-- | sys-firmware/vgabios/vgabios-0.7a-r1.ebuild | 72 |
3 files changed, 82 insertions, 2 deletions
diff --git a/sys-firmware/vgabios/ChangeLog b/sys-firmware/vgabios/ChangeLog index 19d796b07d9a..01515a48f65e 100644 --- a/sys-firmware/vgabios/ChangeLog +++ b/sys-firmware/vgabios/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-firmware/vgabios # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-firmware/vgabios/ChangeLog,v 1.5 2014/04/30 21:06:47 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-firmware/vgabios/ChangeLog,v 1.6 2014/05/18 17:44:35 vapier Exp $ + +*vgabios-0.7a-r1 (18 May 2014) + + 18 May 2014; Mike Frysinger <vapier@gentoo.org> +vgabios-0.7a-r1.ebuild, + metadata.xml: + Add USE=binary support with upstream tarball #459346 by reno reckling. 30 Apr 2014; Mike Frysinger <vapier@gentoo.org> vgabios-0.7a.ebuild: Add epatch_user support #487100 by Hristo Venev. diff --git a/sys-firmware/vgabios/metadata.xml b/sys-firmware/vgabios/metadata.xml index c2e341220446..5ff1b92d840d 100644 --- a/sys-firmware/vgabios/metadata.xml +++ b/sys-firmware/vgabios/metadata.xml @@ -6,5 +6,7 @@ <name>Doug Goldstein</name> </maintainer> <herd>qemu</herd> + <use> + <flag name='binary'>Use official upstream pre-built binaries (only default and cirrus images)</flag> + </use> </pkgmetadata> - diff --git a/sys-firmware/vgabios/vgabios-0.7a-r1.ebuild b/sys-firmware/vgabios/vgabios-0.7a-r1.ebuild new file mode 100644 index 000000000000..c191b31caef4 --- /dev/null +++ b/sys-firmware/vgabios/vgabios-0.7a-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-firmware/vgabios/vgabios-0.7a-r1.ebuild,v 1.1 2014/05/18 17:44:35 vapier Exp $ + +EAPI=4 + +# Can't really call them backports when they're fixes that upstream +# won't carry +FIXES=1 + +inherit eutils + +DESCRIPTION="VGA BIOS implementation" +HOMEPAGE="http://www.nongnu.org/vgabios/" +SRC_URI="http://savannah.gnu.org/download/${PN}/${P}.tgz + http://dev.gentoo.org/~cardoe/distfiles/${P}-fixes-${FIXES}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="binary debug" + +DEPEND="!binary? ( sys-devel/dev86 )" +RDEPEND="" + +src_prepare() { + [[ -n ${FIXES} ]] && \ + EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \ + epatch + + epatch_user +} + +src_compile() { + if ! use binary ; then + emake clean # Necessary to clean up the pre-built pieces + emake biossums + emake + fi +} + +src_install() { + insinto /usr/share/vgabios + + # Stock VGABIOS + newins VGABIOS-lgpl-latest.bin vgabios.bin + use debug && newins VGABIOS-lgpl-latest.debug.bin vgabios.debug.bin + + # Cirrus + newins VGABIOS-lgpl-latest.cirrus.bin vgabios-cirrus.bin + use debug && newins VGABIOS-lgpl-latest.cirrus.debug.bin \ + vgabios-cirrus.debug.bin + + if ! use binary ; then + # QXL + newins VGABIOS-lgpl-latest.qxl.bin vgabios-qxl.bin + use debug && newins VGABIOS-lgpl-latest.qxl.debug.bin \ + vgabios-qxl.debug.bin + + # Standard VGA + newins VGABIOS-lgpl-latest.stdvga.bin vgabios-stdvga.bin + use debug && newins VGABIOS-lgpl-latest.stdvga.debug.bin \ + vgabios-stdvga.debug.bin + + # VMWare + newins VGABIOS-lgpl-latest.vmware.bin vgabios-vmware.bin + use debug && newins VGABIOS-lgpl-latest.vmware.debug.bin \ + vgabios-vmware.debug.bin + else + ewarn "USE=binary only includes default & cirrus bios builds" + fi +} |