diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2012-07-31 01:45:24 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2012-07-31 01:45:24 +0000 |
commit | fa44a89e1e3d0864161157a6d31a2261bf317add (patch) | |
tree | 8c6cac480bd6de70561c0b7857b8542fcbd4c834 /net-misc/bfgminer | |
parent | Version bump to 1.1.7, and add the new beta. The new beta simplifies the init... (diff) | |
download | gentoo-2-fa44a89e1e3d0864161157a6d31a2261bf317add.tar.gz gentoo-2-fa44a89e1e3d0864161157a6d31a2261bf317add.tar.bz2 gentoo-2-fa44a89e1e3d0864161157a6d31a2261bf317add.zip |
Punt older 2.3.x and 2.4.x
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/bfgminer')
-rw-r--r-- | net-misc/bfgminer/ChangeLog | 7 | ||||
-rw-r--r-- | net-misc/bfgminer/bfgminer-2.3.4.ebuild | 119 | ||||
-rw-r--r-- | net-misc/bfgminer/bfgminer-2.3.5.ebuild | 117 | ||||
-rw-r--r-- | net-misc/bfgminer/bfgminer-2.4.0.ebuild | 117 | ||||
-rw-r--r-- | net-misc/bfgminer/bfgminer-2.4.1.ebuild | 117 | ||||
-rw-r--r-- | net-misc/bfgminer/bfgminer-2.4.2.ebuild | 120 | ||||
-rw-r--r-- | net-misc/bfgminer/bfgminer-2.4.3.ebuild | 122 |
7 files changed, 6 insertions, 713 deletions
diff --git a/net-misc/bfgminer/ChangeLog b/net-misc/bfgminer/ChangeLog index cd8ce2c98e16..0e6272ac8bde 100644 --- a/net-misc/bfgminer/ChangeLog +++ b/net-misc/bfgminer/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-misc/bfgminer # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/ChangeLog,v 1.14 2012/07/15 16:59:04 blueness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/ChangeLog,v 1.15 2012/07/31 01:45:24 blueness Exp $ + + 31 Jul 2012; Anthony G. Basile <blueness@gentoo.org> -bfgminer-2.3.4.ebuild, + -bfgminer-2.3.5.ebuild, -bfgminer-2.4.0.ebuild, -bfgminer-2.4.1.ebuild, + -bfgminer-2.4.2.ebuild, -bfgminer-2.4.3.ebuild: + Punt older 2.3.x and 2.4.x *bfgminer-2.5.1 (15 Jul 2012) diff --git a/net-misc/bfgminer/bfgminer-2.3.4.ebuild b/net-misc/bfgminer/bfgminer-2.3.4.ebuild deleted file mode 100644 index 9d6b882c3847..000000000000 --- a/net-misc/bfgminer/bfgminer-2.3.4.ebuild +++ /dev/null @@ -1,119 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.3.4.ebuild,v 1.5 2012/06/16 09:03:02 blueness Exp $ - -EAPI="4" - -inherit eutils - -DESCRIPTION="Modular Bitcoin CPU/GPU/FPGA miner in C" -HOMEPAGE="https://bitcointalk.org/index.php?topic=78192.0" -SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~x86 ~amd64" - -IUSE="+adl altivec bitforce +cpumining examples hardened icarus ncurses +opencl padlock sse2 sse2_4way sse4 +udev ztex" -REQUIRED_USE=" - || ( bitforce cpumining icarus opencl ztex ) - adl? ( opencl ) - altivec? ( cpumining ppc ppc64 ) - opencl? ( ncurses ) - padlock? ( cpumining || ( amd64 x86 ) ) - sse2? ( cpumining || ( amd64 x86 ) ) - sse4? ( cpumining amd64 ) -" - -DEPEND=" - net-misc/curl - ncurses? ( - sys-libs/ncurses - ) - dev-libs/jansson - udev? ( - sys-fs/udev - ) - ztex? ( - virtual/libusb:1 - ) -" -RDEPEND="${DEPEND}" -DEPEND="${DEPEND} - virtual/pkgconfig - sys-apps/sed - adl? ( - x11-libs/amd-adl-sdk - ) - opencl? ( - virtual/opencl - ) - 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 - ln -s /usr/include/ADL/* ADL_SDK/ - epatch "${FILESDIR}/Bugfix-Fix-building-without-OpenCL-support.patch" -} - -src_configure() { - local CFLAGS="${CFLAGS}" - ./autogen.sh - 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 bitforce) \ - $(use_enable cpumining) \ - $(use_enable icarus) \ - $(use_with ncurses curses) \ - $(use_enable opencl) \ - $(use_with udev libudev) \ - $(use_enable ztex) - if use opencl; then - # sanitize directories - sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/bfgminer/opencl"'"~' config.h - fi - if use ztex; then - sed -i 's~bitstreams/~'"${EPREFIX}"'/usr/lib/bfgminer/ztex/~' libztex.c - fi -} - -src_install() { - dobin bfgminer - dodoc AUTHORS NEWS README - if use opencl; then - insinto /usr/lib/bfgminer/opencl - doins *.cl - fi - if use ztex; then - insinto /usr/lib/bfgminer/ztex - doins bitstreams/*.bit - fi - if use examples; then - docinto examples - dodoc api-example.php miner.php API.java api-example.c - fi -} diff --git a/net-misc/bfgminer/bfgminer-2.3.5.ebuild b/net-misc/bfgminer/bfgminer-2.3.5.ebuild deleted file mode 100644 index bed2c982087a..000000000000 --- a/net-misc/bfgminer/bfgminer-2.3.5.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.3.5.ebuild,v 1.4 2012/06/16 09:03:02 blueness Exp $ - -EAPI="4" - -inherit eutils - -DESCRIPTION="Modular Bitcoin CPU/GPU/FPGA miner in C" -HOMEPAGE="https://bitcointalk.org/index.php?topic=78192.0" -SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~x86 ~amd64" - -IUSE="+adl altivec bitforce +cpumining examples hardened icarus ncurses +opencl padlock sse2 sse2_4way sse4 +udev ztex" -REQUIRED_USE=" - || ( bitforce cpumining icarus opencl ztex ) - adl? ( opencl ) - altivec? ( cpumining ppc ppc64 ) - opencl? ( ncurses ) - padlock? ( cpumining || ( amd64 x86 ) ) - sse2? ( cpumining || ( amd64 x86 ) ) - sse4? ( cpumining amd64 ) -" - -DEPEND=" - net-misc/curl - ncurses? ( - sys-libs/ncurses - ) - dev-libs/jansson - udev? ( - sys-fs/udev - ) - ztex? ( - virtual/libusb:1 - ) -" -RDEPEND="${DEPEND}" -DEPEND="${DEPEND} - virtual/pkgconfig - sys-apps/sed - adl? ( - x11-libs/amd-adl-sdk - ) - opencl? ( - virtual/opencl - ) - 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 - ln -s /usr/include/ADL/* ADL_SDK/ -} - -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 bitforce) \ - $(use_enable cpumining) \ - $(use_enable icarus) \ - $(use_with ncurses curses) \ - $(use_enable opencl) \ - $(use_with udev libudev) \ - $(use_enable ztex) - if use opencl; then - # sanitize directories - sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/bfgminer/opencl"'"~' config.h - fi - if use ztex; then - sed -i 's~bitstreams/~'"${EPREFIX}"'/usr/lib/bfgminer/ztex/~' libztex.c - fi -} - -src_install() { - dobin bfgminer - dodoc AUTHORS NEWS README - if use opencl; then - insinto /usr/lib/bfgminer/opencl - doins *.cl - fi - if use ztex; then - insinto /usr/lib/bfgminer/ztex - doins bitstreams/*.bit - fi - if use examples; then - docinto examples - dodoc api-example.php miner.php API.java api-example.c - fi -} diff --git a/net-misc/bfgminer/bfgminer-2.4.0.ebuild b/net-misc/bfgminer/bfgminer-2.4.0.ebuild deleted file mode 100644 index d8d106227f1f..000000000000 --- a/net-misc/bfgminer/bfgminer-2.4.0.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.4.0.ebuild,v 1.3 2012/06/16 09:03:02 blueness Exp $ - -EAPI="4" - -inherit eutils - -DESCRIPTION="Modular Bitcoin CPU/GPU/FPGA miner in C" -HOMEPAGE="https://bitcointalk.org/index.php?topic=78192.0" -SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~x86 ~amd64" - -IUSE="+adl altivec bitforce +cpumining examples hardened icarus ncurses +opencl padlock sse2 sse2_4way sse4 +udev ztex" -REQUIRED_USE=" - || ( bitforce cpumining icarus opencl ztex ) - adl? ( opencl ) - altivec? ( cpumining ppc ppc64 ) - opencl? ( ncurses ) - padlock? ( cpumining || ( amd64 x86 ) ) - sse2? ( cpumining || ( amd64 x86 ) ) - sse4? ( cpumining amd64 ) -" - -DEPEND=" - net-misc/curl - ncurses? ( - sys-libs/ncurses - ) - dev-libs/jansson - udev? ( - sys-fs/udev - ) - ztex? ( - virtual/libusb:1 - ) -" -RDEPEND="${DEPEND}" -DEPEND="${DEPEND} - virtual/pkgconfig - sys-apps/sed - adl? ( - x11-libs/amd-adl-sdk - ) - opencl? ( - virtual/opencl - ) - 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 - ln -s /usr/include/ADL/* ADL_SDK/ -} - -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 bitforce) \ - $(use_enable cpumining) \ - $(use_enable icarus) \ - $(use_with ncurses curses) \ - $(use_enable opencl) \ - $(use_with udev libudev) \ - $(use_enable ztex) - if use opencl; then - # sanitize directories - sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/bfgminer/opencl"'"~' config.h - fi - if use ztex; then - sed -i 's~bitstreams/~'"${EPREFIX}"'/usr/lib/bfgminer/ztex/~' libztex.c - fi -} - -src_install() { - dobin bfgminer - dodoc AUTHORS NEWS README - if use opencl; then - insinto /usr/lib/bfgminer/opencl - doins *.cl - fi - if use ztex; then - insinto /usr/lib/bfgminer/ztex - doins bitstreams/*.bit - fi - if use examples; then - docinto examples - dodoc api-example.php miner.php API.java api-example.c - fi -} diff --git a/net-misc/bfgminer/bfgminer-2.4.1.ebuild b/net-misc/bfgminer/bfgminer-2.4.1.ebuild deleted file mode 100644 index 5d1a76fd225f..000000000000 --- a/net-misc/bfgminer/bfgminer-2.4.1.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.4.1.ebuild,v 1.3 2012/06/16 09:03:02 blueness Exp $ - -EAPI="4" - -inherit eutils - -DESCRIPTION="Modular Bitcoin CPU/GPU/FPGA miner in C" -HOMEPAGE="https://bitcointalk.org/index.php?topic=78192.0" -SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~x86 ~amd64" - -IUSE="+adl altivec bitforce +cpumining examples hardened icarus ncurses +opencl padlock sse2 sse2_4way sse4 +udev ztex" -REQUIRED_USE=" - || ( bitforce cpumining icarus opencl ztex ) - adl? ( opencl ) - altivec? ( cpumining ppc ppc64 ) - opencl? ( ncurses ) - padlock? ( cpumining || ( amd64 x86 ) ) - sse2? ( cpumining || ( amd64 x86 ) ) - sse4? ( cpumining amd64 ) -" - -DEPEND=" - net-misc/curl - ncurses? ( - sys-libs/ncurses - ) - dev-libs/jansson - udev? ( - sys-fs/udev - ) - ztex? ( - virtual/libusb:1 - ) -" -RDEPEND="${DEPEND}" -DEPEND="${DEPEND} - virtual/pkgconfig - sys-apps/sed - adl? ( - x11-libs/amd-adl-sdk - ) - opencl? ( - virtual/opencl - ) - 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 - ln -s /usr/include/ADL/* ADL_SDK/ -} - -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 bitforce) \ - $(use_enable cpumining) \ - $(use_enable icarus) \ - $(use_with ncurses curses) \ - $(use_enable opencl) \ - $(use_with udev libudev) \ - $(use_enable ztex) - if use opencl; then - # sanitize directories - sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/bfgminer/opencl"'"~' config.h - fi - if use ztex; then - sed -i 's~bitstreams/~'"${EPREFIX}"'/usr/lib/bfgminer/ztex/~' libztex.c - fi -} - -src_install() { - dobin bfgminer - dodoc AUTHORS NEWS README - if use opencl; then - insinto /usr/lib/bfgminer/opencl - doins *.cl - fi - if use ztex; then - insinto /usr/lib/bfgminer/ztex - doins bitstreams/*.bit - fi - if use examples; then - docinto examples - dodoc api-example.php miner.php API.java api-example.c - fi -} diff --git a/net-misc/bfgminer/bfgminer-2.4.2.ebuild b/net-misc/bfgminer/bfgminer-2.4.2.ebuild deleted file mode 100644 index 328f9a5ef34b..000000000000 --- a/net-misc/bfgminer/bfgminer-2.4.2.ebuild +++ /dev/null @@ -1,120 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.4.2.ebuild,v 1.2 2012/06/16 09:03:02 blueness Exp $ - -EAPI="4" - -inherit eutils - -DESCRIPTION="Modular Bitcoin CPU/GPU/FPGA miner in C" -HOMEPAGE="https://bitcointalk.org/index.php?topic=78192.0" -SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~x86 ~amd64" - -IUSE="+adl altivec bitforce +cpumining examples hardened icarus ncurses +opencl padlock sse2 sse2_4way sse4 +udev ztex" -REQUIRED_USE=" - || ( bitforce cpumining icarus opencl ztex ) - adl? ( opencl ) - altivec? ( cpumining ppc ppc64 ) - opencl? ( ncurses ) - padlock? ( cpumining || ( amd64 x86 ) ) - sse2? ( cpumining || ( amd64 x86 ) ) - sse4? ( cpumining amd64 ) -" - -DEPEND=" - net-misc/curl - ncurses? ( - sys-libs/ncurses - ) - dev-libs/jansson - udev? ( - sys-fs/udev - ) - ztex? ( - virtual/libusb:1 - ) -" -RDEPEND="${DEPEND}" -DEPEND="${DEPEND} - virtual/pkgconfig - sys-apps/sed - adl? ( - x11-libs/amd-adl-sdk - ) - opencl? ( - virtual/opencl - ) - 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 - ln -s /usr/include/ADL/* ADL_SDK/ -} - -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 bitforce) \ - $(use_enable cpumining) \ - $(use_enable icarus) \ - $(use_with ncurses curses) \ - $(use_enable opencl) \ - $(use_with udev libudev) \ - $(use_enable ztex) - if use opencl; then - # sanitize directories - sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/bfgminer/opencl"'"~' config.h - fi - if use ztex; then - sed -i 's~bitstreams/~'"${EPREFIX}"'/usr/lib/bfgminer/ztex/~' libztex.c - fi -} - -src_install() { - dobin bfgminer - dodoc AUTHORS NEWS README API-README - if use icarus; then - dodoc FPGA-README - fi - if use opencl; then - insinto /usr/lib/bfgminer/opencl - doins *.cl - fi - if use ztex; then - insinto /usr/lib/bfgminer/ztex - doins bitstreams/*.bit - fi - if use examples; then - docinto examples - dodoc api-example.php miner.php API.java api-example.c - fi -} diff --git a/net-misc/bfgminer/bfgminer-2.4.3.ebuild b/net-misc/bfgminer/bfgminer-2.4.3.ebuild deleted file mode 100644 index 2ad296d329de..000000000000 --- a/net-misc/bfgminer/bfgminer-2.4.3.ebuild +++ /dev/null @@ -1,122 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-2.4.3.ebuild,v 1.1 2012/06/16 22:09:59 blueness Exp $ - -EAPI="4" - -inherit eutils - -DESCRIPTION="Modular Bitcoin CPU/GPU/FPGA miner in C" -HOMEPAGE="https://bitcointalk.org/index.php?topic=78192.0" -SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~x86 ~amd64" - -IUSE="+adl altivec bitforce +cpumining examples hardened icarus modminer ncurses +opencl padlock sse2 sse2_4way sse4 +udev ztex" -REQUIRED_USE=" - || ( bitforce cpumining icarus modminer opencl ztex ) - adl? ( opencl ) - altivec? ( cpumining ppc ppc64 ) - opencl? ( ncurses ) - padlock? ( cpumining || ( amd64 x86 ) ) - sse2? ( cpumining || ( amd64 x86 ) ) - sse4? ( cpumining amd64 ) -" - -DEPEND=" - net-misc/curl - ncurses? ( - sys-libs/ncurses - ) - dev-libs/jansson - udev? ( - sys-fs/udev - ) - ztex? ( - virtual/libusb:1 - ) -" -RDEPEND="${DEPEND}" -DEPEND="${DEPEND} - virtual/pkgconfig - sys-apps/sed - adl? ( - x11-libs/amd-adl-sdk - ) - opencl? ( - virtual/opencl - ) - 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 - ln -s /usr/include/ADL/* ADL_SDK/ -} - -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 bitforce) \ - $(use_enable cpumining) \ - $(use_enable icarus) \ - $(use_enable modminer) \ - $(use_with ncurses curses) \ - $(use_enable opencl) \ - $(use_with udev libudev) \ - $(use_enable ztex) - # sanitize directories - sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/bfgminer"'"~' config.h -} - -src_install() { - dobin bfgminer - dodoc AUTHORS NEWS README API-README - if use icarus; then - dodoc FPGA-README - fi - if use modminer; then - insinto /usr/lib/bfgminer/modminer - doins bitstreams/*.ncd - 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/*.bit - dodoc bitstreams/COPYING_ztex - fi - if use examples; then - docinto examples - dodoc api-example.php miner.php API.java api-example.c - fi -} |