summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2012-08-30 21:30:41 +0000
committerAnthony G. Basile <blueness@gentoo.org>2012-08-30 21:30:41 +0000
commit0f42efbbbc7b98c57f3b8d9b01db4685587db4c9 (patch)
treeff5f7547d92ba900e4a2781bc01a2adafdc5096d /net-misc
parentStable for amd64, wrt bug #432946 (diff)
downloadgentoo-2-0f42efbbbc7b98c57f3b8d9b01db4685587db4c9.tar.gz
gentoo-2-0f42efbbbc7b98c57f3b8d9b01db4685587db4c9.tar.bz2
gentoo-2-0f42efbbbc7b98c57f3b8d9b01db4685587db4c9.zip
Version bump
(Portage version: 2.1.11.9/cvs/Linux x86_64)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/cgminer/ChangeLog5
-rw-r--r--net-misc/cgminer/cgminer-2.7.4.ebuild130
2 files changed, 135 insertions, 0 deletions
diff --git a/net-misc/cgminer/ChangeLog b/net-misc/cgminer/ChangeLog
index 0794041b8d9f..1d286478d1b9 100644
--- a/net-misc/cgminer/ChangeLog
+++ b/net-misc/cgminer/ChangeLog
@@ -1,5 +1,10 @@
+*cgminer-2.7.4 (30 Aug 2012)
+
+ 30 Aug 2012; Anthony G. Basile <blueness@gentoo.org> +cgminer-2.7.4.ebuild:
+ Version bump
+
22 Aug 2012; Anthony G. Basile <blueness@gentoo.org> -cgminer-2.4.3.ebuild:
Remove older unstable
diff --git a/net-misc/cgminer/cgminer-2.7.4.ebuild b/net-misc/cgminer/cgminer-2.7.4.ebuild
new file mode 100644
index 000000000000..a2613f269e84
--- /dev/null
+++ b/net-misc/cgminer/cgminer-2.7.4.ebuild
@@ -0,0 +1,130 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/cgminer/cgminer-2.7.4.ebuild,v 1.1 2012/08/30 21:30:41 blueness Exp $
+
+EAPI="4"
+
+inherit versionator
+
+MY_PV="$(replace_version_separator 3 -)"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+DESCRIPTION="Bitcoin CPU/GPU/FPGA miner in C"
+HOMEPAGE="https://bitcointalk.org/index.php?topic=28402.0"
+SRC_URI="http://ck.kolivas.org/apps/${PN}/${PN}-${MY_PV}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+IUSE="+adl altivec bitforce +cpumining examples hardened icarus modminer ncurses +opencl padlock scrypt 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 ) )
+ scrypt? ( opencl )
+ sse2? ( cpumining || ( amd64 x86 ) )
+ sse4? ( cpumining amd64 )
+"
+
+DEPEND="
+ net-misc/curl
+ ncurses? (
+ sys-libs/ncurses
+ )
+ dev-libs/jansson
+ opencl? (
+ virtual/opencl
+ )
+ udev? (
+ sys-fs/udev
+ )
+ ztex? (
+ virtual/libusb:1
+ )
+"
+RDEPEND="${DEPEND}"
+DEPEND="${DEPEND}
+ virtual/pkgconfig
+ sys-apps/sed
+ adl? (
+ x11-libs/amd-adl-sdk
+ )
+ 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_enable scrypt) \
+ $(use_with udev libudev) \
+ $(use_enable ztex)
+ # sanitize directories
+ sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h
+}
+
+src_install() {
+ dobin cgminer
+ dodoc AUTHORS NEWS README API-README
+ if use scrypt; then
+ dodoc SCRYPT-README
+ fi
+ if use icarus || use bitforce; then
+ dodoc FPGA-README
+ fi
+ if use modminer; then
+ insinto /usr/lib/cgminer/modminer
+ doins bitstreams/*.ncd
+ dodoc bitstreams/COPYING_fpgaminer
+ fi
+ if use opencl; then
+ insinto /usr/lib/cgminer
+ doins *.cl
+ fi
+ if use ztex; then
+ insinto /usr/lib/cgminer/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
+}