DIST flashrom-0.9.4.tar.bz2 293396 RMD160 b8742aae4d631a04c0fe8c8227b95fc9e7092a1d SHA1 93d727f3144e0a43cc2e792e40a37c97781a6257 SHA256 30e5a61a09160f142fdeec4a6c83cca495d7f2a9fc2eef480646889c3e9f0b3a
EBUILD flashrom-0.9.3.ebuild 2456 RMD160 29758eb8397fef0bec6f6a7e8397f274723ece67 SHA1 428b6b8dcd69c2be714fd8c24701a06894a007c0 SHA256 a4e05aa015f77f9d923cf28f3a0aba5ba6850ed2d4433349bcfdca8cb48e58be
EBUILD flashrom-0.9.4.ebuild 2617 RMD160 4cf8369a76454df2b4c70f16dd2e8e147e7c2bc8 SHA1 a9545feb0a1c291561d11cfbf3de6a8f2675467b SHA256 67f753cbab7adcd13ce5acb4e5660a5a1229cd99e85fbfb9008cd435be7c8bd8
-MISC ChangeLog 2949 RMD160 eddf68456f4dfd9c572a0bed485d3441cd3735eb SHA1 5d57e5b39b6024bb0260b565714a68d030aebac2 SHA256 53740b716644f2e1297e7488a41ea822fd76b30f0467af41aef0852d224dd2b4
+EBUILD flashrom-9999.ebuild 2733 RMD160 930d58ad6583c26ff68d589a7653ffa060693eba SHA1 24a648f9929518d904e2413d5f6604e0bc0ad5c2 SHA256 de43ef7bf48e28c390c01700de432a82b61a781356e78384f36cfe74fa68eab5
+MISC ChangeLog 3075 RMD160 f56a65a85cb7c666112a59952fd0e07d3c62ae5c SHA1 af9b657d61ce8ba7e9b983dcaef82bd7d2085eab SHA256 9e4a740dbda546c083d2e0ba5bdee59ce57762af562c4a8c742a71aedb5caedd
MISC metadata.xml 3292 RMD160 5693f6251cbe00ff84a77d27083fb89cd9f19dad SHA1 ac3e6f3563d91795cc9bdb01816a49d8912551ca SHA256 a3ad4b81cab89f557340a83761172cb41c980d1dac5a2dffd8d2bc3e073d83f3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
-iJwEAQEIAAYFAk59sbgACgkQfXuS5UK5QB2PeQQAln78WtIDWrcUKRGjwr5urtuI
-+X+VXnS9W2t7mPumGbAwKaxZvaMSfeWnWnT+K4Leta3OgP/MV4LjbNNIZzdgB4e8
-Lg03HERx/SZhkgUPHWk/8QDy2hzjDiTf3z2WwD3qPlNmdIw0VV2CClKVhCyQvuQ1
-szH6+1dQK2vg2WNBS6w=
-=tbBS
+iF4EAREIAAYFAk6YhX0ACgkQaC/OocHi7JasUgD/aEoauP/hroQTIUWiEy5D9Peq
+0qRQG+HKblBKrqV5MzkA/j7xgWHtQCJ2fp4Wuujfuq6AechFhAtlUcnxYD57hb5M
+=SQdd
-----END PGP SIGNATURE-----
--- /dev/null
+# 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
+}