diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-10-14 18:54:46 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-10-14 18:54:46 +0000 |
commit | 90cfc2047523d3fbddd68c00fbccf540d53b9226 (patch) | |
tree | fc667fe3d00066d342e60eb94884fbc74afbae9b /sys-apps/flashrom | |
parent | amd64 stable wrt #385699 (diff) | |
download | gentoo-2-90cfc2047523d3fbddd68c00fbccf540d53b9226.tar.gz gentoo-2-90cfc2047523d3fbddd68c00fbccf540d53b9226.tar.bz2 gentoo-2-90cfc2047523d3fbddd68c00fbccf540d53b9226.zip |
Add a live svn ebuild.
(Portage version: 2.2.0_alpha65/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/flashrom')
-rw-r--r-- | sys-apps/flashrom/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/flashrom/flashrom-9999.ebuild | 95 |
2 files changed, 101 insertions, 1 deletions
diff --git a/sys-apps/flashrom/ChangeLog b/sys-apps/flashrom/ChangeLog index 9609aa4accf8..6d623d5a71a6 100644 --- a/sys-apps/flashrom/ChangeLog +++ b/sys-apps/flashrom/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/flashrom # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/flashrom/ChangeLog,v 1.18 2011/09/20 16:03:21 nativemad Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/flashrom/ChangeLog,v 1.19 2011/10/14 18:54:46 vapier Exp $ + +*flashrom-9999 (14 Oct 2011) + + 14 Oct 2011; Mike Frysinger <vapier@gentoo.org> +flashrom-9999.ebuild: + Add a live svn ebuild. 20 Sep 2011; Andreas Schuerch <nativemad@gentoo.org> flashrom-0.9.4.ebuild: x86 stable, bug 383401 diff --git a/sys-apps/flashrom/flashrom-9999.ebuild b/sys-apps/flashrom/flashrom-9999.ebuild new file mode 100644 index 000000000000..f599dd34a916 --- /dev/null +++ b/sys-apps/flashrom/flashrom-9999.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/flashrom/flashrom-9999.ebuild,v 1.1 2011/10/14 18:54:46 vapier Exp $ + +EAPI="3" + +inherit eutils toolchain-funcs +if [[ ${PV} == "9999" ]] ; then + ESVN_REPO_URI="svn://coreboot.org/flashrom/trunk" + inherit subversion +else + SRC_URI="http://download.flashrom.org/releases/${P}.tar.bz2" + KEYWORDS="~amd64 ~arm ~x86" +fi + +DESCRIPTION="Utility for reading, writing, erasing and verifying flash ROM chips" +HOMEPAGE="http://flashrom.org/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="+atahpt +bitbang_spi +buspirate_spi dediprog +drkaiser ++dummy ft2232_spi +gfxnvidia +internal +nic3com +nicintel +nicintel_spi ++nicnatsemi +nicrealtek +ogp_spi +rayer_spi ++satasii +satamv +serprog +wiki" + +COMMON_DEPEND="atahpt? ( sys-apps/pciutils ) + dediprog? ( virtual/libusb:0 ) + drkaiser? ( sys-apps/pciutils ) + ft2232_spi? ( dev-embedded/libftdi ) + gfxnvidia? ( sys-apps/pciutils ) + internal? ( sys-apps/pciutils ) + nic3com? ( sys-apps/pciutils ) + nicintel? ( sys-apps/pciutils ) + nicintel_spi? ( sys-apps/pciutils ) + nicnatsemi? ( sys-apps/pciutils ) + nicrealtek? ( sys-apps/pciutils ) + rayer_spi? ( sys-apps/pciutils ) + satasii? ( sys-apps/pciutils ) + satamv? ( sys-apps/pciutils ) + ogp_spi? ( sys-apps/pciutils )" +RDEPEND="${COMMON_DEPEND} + internal? ( sys-apps/dmidecode )" +DEPEND="${COMMON_DEPEND} + sys-apps/diffutils" + +_flashrom_enable() { + local c="CONFIG_${2:-$(echo $1 | tr [:lower:] [:upper:])}" + args+=" $c=$(usex $1 yes no)" +} +flashrom_enable() { + local u + for u in "$@" ; do _flashrom_enable $u ; done +} + +src_compile() { + local progs=0 + local args="" + + # Programmer + flashrom_enable \ + atahpt bitbang_spi buspirate_spi dediprog drkaiser \ + ft2232_spi gfxnvidia nic3com nicintel nicintel_spi nicnatsemi nicrealtek \ + ogp_spi rayer_spi \ + satasii satamv serprog \ + internal dummy + _flashrom_enable wiki PRINT_WIKI + + # You have to specify at least one programmer, and if you specify more than + # one programmer you have to include either dummy or internal in the list. + for prog in ${IUSE//[+-]} ; do + case ${prog} in + internal|dummy|wiki) continue ;; + esac + + use ${prog} && : $(( progs++ )) + done + if [ $progs -ne 1 ] ; then + if ! use internal && ! use dummy ; then + ewarn "You have to specify at least one programmer, and if you specify" + ewarn "more than one programmer, you have to enable either dummy or" + ewarn "internal as well. 'internal' will be the default now." + args+=" CONFIG_INTERNAL=yes" + fi + fi + + # WARNERROR=no, bug 347879 + tc-export AR CC RANLIB + emake WARNERROR=no ${args} || die +} + +src_install() { + dosbin flashrom || die + doman flashrom.8 + dodoc ChangeLog README +} |