summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2013-10-22 16:25:34 +0000
committerAnthony G. Basile <blueness@gentoo.org>2013-10-22 16:25:34 +0000
commit0f683e5a2f82d5e2fc17fa84984702d3d7d2a9a2 (patch)
tree093bd9f18bf7a1c306256b07aced2c172551e151 /net-misc/bfgminer
parentsci-chemistry/relax: Version Bump (diff)
downloadhistorical-0f683e5a2f82d5e2fc17fa84984702d3d7d2a9a2.tar.gz
historical-0f683e5a2f82d5e2fc17fa84984702d3d7d2a9a2.tar.bz2
historical-0f683e5a2f82d5e2fc17fa84984702d3d7d2a9a2.zip
Version bumps
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0xF52D4BBA
Diffstat (limited to 'net-misc/bfgminer')
-rw-r--r--net-misc/bfgminer/ChangeLog10
-rw-r--r--net-misc/bfgminer/Manifest38
-rw-r--r--net-misc/bfgminer/bfgminer-3.0.9.ebuild134
-rw-r--r--net-misc/bfgminer/bfgminer-3.2.2.ebuild107
-rw-r--r--net-misc/bfgminer/bfgminer-3.3.0.ebuild114
-rw-r--r--net-misc/bfgminer/metadata.xml4
6 files changed, 389 insertions, 18 deletions
diff --git a/net-misc/bfgminer/ChangeLog b/net-misc/bfgminer/ChangeLog
index 18ebcd6d6da3..ab6cfa5b86c2 100644
--- a/net-misc/bfgminer/ChangeLog
+++ b/net-misc/bfgminer/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-misc/bfgminer
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/ChangeLog,v 1.48 2013/09/19 16:25:45 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/ChangeLog,v 1.49 2013/10/22 16:25:24 blueness Exp $
+
+*bfgminer-3.3.0 (22 Oct 2013)
+*bfgminer-3.0.9 (22 Oct 2013)
+*bfgminer-3.2.2 (22 Oct 2013)
+
+ 22 Oct 2013; Anthony G. Basile <blueness@gentoo.org> +bfgminer-3.0.9.ebuild,
+ +bfgminer-3.2.2.ebuild, +bfgminer-3.3.0.ebuild, metadata.xml:
+ Version bumps
*bfgminer-2.10.14 (19 Sep 2013)
*bfgminer-3.2.1 (19 Sep 2013)
diff --git a/net-misc/bfgminer/Manifest b/net-misc/bfgminer/Manifest
index 88d84f9777eb..560b7c3b9e5b 100644
--- a/net-misc/bfgminer/Manifest
+++ b/net-misc/bfgminer/Manifest
@@ -7,27 +7,33 @@ AUX Bugfix-Fix-building-without-OpenCL-support.patch 730 SHA256 4b6d2c1e1b013215
DIST bfgminer-2.10.14.tbz2 6170590 SHA256 09b88d6c1ea9691d0393c8db3e084fdefdb9b68953694ac7f158c7739c02a117 SHA512 9bdf492c955a0d4a1f6830594b4d6768ace1eebb3de00d6cd4018bd1a1b4bf1c7b0d3e651e1ced917404542dfabf35eb717e3790f8535b7867d8d98c291064fd WHIRLPOOL 6415809892cef6cf12b571fb3caffe446f79a954ac4bd61ab46f4519abcca9afe431bd74adc2adede61f67273fea14f97592c3402c94c5bb735df75230a12f24
DIST bfgminer-2.5.0.tbz2 6015548 SHA256 81a23270cac2ad49c5ca70f498c1194d245fff6aba5f3b9e5ef1f3e6fa1c9482 SHA512 6c4517ef36300d68ea721be63380c491932b01666d49dad87f4d1752b70606b6abe2e4a30c5b5ce0b72b9a029a588503ac9dee1f9d9e9b3fefd483ccdda37bdc WHIRLPOOL 3aa165a96cfc60ad126bb17dcb989682be3dd46f556caa7c71791da5e49e87129dd139c3c476894837f4c035a30657d6372a34ef9a79979baccb20ae56b9e543
DIST bfgminer-3.0.8.tbz2 5974355 SHA256 eeb2e0760af92907e7bf9e2d5034979741f82d57969df22093a135391aac631e SHA512 bd0b718f317ca3b825362cfaf47948589fed42e02af9fd7a7f63e6f531c7a57402befd768af2a9a9804dfcf5a5d9cf47226f11282208bd726a508052b8777955 WHIRLPOOL f72eb31f2f33080a4a95b75caae5556a23ce7a15c4697568f9668bd05a98325e636b3dde37116ae371035418b6a52ff7c453be1d2aff10cd6aba9030e3bc7477
+DIST bfgminer-3.0.9.tbz2 5975993 SHA256 fde1672f1d013bc6ee031e34e2ac6aa1a09416771a65375716872afda27dcefb SHA512 2342cdbc019fe7d907fc965a8099072ab0bc7cb096d438ea230eb526e72c50030b16663b662f0957d88bfa57181f0b544caa11527a18694b2c449bcbdad8759c WHIRLPOOL b2eddd5adfa609ec33f282710cd5adba8c6c65e61ee2bec6fb4e88ad20189ee8d516aef72c2b49bcd59e4724f52d1fa7796751af6ad6eb1704001468f0b25c64
DIST bfgminer-3.2.1.tbz2 954271 SHA256 db8cdc4272950e12804961d21365ed96f3ef5262549cc0dfd6ebd2004e5d57d8 SHA512 1f1821a1b0fb724b09d7dd9e01ce9bb3f59ff7c754bcc170aae849b567336e9114bd4a71fc33e6d59195ff77f53d1daabe9204ab08c02429a7d5456d768b041e WHIRLPOOL aa1ef76dcdfb502c7775dc882c0c9ee0b1be96a0efd6398ef9ea6c302859c8734d7687c65c9615a9b2b1251b10b54afb0f7f1fa28c897298dee609db4cc9f0be
+DIST bfgminer-3.2.2.tbz2 955999 SHA256 9156093d67794f2923aba1c8cc699ff9394058705d8134bc77ccb49220773e2e SHA512 2d77348c89c6b2b767ebd2bd2fec94a49282f7efd19b97b9d946eac4b0cda73141dbaa9922525b19aa70d3b7d3114b9bd9a3db30cad92c6e1f57d1b00e683ceb WHIRLPOOL a27a23fb0a8a1ad09cc5041998a463a1d90cdeb788775d43712a2711c0b334e1f6b239df762bf6ed275f2defe5f90c578492cc021f21d913415ecfd297e70c6d
+DIST bfgminer-3.3.0.tbz2 996465 SHA256 773435dafb9b13c4450480a7731d024ffb2b7ac34d8511c9325d2a703f339ef6 SHA512 832acb67c390aa0671e1be07fe1c0c0bb353b00208c95edbfab16d6d169d8866cc6faebb33e2a380fbf82bfc49e0e68384816f98654d89afa16920efccb3777b WHIRLPOOL 9c2e0943a0ea5b109abd4e97f2e8d998be7ddf9b83053e0b88518566530d482c04610277fe3f4f94656f27537251fcf01a3eb6af62edb564037a71dd1d3afd70
EBUILD bfgminer-2.10.14.ebuild 3029 SHA256 fa274f8706db91edd8038cb7f07e17a597819b844354e220df1ff28c60ae1429 SHA512 e0ef7e75d2f1b5a4779151dd0eba12b7dfe2813ae90acb2d89895bb137fad7f1c20b9d71b9b79ca446d1178d8b6412a104eafc5f855256d9e29dcbbffcd8e2ac WHIRLPOOL e3eab18bb0fdcc5e237d522c28a1826a2f8cd0775c9158d33a1f4f4dfb663d43437e3f41c61a2393605ae484d998c4019dbcbe863921091df296d8c4bdcea3c5
EBUILD bfgminer-2.5.0.ebuild 2762 SHA256 801c8701c4f871a90ecb812dee4ae4aac128fb6b2903772f00c807239f5997ab SHA512 2dd4c2d5feecca9d49a6b74394bb2882c29922cea305ce973a1d6816208457722799c63d9016e1f9d249f7bcaa68ff7b1d72d9363199f7c5c564c886ae72dda3 WHIRLPOOL eaeb8f0837d310da3e8b67376d4f9c04e3d2850305f7878a6041dcfae039f0beac76190f4a8a5bd77a51ba2362afe1d4ef8ec77797662df65c31960628caec4b
EBUILD bfgminer-3.0.8.ebuild 3102 SHA256 6675a73546316746676ec877af12e298bdf197b482190631755a690f21796e89 SHA512 f1dff975c59bc314e57a3ac539694a7d81dde6db9848cc5b32ed6f5ddd7513863d5b920c06c953edeb3fc331fd4aa88f7b95b40b2d9ec3ec21d9118fdd75b4dd WHIRLPOOL c5caaf5fe834b6c2597755486fb1efbd8c06ca9d4019cfee182710c1590617332186dda83f7c25d08b033cad8170314ebede65a247d2b9c0a92573cd3b1811df
+EBUILD bfgminer-3.0.9.ebuild 3102 SHA256 2b9765a3e4ca7b71d3a82ac448de496eda1187b7ee35f108cf403e561aee1456 SHA512 85582f9ee35c2485ed84821d0329b5cc3924e1ac8ecebdb871aa98a19e729d92c9102c8d267042f40719a6bfbe0ffd2793c0520bd4b44de29898f6a7335e60c9 WHIRLPOOL 58b54939866726c317ee736f80a3d2de7ee70bf860a01de846bfeaf3f9c519153f34e180ef280672eec741c1191c52a306b930ae451a0a842ddb4a0438cc1c69
EBUILD bfgminer-3.2.1.ebuild 2212 SHA256 13ec26950b3b0d1cbfd79ec76b3748f586718929d5c8c030ee37618e666e4295 SHA512 a08ee5538ea9473607f5bbd089b38e00ac3e2747405ce65f8dbb0d5dd26f3eda5566e04add65b1ce06e6dcf8837221f938e7252ae2c7f86998e44c6658431de4 WHIRLPOOL 6e00d034cbb46c180d3570fe05fb69c46f4410f637bf24e48efaff33d3d9a0cf17174a121d03c7fcf4b7e0a9ea14103e1d75bbb8ea47e489a369827c9d5b7aaa
-MISC ChangeLog 9929 SHA256 09ddbadf19d54739d1b1b9fe047cdb1530ff9accd9c8001eb9f999ab541ef6ba SHA512 ded665ac526aaeba1925a77d3ab3f76babe63cd56635070fa9ba9712c02edc14f83d3d0d078bb16551a7e18926f851c50cf065c976ff4e8fcafd2fa018eb4bde WHIRLPOOL 4104ce1ef1cd68d145a4c35da58a9a55cdb20dac65d20e347807a7ee4fa7a965fd8d65c21c85dc579c74e6fe6ae1a0573bfffbcf9618032e09002d665e37295a
-MISC metadata.xml 1604 SHA256 7853e771f07845a6ecbf52081127eb813c44b8ecd580347d6d0db8d6360fd013 SHA512 96db15a4ad0cdebcd7a1709e72685dea68ac3d351ea6edd511d2edaf0d905902ab80a81faaba3061893df53052c4c1459797377b9a23ddc9d9601ea058c1b807 WHIRLPOOL b7f54cb3e71ed10e22bae2e749a2ec06fd2903e6f69a9d057f3e8c4b8124fd59a7ea7bd4b4ed61b1a37e4711d4990a8d87378fad646e779afd20c6c8ad59848d
+EBUILD bfgminer-3.2.2.ebuild 2212 SHA256 aa6e694e739874f5a76b78263a73cfa82135ae6ab41a18da2cbf43f70df1eafa SHA512 e95375f27cb7c1a688abb3ad6c9aeb14b33173976ac7eae349c75a1b9eae3ba19a5960a9188afe4e3dca49eec2ab34c96274ad3b18e3ef7a1a4b9128f87ffe81 WHIRLPOOL 6d34649e23f0c80291a5223da24453d0036c021eabe76be95764e8a0a710d65634c21a0efde90fb50cdfedfb4ef13d640c29247aab1edd2c55d777f07e700276
+EBUILD bfgminer-3.3.0.ebuild 2435 SHA256 2981dee49abfc570dc84cd0ac3084600eebbf302a03a74e782e58d70c43131b2 SHA512 1c2fa8bb55659b9c70d622be0a911bfc586a719c871b1a2a285bcf1e449da9decf141a68ceb6b46f50315c6114aaf1c9bc9e207bd6f9644aceb9a21cf465b1ba WHIRLPOOL 6a7cb05675fa4a3585ad32160ea8f34a0cb99095200aac9f177d23974779714725b216b4cde85138be49067d944fc74ba0f3337883a07f6ac6ddea43b9112b46
+MISC ChangeLog 10180 SHA256 b98c8fc2d01801f5ac23754345c5dbeadf8532a66ae9a9ed168adfa314f32d52 SHA512 4be0b23e64c0f621184d7e56928181ad884848f8cbc3e814ac9ccd27408e3e0fcb15287699e4c2697ee94015a695244a45da8866483de50b10c59280658318ec WHIRLPOOL dad26da1dcacb2ca19755abe524a419fe6a62a2976495e6c589f230d35a992935b972fecff403d19a08d0e207ab1c97a4d2be1379bfca1229696c599a27d3dfd
+MISC metadata.xml 1760 SHA256 0ca63fd6ed68db0817a16e166a0a558c51b6bfba3acc54d8f304065dfde5470f SHA512 f51d127b4f708a0ba01777f44510646b2da59b0496c8f4df62c577d501651f4b09ee63bef312f25f6b45f872f59883f24634bc1c5d00979ae1ef99363e4a2c96 WHIRLPOOL 857c6d1475520ec717e3b8d6916cd83b335711840443d8b8a9b227c51d67f2f6aac550513b1ad5fa70000ce13a40e40ef1ffc0e290d41bc9651e2a444f2bfa8e
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.20 (GNU/Linux)
+Version: GnuPG v2.0.22 (GNU/Linux)
-iQIcBAEBCAAGBQJSOyW6AAoJEJOE+m71LUu6QLkQAIIKMEufCz+azeRn9XA3Qtsp
-M1aBkQnjqTkiWOOwINtLOorUFg1PC7K1NA7rLxghZinZZED0woLXGDJxpjuxbhIW
-2OfH/lq4Kmf4wfTw6+vfD0yiEtkzHdAHkS9DhWL+GJCPOBeKpkjjnflJp/u2w0Px
-mrVJcjpUTSfkGKYabXF+jOIZbaHK8mztf0gIpP61vZqOG82agVa6QVPDWfQOcr88
-83iTga19wSfOf/1tAwyXSN4jUfCiJ0d943fZeaS7WbhO2UjVnrV69soTLc1puXvK
-d29dTD9HM8/TaaYUnvTw2cuVe8Gko5rv7eVu93b3U+g7NpfJop/9Q5lh5UoVaaFB
-tJIktBZY1vSTHYI6BUWq6xE7zMXROZ80Eos1fWWd3JomWt0Oed7CZQgvdjOUnxln
-j7knoQOyR3DV/SL/5+b6+qRJWvkhF/c375NwVP1XeJeQAk0jvuUy0HmG3bQfEBEe
-4XTEIw+VOPLD+9JqDydXLazeT3YazdzmCZurJC+0YTneunmrPGOxqzUrDJe/LYBZ
-e0tksTJcgY64PfytRl3SPKuaIaHUsI5PODpvElTdyGhV1mEi2a2aL1dQzB65N1Ub
-DXd5ntShSpy3ztF+l95moXJxJ5OzEDyKkjdHUzAW8FGVK4P1S8jG941Pf7W7X+bd
-kttzYtcPQMff4l2oEBdU
-=aW+J
+iQIcBAEBCAAGBQJSZqcAAAoJEJOE+m71LUu6GGYQAK8VsDvbaqhPMPrC2daO5stp
+T0/mkFfTRtrZreZ/bwFaUCdptDLfBdY4r6G0vQKFPv6EH41LlXWxHShlyHpf9TYm
+hQno1eJPsPPIoM2z7//h60/zexJH5WCPMYdi+jEQGR5xB9OhEV1TYdrM/ObaT7d/
+6VqE3K3Hino71g5PWU4IkSr5+NjE/SqRfqRYvbppcllfgv87exQC0ThJxTMFN+Ki
+z5KWBk4TGxsncPuw+vgP+AWsQ4/4mWe6X4NdbFohR0r8uwyMhJyG0bfSkt7Iu/Ih
+TR2cHdlOR//pHMf8jeOX9ghhix1rtmuYn08qjVaShRDzsqddQYnLbRmhRyqFGbl8
+pxPSmVBg7vKIbb8j1kfBAPaw76sDXuPj+ZbrUKpWbxd2b7RnC8T4EEk28BmHAA/9
+zx/aOrnISU79xY2jgYTq5eeeAnG4ZlLSDMD9jQHR0AkP0BTgMUDBioVCjVYsTXiv
+of2/6qdnFObg4ZIQ+O6e9A+44esUv2kH0oFGOZdZjAKPpUS8sEVJbTPuxHYI/qTN
+TVCqQTQfaHFIsA9S5eZIelNdYQiWD+QRJJIW0MvcSH1a4pqkr1c7nRj+clHXoeSa
+h+bClaRRE6mrOjoFExU+eNxs7AsSwomSSe56cfjigZa2fu6YuGEh9QWUN/XNUNSC
+a6rHIypN2oDJ2sR6I1vn
+=sGD0
-----END PGP SIGNATURE-----
diff --git a/net-misc/bfgminer/bfgminer-3.0.9.ebuild b/net-misc/bfgminer/bfgminer-3.0.9.ebuild
new file mode 100644
index 000000000000..d956e78ac417
--- /dev/null
+++ b/net-misc/bfgminer/bfgminer-3.0.9.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-3.0.9.ebuild,v 1.1 2013/10/22 16:25:24 blueness Exp $
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="Modular Bitcoin ASIC/FPGA/GPU/CPU miner in C"
+HOMEPAGE="https://bitcointalk.org/?topic=168174"
+SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
+
+IUSE="+adl altivec avalon bitforce +cpumining examples hardened icarus modminer ncurses +opencl padlock scrypt sse2 sse2_4way sse4 +udev x6500 ztex"
+REQUIRED_USE="
+ || ( avalon bitforce cpumining icarus modminer opencl x6500 ztex )
+ adl? ( opencl )
+ altivec? ( cpumining ppc ppc64 )
+ padlock? ( cpumining || ( amd64 x86 ) )
+ scrypt? ( || ( cpumining opencl ) )
+ sse2? ( cpumining || ( amd64 x86 ) )
+ sse4? ( cpumining amd64 )
+"
+
+DEPEND="
+ net-misc/curl
+ ncurses? (
+ sys-libs/ncurses
+ )
+ >=dev-libs/jansson-2
+ net-libs/libblkmaker
+ udev? (
+ virtual/udev
+ )
+ x6500? (
+ virtual/libusb:1
+ )
+ ztex? (
+ virtual/libusb:1
+ )
+"
+RDEPEND="${DEPEND}
+ opencl? (
+ virtual/opencl
+ )
+"
+DEPEND="${DEPEND}
+ virtual/pkgconfig
+ sys-apps/sed
+ sse2? (
+ >=dev-lang/yasm-1.0.1
+ )
+ sse4? (
+ >=dev-lang/yasm-1.0.1
+ )
+"
+
+src_prepare() {
+ sed -i 's/\(^\#define WANT_.*\(SSE\|PADLOCK\|ALTIVEC\)\)/\/\/ \1/' miner.h
+}
+
+src_configure() {
+ local CFLAGS="${CFLAGS}"
+ if ! use altivec; then
+ sed -i 's/-faltivec//g' configure
+ else
+ CFLAGS="${CFLAGS} -DWANT_ALTIVEC=1"
+ fi
+ use padlock && CFLAGS="${CFLAGS} -DWANT_VIA_PADLOCK=1"
+ if use sse2; then
+ if use amd64; then
+ CFLAGS="${CFLAGS} -DWANT_X8664_SSE2=1"
+ else
+ CFLAGS="${CFLAGS} -DWANT_X8632_SSE2=1"
+ fi
+ fi
+ use sse2_4way && CFLAGS="${CFLAGS} -DWANT_SSE2_4WAY=1"
+ use sse4 && CFLAGS="${CFLAGS} -DWANT_X8664_SSE4=1"
+ use hardened && CFLAGS="${CFLAGS} -nopie"
+
+ CFLAGS="${CFLAGS}" \
+ econf \
+ $(use_enable adl) \
+ $(use_enable avalon) \
+ $(use_enable bitforce) \
+ $(use_enable cpumining) \
+ $(use_enable icarus) \
+ $(use_enable modminer) \
+ $(use_with ncurses curses) \
+ $(use_enable opencl) \
+ $(use_enable scrypt) \
+ --with-system-libblkmaker \
+ $(use_with udev libudev) \
+ $(use_enable x6500) \
+ $(use_enable ztex)
+ # sanitize directories
+ sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/bfgminer"'"~' config.h
+}
+
+src_install() {
+ dobin bfgminer
+ dobin bfgminer-rpc
+ dodoc AUTHORS HACKING NEWS README README.RPC
+ if use scrypt; then
+ dodoc README.scrypt
+ fi
+ if use icarus || use bitforce; then
+ dodoc README.FPGA
+ fi
+ if use bitforce; then
+ dobin bitforce-firmware-flash
+ fi
+ if use modminer || use x6500; then
+ insinto /usr/lib/bfgminer/bitstreams
+ doins bitstreams/fpgaminer*.bit
+ dodoc bitstreams/COPYING_fpgaminer
+ fi
+ if use opencl; then
+ insinto /usr/lib/bfgminer
+ doins *.cl
+ fi
+ if use ztex; then
+ insinto /usr/lib/bfgminer/ztex
+ doins bitstreams/ztex*.bit
+ dodoc bitstreams/COPYING_ztex
+ fi
+ if use examples; then
+ docinto examples
+ dodoc api-example.php miner.php api-example.c api-example.py
+ fi
+}
diff --git a/net-misc/bfgminer/bfgminer-3.2.2.ebuild b/net-misc/bfgminer/bfgminer-3.2.2.ebuild
new file mode 100644
index 000000000000..625e7fb230e7
--- /dev/null
+++ b/net-misc/bfgminer/bfgminer-3.2.2.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-3.2.2.ebuild,v 1.1 2013/10/22 16:25:24 blueness Exp $
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="Modular Bitcoin ASIC/FPGA/GPU/CPU miner in C"
+HOMEPAGE="https://bitcointalk.org/?topic=168174"
+SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
+
+IUSE="+adl avalon bitforce cpumining examples hardened icarus lm_sensors modminer ncurses +opencl proxy scrypt +udev unicode x6500 ztex"
+REQUIRED_USE="
+ || ( avalon bitforce cpumining icarus modminer opencl proxy x6500 ztex )
+ adl? ( opencl )
+ lm_sensors? ( opencl )
+ scrypt? ( || ( cpumining opencl ) )
+ unicode? ( ncurses )
+"
+
+DEPEND="
+ net-misc/curl
+ ncurses? (
+ sys-libs/ncurses[unicode?]
+ )
+ >=dev-libs/jansson-2
+ net-libs/libblkmaker
+ udev? (
+ virtual/udev
+ )
+ lm_sensors? (
+ sys-apps/lm_sensors
+ )
+ proxy? (
+ net-libs/libmicrohttpd
+ )
+ x6500? (
+ virtual/libusb:1
+ )
+ ztex? (
+ virtual/libusb:1
+ )
+"
+RDEPEND="${DEPEND}
+ opencl? (
+ virtual/opencl
+ )
+"
+DEPEND="${DEPEND}
+ virtual/pkgconfig
+ >=dev-libs/uthash-1.9.2
+ sys-apps/sed
+ cpumining? (
+ amd64? (
+ >=dev-lang/yasm-1.0.1
+ )
+ x86? (
+ >=dev-lang/yasm-1.0.1
+ )
+ )
+"
+
+src_configure() {
+ local CFLAGS="${CFLAGS}"
+ local with_curses
+ use hardened && CFLAGS="${CFLAGS} -nopie"
+
+ if use ncurses; then
+ if use unicode; then
+ with_curses='--with-curses=ncursesw'
+ else
+ with_curses='--with-curses=ncurses'
+ fi
+ fi
+
+ CFLAGS="${CFLAGS}" \
+ econf \
+ --docdir="/usr/share/doc/${PF}" \
+ $(use_enable adl) \
+ $(use_enable avalon) \
+ $(use_enable bitforce) \
+ $(use_enable cpumining) \
+ $(use_enable icarus) \
+ $(use_enable modminer) \
+ $(use_with ncurses curses) \
+ $(use_enable opencl) \
+ $(use_enable scrypt) \
+ --with-system-libblkmaker \
+ $with_curses
+ $(use_with udev libudev) \
+ $(use_with lm_sensors sensors) \
+ $(use_with proxy libmicrohttpd) \
+ $(use_enable x6500) \
+ $(use_enable ztex)
+}
+
+src_install() {
+ emake install DESTDIR="$D"
+ if ! use examples; then
+ rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
+ fi
+}
diff --git a/net-misc/bfgminer/bfgminer-3.3.0.ebuild b/net-misc/bfgminer/bfgminer-3.3.0.ebuild
new file mode 100644
index 000000000000..66ce35a6ff30
--- /dev/null
+++ b/net-misc/bfgminer/bfgminer-3.3.0.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-3.3.0.ebuild,v 1.1 2013/10/22 16:25:24 blueness Exp $
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="Modular Bitcoin ASIC/FPGA/GPU/CPU miner in C"
+HOMEPAGE="https://bitcointalk.org/?topic=168174"
+SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
+
+IUSE="+adl avalon bitforce cpumining examples hardened icarus lm_sensors modminer ncurses +opencl proxy proxy_getwork proxy_stratum scrypt +udev unicode x6500 ztex"
+REQUIRED_USE="
+ || ( avalon bitforce cpumining icarus modminer opencl proxy x6500 ztex )
+ adl? ( opencl )
+ lm_sensors? ( opencl )
+ scrypt? ( || ( cpumining opencl ) )
+ unicode? ( ncurses )
+ proxy? ( || ( proxy_getwork proxy_stratum ) )
+ proxy_getwork? ( proxy )
+ proxy_stratum? ( proxy )
+"
+
+DEPEND="
+ net-misc/curl
+ ncurses? (
+ sys-libs/ncurses[unicode?]
+ )
+ >=dev-libs/jansson-2
+ net-libs/libblkmaker
+ udev? (
+ virtual/udev
+ )
+ lm_sensors? (
+ sys-apps/lm_sensors
+ )
+ proxy_getwork? (
+ net-libs/libmicrohttpd
+ )
+ proxy_stratum? (
+ dev-libs/libevent
+ )
+ x6500? (
+ virtual/libusb:1
+ )
+ ztex? (
+ virtual/libusb:1
+ )
+"
+RDEPEND="${DEPEND}
+ opencl? (
+ virtual/opencl
+ )
+"
+DEPEND="${DEPEND}
+ virtual/pkgconfig
+ >=dev-libs/uthash-1.9.2
+ sys-apps/sed
+ cpumining? (
+ amd64? (
+ >=dev-lang/yasm-1.0.1
+ )
+ x86? (
+ >=dev-lang/yasm-1.0.1
+ )
+ )
+"
+
+src_configure() {
+ local CFLAGS="${CFLAGS}"
+ local with_curses
+ use hardened && CFLAGS="${CFLAGS} -nopie"
+
+ if use ncurses; then
+ if use unicode; then
+ with_curses='--with-curses=ncursesw'
+ else
+ with_curses='--with-curses=ncurses'
+ fi
+ fi
+
+ CFLAGS="${CFLAGS}" \
+ econf \
+ --docdir="/usr/share/doc/${PF}" \
+ $(use_enable adl) \
+ $(use_enable avalon) \
+ $(use_enable bitforce) \
+ $(use_enable cpumining) \
+ $(use_enable icarus) \
+ $(use_enable modminer) \
+ $(use_with ncurses curses) \
+ $(use_enable opencl) \
+ $(use_enable scrypt) \
+ --with-system-libblkmaker \
+ $with_curses
+ $(use_with udev libudev) \
+ $(use_with lm_sensors sensors) \
+ $(use_with proxy_getwork libmicrohttpd) \
+ $(use_with proxy_stratum libevent) \
+ $(use_enable x6500) \
+ $(use_enable ztex)
+}
+
+src_install() {
+ emake install DESTDIR="$D"
+ if ! use examples; then
+ rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
+ fi
+}
diff --git a/net-misc/bfgminer/metadata.xml b/net-misc/bfgminer/metadata.xml
index 6dce1b2784e6..8e46caf263f2 100644
--- a/net-misc/bfgminer/metadata.xml
+++ b/net-misc/bfgminer/metadata.xml
@@ -19,7 +19,9 @@
<flag name='modminer'>Enable support for mining with ModMiner FPGAs</flag>
<flag name='opencl'>Enable support for mining with OpenCL-capable devices (GPUs)</flag>
<flag name='padlock'>Enable support for mining with VIA Padlock CPUs</flag>
- <flag name='proxy'>Enable support for getwork proxy device (often used with Block Erupter Blades)</flag>
+ <flag name='proxy'>Enable support for virtual proxy device</flag>
+ <flag name='proxy_getwork'>Enable proxy support for getwork protocol (often used with Block Erupter Blades)</flag>
+ <flag name='proxy_stratum'>Enable proxy support for stratum protocol</flag>
<flag name='scrypt'>Enable support for scrypt mining algorithm</flag>
<flag name='sse2_4way'>Enable support for CPU SSE2 4way mining algorithm</flag>
<flag name='sse4'>Enable support for CPU SSE4 mining algorithm</flag>