summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/cgminer')
-rw-r--r--net-misc/cgminer/Manifest5
-rw-r--r--net-misc/cgminer/cgminer-4.7.0.ebuild90
-rw-r--r--net-misc/cgminer/cgminer-4.8.0.ebuild95
-rw-r--r--net-misc/cgminer/cgminer-4.9.0.ebuild102
-rw-r--r--net-misc/cgminer/cgminer-4.9.1.ebuild102
-rw-r--r--net-misc/cgminer/cgminer-4.9.2.ebuild86
-rw-r--r--net-misc/cgminer/files/cgminer-4.3.5-system-jansson.patch47
-rw-r--r--net-misc/cgminer/files/cgminer-4.4.2-system-jansson.patch47
-rw-r--r--net-misc/cgminer/metadata.xml42
9 files changed, 616 insertions, 0 deletions
diff --git a/net-misc/cgminer/Manifest b/net-misc/cgminer/Manifest
new file mode 100644
index 000000000000..917562cb4bba
--- /dev/null
+++ b/net-misc/cgminer/Manifest
@@ -0,0 +1,5 @@
+DIST cgminer-4.7.0.tar.bz2 1534316 SHA256 604c5e1998e8c7319b3d7b69297ce5d45d47eb0eba9be0c037138ef73cd3749b SHA512 3d2450cab3ad6c455814db4420ce464e06dc910fec0e0be38a626193fbf46e5211bc2f8f2f6bb14daea0aa82622031cc5f44db9aee414236f7ac74cd7d95e847 WHIRLPOOL dc2beab3cb2422371190ed505c615eab24a846301527f428b107ca54f3de69c27905c4c7d1f9ab20af0c9f531aab6059ec7bf8570b1eb2b9439ac77e74a31e48
+DIST cgminer-4.8.0.tar.bz2 1538552 SHA256 172409212dc3cb38260c9dfa4b142f989a32781dc3554a134516451a84bee137 SHA512 fdd43047a0e4c58778fa7ddd95e7521514e4572082cdb49eb802628a7d4390873576a4552d891fefc0b28043f0d15ed229d59287d75f05d5e0ac0e0a55f60d8a WHIRLPOOL 0eae3c8a8159f10f0a211ba24a9b8fa91f7f5aa2b4d6c56cdc4c10f22d69a464c86877afbe73fbed223a850e6dd9b0a45cd175c4ee24c9483ca4899032553078
+DIST cgminer-4.9.0.tar.bz2 1547040 SHA256 67d5016bba0deb6fe432765fd5e10a4679785dc8d352d361af99150fcc3408cf SHA512 29fb31c75beca5d5a4e5c69f8448cea0640c1764561c3dbc553beb97510fda3e6529a935becbd40696f9a529575f53991a8cb704b8ba283a63496430f1d794ca WHIRLPOOL 7bdd5f5697d10acad1f026c4a392913e2d791f694e5c37732f9cf4dc037ad71d2e062b900376bfea4acfc78cf954adda0428785ac6476ee787e866a67108cf98
+DIST cgminer-4.9.1.tar.bz2 1549471 SHA256 68d0d0ac623e5cff450febe4b7143a7def04c952008e2b1b040988a6270ab0e1 SHA512 c94b09f0adf0a73ac8f134cde0594627b0c017863fc652fb6dcb18aaedc0bb7c2c747152b916a690f2097dc0183ec3a2c94aaf7dbff9074ab04290443d9fdad7 WHIRLPOOL b73fc4bd45bfdc96e8bcea6474540eefbc0c9c30e2967d55f60b04b039407ce4f15e35d1794f59e717902d5b7bc9f97b8b3ecda4d5be0b66fe9b7e104d0a01ff
+DIST cgminer-4.9.2.tar.bz2 1476371 SHA256 7a94719c520c3ebd96fee65e2f737e87c9ae70c8e21865ee0ce16ac9b02e6e62 SHA512 48371657c84f09ad8c500a29ca85f35af70eb8720d9d97b565cd8c5356289d889ee60c06f37c0507a53c8f50ae827a77fa0c41609bac6b1e8849ad26b55d67d4 WHIRLPOOL bc1827049171683a7bae77b7693cf579cc18523dd1db1d54c3de41f3c81d6786f749dcee6e6e74c54ce7aceb5b946d357f8c04ded2d02dc40faddadcb015b828
diff --git a/net-misc/cgminer/cgminer-4.7.0.ebuild b/net-misc/cgminer/cgminer-4.7.0.ebuild
new file mode 100644
index 000000000000..e324094aa054
--- /dev/null
+++ b/net-misc/cgminer/cgminer-4.7.0.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="Bitcoin CPU/GPU/FPGA/ASIC miner in C"
+HOMEPAGE="http://bitcointalk.org/?topic=28402.msg357369 http://github.com/ckolivas/cgminer"
+SRC_URI="http://ck.kolivas.org/apps/cgminer/${P}.tar.bz2"
+#SRC_URI="http://ck.kolivas.org/apps/cgminer/4.5/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+HARDWARE="ants1 ants2 avalon avalon2 bab bitmine_A1 bflsc bitforce bitfury cointerra drillbit hashfast hashratio icarus klondike knc minion modminer spondoolies"
+IUSE="doc examples udev hardened ncurses ${HARDWARE}"
+
+REQUIRED_USE="|| ( ${HARDWARE} )"
+
+RDEPEND="net-misc/curl
+ >=dev-libs/jansson-2.6
+ ncurses? ( sys-libs/ncurses )
+ avalon? ( virtual/libusb:1 )
+ bflsc? ( virtual/libusb:1 )
+ bitforce? ( virtual/libusb:1 )
+ bitfury? ( virtual/libusb:1 )
+ cointerra? ( virtual/libusb:1 )
+ drillbit? ( virtual/libusb:1 )
+ hashfast? ( virtual/libusb:1 )
+ hashratio? ( virtual/libusb:1 )
+ icarus? ( virtual/libusb:1 )
+ klondike? ( virtual/libusb:1 )
+ modminer? ( virtual/libusb:1 )
+ spondoolies? ( virtual/libusb:1 )"
+DEPEND="virtual/pkgconfig
+ ${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-4.4.2-system-jansson.patch
+ eautoreconf
+}
+
+src_configure() {
+ use hardened && append-cflags "-nopie"
+
+ econf $(use_with ncurses curses) \
+ $(use_enable ants1) \
+ $(use_enable ants2) \
+ $(use_enable avalon) \
+ $(use_enable avalon2) \
+ $(use_enable bab) \
+ $(use_enable bitmine_A1) \
+ $(use_enable bflsc) \
+ $(use_enable bitforce) \
+ $(use_enable bitfury) \
+ $(use_enable cointerra) \
+ $(use_enable drillbit) \
+ $(use_enable hashfast) \
+ $(use_enable hashratio) \
+ $(use_enable icarus) \
+ $(use_enable klondike) \
+ $(use_enable knc) \
+ $(use_enable minion) \
+ $(use_enable modminer) \
+ $(use_enable spondoolies) \
+ --with-system-libusb
+ # sanitize directories (is this still needed?)
+ sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h
+}
+
+src_install() { # How about using some make install?
+ dobin cgminer
+
+ insinto /lib/udev/rules.d
+ use udev && doins 01-cgminer.rules
+
+ if use doc; then
+ dodoc AUTHORS NEWS README API-README
+ use icarus || use bitforce || use modminer && dodoc FPGA-README
+ use avalon || use bflsc && dodoc ASIC-README
+ fi
+
+ if use examples; then
+ docinto examples
+ dodoc api-example.php miner.php API.java api-example.c example.conf
+ fi
+}
diff --git a/net-misc/cgminer/cgminer-4.8.0.ebuild b/net-misc/cgminer/cgminer-4.8.0.ebuild
new file mode 100644
index 000000000000..e6e000c0fc8b
--- /dev/null
+++ b/net-misc/cgminer/cgminer-4.8.0.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="Bitcoin CPU/GPU/FPGA/ASIC miner in C"
+HOMEPAGE="http://bitcointalk.org/?topic=28402.msg357369 http://github.com/ckolivas/cgminer"
+SRC_URI="http://ck.kolivas.org/apps/cgminer/${P}.tar.bz2"
+#SRC_URI="http://ck.kolivas.org/apps/cgminer/4.5/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+HARDWARE="ants1 ants2 avalon avalon2 bab bitmine_A1 bflsc bitforce bitfury cointerra drillbit hashfast hashratio icarus klondike knc minion modminer spondoolies"
+IUSE="doc examples udev hardened ncurses ${HARDWARE}"
+
+REQUIRED_USE="|| ( ${HARDWARE} )"
+
+RDEPEND="net-misc/curl
+ >=dev-libs/jansson-2.6
+ ncurses? ( sys-libs/ncurses )
+ avalon? ( virtual/libusb:1[udev] )
+ bflsc? ( virtual/libusb:1[udev] )
+ bitforce? ( virtual/libusb:1[udev] )
+ bitfury? ( virtual/libusb:1[udev] )
+ cointerra? ( virtual/libusb:1[udev] )
+ drillbit? ( virtual/libusb:1[udev] )
+ hashfast? ( virtual/libusb:1[udev] )
+ hashratio? ( virtual/libusb:1[udev] )
+ icarus? ( virtual/libusb:1[udev] )
+ klondike? ( virtual/libusb:1[udev] )
+ modminer? ( virtual/libusb:1[udev] )
+ spondoolies? ( virtual/libusb:1[udev] )
+ udev? ( virtual/libudev )"
+DEPEND="virtual/pkgconfig
+ ${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-4.4.2-system-jansson.patch
+ eautoreconf
+}
+
+src_configure() {
+ use hardened && append-cflags "-nopie"
+
+ econf $(use_with ncurses curses) \
+ $(use_enable ants1) \
+ $(use_enable ants2) \
+ $(use_enable avalon) \
+ $(use_enable avalon2) \
+ $(use_enable bab) \
+ $(use_enable bitmine_A1) \
+ $(use_enable bflsc) \
+ $(use_enable bitforce) \
+ $(use_enable bitfury) \
+ $(use_enable cointerra) \
+ $(use_enable drillbit) \
+ $(use_enable hashfast) \
+ $(use_enable hashratio) \
+ $(use_enable icarus) \
+ $(use_enable klondike) \
+ $(use_enable knc) \
+ $(use_enable minion) \
+ $(use_enable modminer) \
+ $(use_enable spondoolies) \
+ $(use_enable udev) \
+ --disable-forcecombo \
+ --with-system-libusb
+ # sanitize directories (is this still needed?)
+ sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h
+}
+
+src_install() { # How about using some make install?
+ dobin cgminer
+
+ if use udev; then
+ insinto /lib/udev/rules.d
+ use udev && doins 01-cgminer.rules
+ fi
+
+ if use doc; then
+ dodoc AUTHORS NEWS README API-README
+ use icarus || use bitforce || use modminer && dodoc FPGA-README
+ use avalon || use bflsc && dodoc ASIC-README
+ fi
+
+ if use examples; then
+ docinto examples
+ dodoc api-example.php miner.php API.java api-example.c example.conf
+ fi
+}
diff --git a/net-misc/cgminer/cgminer-4.9.0.ebuild b/net-misc/cgminer/cgminer-4.9.0.ebuild
new file mode 100644
index 000000000000..dde97b34b112
--- /dev/null
+++ b/net-misc/cgminer/cgminer-4.9.0.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="Bitcoin CPU/GPU/FPGA/ASIC miner in C"
+HOMEPAGE="http://bitcointalk.org/?topic=28402.msg357369 http://github.com/ckolivas/cgminer"
+SRC_URI="http://ck.kolivas.org/apps/cgminer/${P}.tar.bz2"
+#SRC_URI="http://ck.kolivas.org/apps/cgminer/4.5/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+HARDWARE="ants1 ants2 avalon avalon2 avalon4 bab bitmine_A1 bflsc bitforce bitfury blockerupter cointerra drillbit hashfast hashratio icarus klondike knc minion modminer spondoolies"
+IUSE="doc examples udev hardened ncurses ${HARDWARE}"
+
+REQUIRED_USE="|| ( ${HARDWARE} )"
+
+RDEPEND="net-misc/curl
+ >=dev-libs/jansson-2.6
+ ncurses? ( sys-libs/ncurses )
+ ants1? ( virtual/libusb:1[udev] )
+ ants2? ( virtual/libusb:1[udev] )
+ avalon? ( virtual/libusb:1[udev] )
+ avalon2? ( virtual/libusb:1[udev] )
+ avalon4? ( virtual/libusb:1[udev] )
+ bflsc? ( virtual/libusb:1[udev] )
+ bitforce? ( virtual/libusb:1[udev] )
+ bitfury? ( virtual/libusb:1[udev] )
+ blockerupter? ( virtual/libusb:1[udev] )
+ cointerra? ( virtual/libusb:1[udev] )
+ drillbit? ( virtual/libusb:1[udev] )
+ hashfast? ( virtual/libusb:1[udev] )
+ hashratio? ( virtual/libusb:1[udev] )
+ icarus? ( virtual/libusb:1[udev] )
+ klondike? ( virtual/libusb:1[udev] )
+ modminer? ( virtual/libusb:1[udev] )
+ spondoolies? ( virtual/libusb:1[udev] )
+ udev? ( virtual/libudev )"
+DEPEND="virtual/pkgconfig
+ ${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-4.4.2-system-jansson.patch
+ eautoreconf
+}
+
+src_configure() {
+ use hardened && append-cflags "-nopie"
+
+ econf $(use_with ncurses curses) \
+ $(use_enable ants1) \
+ $(use_enable ants2) \
+ $(use_enable avalon) \
+ $(use_enable avalon2) \
+ $(use_enable avalon4) \
+ $(use_enable bab) \
+ $(use_enable bitmine_A1) \
+ $(use_enable bflsc) \
+ $(use_enable bitforce) \
+ $(use_enable bitfury) \
+ $(use_enable blockerupter) \
+ $(use_enable cointerra) \
+ $(use_enable drillbit) \
+ $(use_enable hashfast) \
+ $(use_enable hashratio) \
+ $(use_enable icarus) \
+ $(use_enable klondike) \
+ $(use_enable knc) \
+ $(use_enable minion) \
+ $(use_enable modminer) \
+ $(use_enable spondoolies) \
+ $(use_enable udev) \
+ --disable-forcecombo \
+ --with-system-libusb
+ # sanitize directories (is this still needed?)
+ sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h
+}
+
+src_install() { # How about using some make install?
+ dobin cgminer
+
+ if use udev; then
+ insinto /lib/udev/rules.d
+ use udev && doins 01-cgminer.rules
+ fi
+
+ if use doc; then
+ dodoc AUTHORS NEWS README API-README
+ use icarus || use bitforce || use modminer && dodoc FPGA-README
+ use avalon || use bflsc && dodoc ASIC-README
+ fi
+
+ if use examples; then
+ docinto examples
+ dodoc api-example.php miner.php API.java api-example.c example.conf
+ fi
+}
diff --git a/net-misc/cgminer/cgminer-4.9.1.ebuild b/net-misc/cgminer/cgminer-4.9.1.ebuild
new file mode 100644
index 000000000000..1ca2db5b4bfc
--- /dev/null
+++ b/net-misc/cgminer/cgminer-4.9.1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="Bitcoin CPU/GPU/FPGA/ASIC miner in C"
+HOMEPAGE="http://bitcointalk.org/?topic=28402.msg357369 http://github.com/ckolivas/cgminer"
+SRC_URI="http://ck.kolivas.org/apps/cgminer/${P}.tar.bz2"
+#SRC_URI="http://ck.kolivas.org/apps/cgminer/4.5/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+HARDWARE="ants1 ants2 avalon avalon2 avalon4 bab bitmine_A1 bflsc bitforce bitfury blockerupter cointerra drillbit hashfast hashratio icarus klondike knc minion modminer spondoolies"
+IUSE="doc examples udev hardened ncurses ${HARDWARE}"
+
+REQUIRED_USE="|| ( ${HARDWARE} )"
+
+RDEPEND="net-misc/curl
+ >=dev-libs/jansson-2.6
+ ncurses? ( sys-libs/ncurses )
+ ants1? ( virtual/libusb:1[udev] )
+ ants2? ( virtual/libusb:1[udev] )
+ avalon? ( virtual/libusb:1[udev] )
+ avalon2? ( virtual/libusb:1[udev] )
+ avalon4? ( virtual/libusb:1[udev] )
+ bflsc? ( virtual/libusb:1[udev] )
+ bitforce? ( virtual/libusb:1[udev] )
+ bitfury? ( virtual/libusb:1[udev] )
+ blockerupter? ( virtual/libusb:1[udev] )
+ cointerra? ( virtual/libusb:1[udev] )
+ drillbit? ( virtual/libusb:1[udev] )
+ hashfast? ( virtual/libusb:1[udev] )
+ hashratio? ( virtual/libusb:1[udev] )
+ icarus? ( virtual/libusb:1[udev] )
+ klondike? ( virtual/libusb:1[udev] )
+ modminer? ( virtual/libusb:1[udev] )
+ spondoolies? ( virtual/libusb:1[udev] )
+ udev? ( virtual/libudev )"
+DEPEND="virtual/pkgconfig
+ ${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-4.4.2-system-jansson.patch
+ eautoreconf
+}
+
+src_configure() {
+ use hardened && append-cflags "-nopie"
+
+ econf $(use_with ncurses curses) \
+ $(use_enable ants1) \
+ $(use_enable ants2) \
+ $(use_enable avalon) \
+ $(use_enable avalon2) \
+ $(use_enable avalon4) \
+ $(use_enable bab) \
+ $(use_enable bitmine_A1) \
+ $(use_enable bflsc) \
+ $(use_enable bitforce) \
+ $(use_enable bitfury) \
+ $(use_enable blockerupter) \
+ $(use_enable cointerra) \
+ $(use_enable drillbit) \
+ $(use_enable hashfast) \
+ $(use_enable hashratio) \
+ $(use_enable icarus) \
+ $(use_enable klondike) \
+ $(use_enable knc) \
+ $(use_enable minion) \
+ $(use_enable modminer) \
+ $(use_enable spondoolies) \
+ $(use_enable udev) \
+ --disable-forcecombo \
+ --with-system-libusb
+ # sanitize directories (is this still needed?)
+ sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h
+}
+
+src_install() { # How about using some make install?
+ dobin cgminer
+
+ if use udev; then
+ insinto /lib/udev/rules.d
+ use udev && doins 01-cgminer.rules
+ fi
+
+ if use doc; then
+ dodoc AUTHORS NEWS README API-README
+ use icarus || use bitforce || use modminer && dodoc FPGA-README
+ use avalon || use bflsc && dodoc ASIC-README
+ fi
+
+ if use examples; then
+ docinto examples
+ dodoc api-example.php miner.php API.java api-example.c example.conf
+ fi
+}
diff --git a/net-misc/cgminer/cgminer-4.9.2.ebuild b/net-misc/cgminer/cgminer-4.9.2.ebuild
new file mode 100644
index 000000000000..6a54a69a1e3e
--- /dev/null
+++ b/net-misc/cgminer/cgminer-4.9.2.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="Bitcoin CPU/GPU/FPGA/ASIC miner in C"
+HOMEPAGE="http://bitcointalk.org/?topic=28402.msg357369 http://github.com/ckolivas/cgminer"
+SRC_URI="http://ck.kolivas.org/apps/cgminer/${P}.tar.bz2"
+#SRC_URI="http://ck.kolivas.org/apps/cgminer/4.5/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+HARDWARE="ants1 ants2 ants3 avalon avalon2 avalon4 bab bflsc bitforce bitfury bitmine_A1 blockerupter cointerra drillbit hashfast hashratio icarus klondike knc minion modminer sp10 sp30"
+IUSE="doc examples udev hardened ncurses ${HARDWARE}"
+
+REQUIRED_USE="|| ( ${HARDWARE} )"
+
+RDEPEND="net-misc/curl
+ >=dev-libs/jansson-2.6
+ virtual/libusb:1[udev]
+ ncurses? ( sys-libs/ncurses )
+ udev? ( virtual/libudev )"
+DEPEND="virtual/pkgconfig
+ ${RDEPEND}"
+
+src_configure() {
+ use hardened && append-cflags "-nopie"
+
+ # PKG_CHECK_MODULES needs PKG_CONFIG for --with-system-jansson.
+ export PKG_CONFIG=/usr/bin/pkg-config
+ econf $(use_with ncurses curses) \
+ $(use_enable ants1) \
+ $(use_enable ants2) \
+ $(use_enable ants3) \
+ $(use_enable avalon) \
+ $(use_enable avalon2) \
+ $(use_enable avalon4) \
+ $(use_enable bab) \
+ $(use_enable bitmine_A1) \
+ $(use_enable bflsc) \
+ $(use_enable bitforce) \
+ $(use_enable bitfury) \
+ $(use_enable blockerupter) \
+ $(use_enable cointerra) \
+ $(use_enable drillbit) \
+ $(use_enable hashfast) \
+ $(use_enable hashratio) \
+ $(use_enable icarus) \
+ $(use_enable klondike) \
+ $(use_enable knc) \
+ $(use_enable minion) \
+ $(use_enable modminer) \
+ $(use_enable sp10) \
+ $(use_enable sp30) \
+ $(use_enable udev) \
+ --disable-forcecombo \
+ --with-system-libusb \
+ --with-system-jansson
+ # sanitize directories (is this still needed?)
+ sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h
+}
+
+src_install() { # How about using some make install?
+ dobin cgminer
+
+ if use udev; then
+ insinto /lib/udev/rules.d
+ use udev && doins 01-cgminer.rules
+ fi
+
+ if use doc; then
+ dodoc AUTHORS NEWS README API-README
+ use icarus || use bitforce || use modminer && dodoc FPGA-README
+ use avalon || use bflsc && dodoc ASIC-README
+ fi
+
+ if use examples; then
+ docinto examples
+ dodoc api-example.php miner.php API.java api-example.c example.conf
+ fi
+}
diff --git a/net-misc/cgminer/files/cgminer-4.3.5-system-jansson.patch b/net-misc/cgminer/files/cgminer-4.3.5-system-jansson.patch
new file mode 100644
index 000000000000..bfe14311740e
--- /dev/null
+++ b/net-misc/cgminer/files/cgminer-4.3.5-system-jansson.patch
@@ -0,0 +1,47 @@
+diff -Naur cgminer-4.3.5.orig/compat/Makefile.am cgminer-4.3.5/compat/Makefile.am
+--- cgminer-4.3.5.orig/compat/Makefile.am 2013-11-30 16:24:45.000000000 -0500
++++ cgminer-4.3.5/compat/Makefile.am 2014-06-10 09:50:07.363965296 -0400
+@@ -1,8 +1,5 @@
+-
+-SUBDIRS = jansson-2.5
+-
+ if WANT_USBUTILS
+ if WANT_STATIC_LIBUSB
+-SUBDIRS += libusb-1.0
++SUBDIRS = libusb-1.0
+ endif
+ endif
+diff -Naur cgminer-4.3.5.orig/configure.ac cgminer-4.3.5/configure.ac
+--- cgminer-4.3.5.orig/configure.ac 2014-06-09 21:40:35.000000000 -0400
++++ cgminer-4.3.5/configure.ac 2014-06-10 09:49:42.306964156 -0400
+@@ -405,8 +405,7 @@
+
+ AM_CONDITIONAL([WANT_STATIC_LIBUSB], [test x$dlibusb = xno])
+
+-AC_CONFIG_SUBDIRS([compat/jansson-2.5])
+-JANSSON_LIBS="compat/jansson-2.5/src/.libs/libjansson.a"
++JANSSON_LIBS="-ljansson"
+
+ PKG_PROG_PKG_CONFIG()
+
+diff -Naur cgminer-4.3.5.orig/Makefile.am cgminer-4.3.5/Makefile.am
+--- cgminer-4.3.5.orig/Makefile.am 2014-06-09 20:29:40.000000000 -0400
++++ cgminer-4.3.5/Makefile.am 2014-06-10 09:49:56.153964786 -0400
+@@ -1,8 +1,6 @@
+
+ ACLOCAL_AMFLAGS = -I m4
+
+-JANSSON_CPPFLAGS= -I$(top_builddir)/compat/jansson-2.5/src -I$(top_srcdir)/compat/jansson-2.5/src
+-
+ if WANT_USBUTILS
+ USBUTILS_CPPFLAGS = -I$(top_builddir)/compat/libusb-1.0/libusb -I$(top_srcdir)/compat/libusb-1.0/libusb
+ else
+@@ -18,7 +16,7 @@
+
+ SUBDIRS = lib compat ccan
+
+-cgminer_CPPFLAGS = $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_CPPFLAGS) $(USBUTILS_CPPFLAGS)
++cgminer_CPPFLAGS = $(PTHREAD_FLAGS) -fno-strict-aliasing $(USBUTILS_CPPFLAGS)
+
+ bin_PROGRAMS = cgminer
+
diff --git a/net-misc/cgminer/files/cgminer-4.4.2-system-jansson.patch b/net-misc/cgminer/files/cgminer-4.4.2-system-jansson.patch
new file mode 100644
index 000000000000..a54054cb630f
--- /dev/null
+++ b/net-misc/cgminer/files/cgminer-4.4.2-system-jansson.patch
@@ -0,0 +1,47 @@
+diff -Naur cgminer-4.4.2.orig/compat/Makefile.am cgminer-4.4.2/compat/Makefile.am
+--- cgminer-4.4.2.orig/compat/Makefile.am 2014-07-16 23:01:05.000000000 -0400
++++ cgminer-4.4.2/compat/Makefile.am 2014-07-17 06:55:09.703029301 -0400
+@@ -1,8 +1,5 @@
+-
+-SUBDIRS = jansson-2.6
+-
+ if WANT_USBUTILS
+ if WANT_STATIC_LIBUSB
+-SUBDIRS += libusb-1.0
++SUBDIRS = libusb-1.0
+ endif
+ endif
+diff -Naur cgminer-4.4.2.orig/configure.ac cgminer-4.4.2/configure.ac
+--- cgminer-4.4.2.orig/configure.ac 2014-07-17 00:35:21.000000000 -0400
++++ cgminer-4.4.2/configure.ac 2014-07-17 06:55:44.964030906 -0400
+@@ -418,8 +418,7 @@
+
+ AM_CONDITIONAL([WANT_STATIC_LIBUSB], [test x$dlibusb = xno])
+
+-AC_CONFIG_SUBDIRS([compat/jansson-2.6])
+-JANSSON_LIBS="compat/jansson-2.6/src/.libs/libjansson.a"
++JANSSON_LIBS="-ljansson"
+
+ PKG_PROG_PKG_CONFIG()
+
+diff -Naur cgminer-4.4.2.orig/Makefile.am cgminer-4.4.2/Makefile.am
+--- cgminer-4.4.2.orig/Makefile.am 2014-07-16 23:01:30.000000000 -0400
++++ cgminer-4.4.2/Makefile.am 2014-07-17 06:56:01.140031642 -0400
+@@ -1,8 +1,6 @@
+
+ ACLOCAL_AMFLAGS = -I m4
+
+-JANSSON_CPPFLAGS= -I$(top_builddir)/compat/jansson-2.6/src -I$(top_srcdir)/compat/jansson-2.6/src
+-
+ if WANT_USBUTILS
+ USBUTILS_CPPFLAGS = -I$(top_builddir)/compat/libusb-1.0/libusb -I$(top_srcdir)/compat/libusb-1.0/libusb
+ else
+@@ -18,7 +16,7 @@
+
+ SUBDIRS = lib compat ccan
+
+-cgminer_CPPFLAGS = $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_CPPFLAGS) $(USBUTILS_CPPFLAGS)
++cgminer_CPPFLAGS = $(PTHREAD_FLAGS) -fno-strict-aliasing $(USBUTILS_CPPFLAGS)
+
+ bin_PROGRAMS = cgminer
+
diff --git a/net-misc/cgminer/metadata.xml b/net-misc/cgminer/metadata.xml
new file mode 100644
index 000000000000..3ffd4b4c1866
--- /dev/null
+++ b/net-misc/cgminer/metadata.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>ki@baka.bakka.su</email>
+ <description>In baka-bakka overlay.</description>
+ </maintainer>
+ <maintainer>
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+ <use>
+ <flag name="ants1">Enable support for Antminer S1 Bitmain</flag>
+ <flag name="ants2">Enable support for Antminer S2 Bitmain</flag>
+ <flag name="ants3">Enable support for Antminer S3 Bitmain</flag>
+ <flag name="avalon">Enable support for Avalon ASICs</flag>
+ <flag name="avalon2">Enable support for Avalon2 ASICs</flag>
+ <flag name="avalon4">Enable support for Avalon4 ASICs</flag>
+ <flag name="bab">Enable support for BlackArrow Bitfury</flag>
+ <flag name="bflsc">Enable support for BFL ASICs</flag>
+ <flag name="bitforce">Enable support for mining with ButterFly Labs BitFORCE FPGAs</flag>
+ <flag name="bitfury">Enable support for mining with BitFury ASICs</flag>
+ <flag name="bitmine_A1">Enable support for mining with Bitmine.ch A1 ASICs</flag>
+ <flag name="blockerupter">Enable support for mining with BlockRupter ASICs</flag>
+ <flag name="cointerra">Enable support for mining with Cointerra ASICs</flag>
+ <flag name="drillbit">Enable support for mining with Drillbit BitFury ASICs</flag>
+ <flag name="hashfast">Enable support for mining with Hashfast</flag>
+ <flag name="hashratio">Enable support for mining with Hashratio</flag>
+ <flag name="icarus">Enable support for mining with Icarus FPGAs</flag>
+ <flag name="klondike">Enable support for mining with Klondik ASICs</flag>
+ <flag name="knc">Enable support for mining with KnC miners</flag>
+ <flag name="minion">Enable support for mining with BlackArrow Bitfury </flag>
+ <flag name="modminer">Enable support for mining with ModMiner FPGAs</flag>
+ <flag name="spondoolies">Enable support for Spondoolies</flag>
+ <flag name="sp10">Enable support for Spondoolies SP10</flag>
+ <flag name="sp30">Enable support for Spondoolies SP30</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">ckolivas/cgminer</remote-id>
+ </upstream>
+</pkgmetadata>