diff options
author | 2015-02-15 07:07:42 +0000 | |
---|---|---|
committer | 2015-02-15 07:07:42 +0000 | |
commit | 3aa2de2d6913ce3739366daf16bd958913210bba (patch) | |
tree | 64d5e1af1602f9a5b7e25b92feade39071e9b20d /sys-firmware | |
parent | reland multislot logic now that the three packages impacted have been updated (diff) | |
download | gentoo-2-3aa2de2d6913ce3739366daf16bd958913210bba.tar.gz gentoo-2-3aa2de2d6913ce3739366daf16bd958913210bba.tar.bz2 gentoo-2-3aa2de2d6913ce3739366daf16bd958913210bba.zip |
Avoid downloading files that are not used (e.g. no source tarball for USE=binary).
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Diffstat (limited to 'sys-firmware')
-rw-r--r-- | sys-firmware/seabios/ChangeLog | 8 | ||||
-rw-r--r-- | sys-firmware/seabios/seabios-1.7.5.ebuild | 25 |
2 files changed, 22 insertions, 11 deletions
diff --git a/sys-firmware/seabios/ChangeLog b/sys-firmware/seabios/ChangeLog index 920efeee4ff4..9861400e0567 100644 --- a/sys-firmware/seabios/ChangeLog +++ b/sys-firmware/seabios/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-firmware/seabios -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-firmware/seabios/ChangeLog,v 1.36 2014/11/08 18:25:36 ago Exp $ +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-firmware/seabios/ChangeLog,v 1.37 2015/02/15 07:07:42 vapier Exp $ + + 15 Feb 2015; Mike Frysinger <vapier@gentoo.org> seabios-1.7.5.ebuild: + Avoid downloading files that are not used (e.g. no source tarball for + USE=binary). 08 Nov 2014; Agostino Sarubbo <ago@gentoo.org> -seabios-1.6.3.ebuild, -seabios-1.7.0.ebuild, -seabios-1.7.1.ebuild, -seabios-1.7.2.1.ebuild, diff --git a/sys-firmware/seabios/seabios-1.7.5.ebuild b/sys-firmware/seabios/seabios-1.7.5.ebuild index 1cc4c7efc3ac..1c92d33025cb 100644 --- a/sys-firmware/seabios/seabios-1.7.5.ebuild +++ b/sys-firmware/seabios/seabios-1.7.5.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-firmware/seabios/seabios-1.7.5.ebuild,v 1.3 2014/09/13 17:07:07 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-firmware/seabios/seabios-1.7.5.ebuild,v 1.4 2015/02/15 07:07:42 vapier Exp $ EAPI=5 @@ -20,11 +20,9 @@ if [[ ${PV} = *9999* || ! -z "${EGIT_COMMIT}" ]]; then inherit git-2 else KEYWORDS="amd64 ~ppc ~ppc64 x86 ~amd64-fbsd ~x86-fbsd" - SRC_URI="http://code.coreboot.org/p/seabios/downloads/get/${P}.tar.gz - http://code.coreboot.org/p/seabios/downloads/get/bios.bin-${PV}.gz - http://dev.gentoo.org/~cardoe/distfiles/${P}.tar.gz - http://dev.gentoo.org/~cardoe/distfiles/bios.bin-${PV}.gz - ${BACKPORTS:+http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz}" + SRC_URI="!binary? ( http://code.coreboot.org/p/seabios/downloads/get/${P}.tar.gz ) + binary? ( http://code.coreboot.org/p/seabios/downloads/get/bios.bin-${PV}.gz ) + ${BACKPORTS:+http://dev.gentoo.org/~cardoe/distfiles/${P}-${BACKPORTS}.tar.xz}" fi DESCRIPTION="Open Source implementation of a 16-bit x86 BIOS" @@ -66,13 +64,22 @@ pkg_setup() { use binary || python-any-r1_pkg_setup } +src_unpack() { + default + + # This simplifies the logic between binary & source builds. + mkdir -p "${S}" +} + src_prepare() { + use binary && return + if [[ -z "${EGIT_COMMIT}" ]]; then sed -e "s/VERSION=.*/VERSION=${PV}/" \ - -i "${S}/Makefile" + -i Makefile || die else sed -e "s/VERSION=.*/VERSION=${PV}_pre${EGIT_COMMIT}/" \ - -i "${S}/Makefile" + -i Makefile || die fi epatch_user |