summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2012-05-05 15:16:35 +0000
committerAnthony G. Basile <blueness@gentoo.org>2012-05-05 15:16:35 +0000
commitfa6098d32a8d8736b551e103f66643ac8335dc76 (patch)
treef6b0f51b03deb979c1d8590628355dd123e0e7c3 /net-misc/cgminer
parentChange file() to open() for bug 413625 by Alexander Brüning. Patch from upst... (diff)
downloadgentoo-2-fa6098d32a8d8736b551e103f66643ac8335dc76.tar.gz
gentoo-2-fa6098d32a8d8736b551e103f66643ac8335dc76.tar.bz2
gentoo-2-fa6098d32a8d8736b551e103f66643ac8335dc76.zip
Version bump
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/cgminer')
-rw-r--r--net-misc/cgminer/ChangeLog6
-rw-r--r--net-misc/cgminer/cgminer-2.3.6.ebuild4
-rw-r--r--net-misc/cgminer/cgminer-2.4.0.ebuild119
3 files changed, 127 insertions, 2 deletions
diff --git a/net-misc/cgminer/ChangeLog b/net-misc/cgminer/ChangeLog
index 3e0bff3fd2df..3e2ccd07348d 100644
--- a/net-misc/cgminer/ChangeLog
+++ b/net-misc/cgminer/ChangeLog
@@ -1,5 +1,11 @@
+*cgminer-2.4.0 (05 May 2012)
+
+ 05 May 2012; Anthony G. Basile <blueness@gentoo.org> cgminer-2.3.6.ebuild,
+ +cgminer-2.4.0.ebuild:
+ Version bump
+
05 May 2012; Jeff Horelick <jdhore@gentoo.org> cgminer-2.3.4.ebuild,
cgminer-2.3.5.ebuild, cgminer-2.3.6.ebuild:
dev-util/pkgconfig -> virtual/pkgconfig
diff --git a/net-misc/cgminer/cgminer-2.3.6.ebuild b/net-misc/cgminer/cgminer-2.3.6.ebuild
index 1a05420d5817..11fe01aa89a0 100644
--- a/net-misc/cgminer/cgminer-2.3.6.ebuild
+++ b/net-misc/cgminer/cgminer-2.3.6.ebuild
@@ -1,6 +1,6 @@
# 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.3.6.ebuild,v 1.2 2012/05/05 03:20:40 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/cgminer/cgminer-2.3.6.ebuild,v 1.3 2012/05/05 15:16:35 blueness Exp $
EAPI="4"
@@ -11,7 +11,7 @@ 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"
+SRC_URI="http://ck.kolivas.org/apps/${PN}/${PN}-2.3/${PN}-${MY_PV}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
diff --git a/net-misc/cgminer/cgminer-2.4.0.ebuild b/net-misc/cgminer/cgminer-2.4.0.ebuild
new file mode 100644
index 000000000000..1ed515a2e593
--- /dev/null
+++ b/net-misc/cgminer/cgminer-2.4.0.ebuild
@@ -0,0 +1,119 @@
+# 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.4.0.ebuild,v 1.1 2012/05/05 15:16:35 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 ncurses +opencl padlock sse2 sse2_4way sse4 +udev ztex"
+REQUIRED_USE="
+ || ( bitforce cpumining icarus opencl ztex )
+ adl? ( opencl )
+ altivec? ( cpumining ppc ppc64 )
+ padlock? ( cpumining || ( amd64 x86 ) )
+ 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? (
+ dev-libs/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_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/cgminer/opencl"'"~' config.h
+ fi
+ if use ztex; then
+ sed -i 's~bitstreams/~'"${EPREFIX}"'/usr/lib/cgminer/ztex/~' libztex.c
+ fi
+}
+
+src_install() {
+ dobin cgminer
+ dodoc AUTHORS NEWS README
+ if use opencl; then
+ insinto /usr/lib/cgminer/opencl
+ doins *.cl
+ fi
+ if use ztex; then
+ insinto /usr/lib/cgminer/ztex
+ doins bitstreams/*.bit
+ fi
+ if use examples; then
+ docinto examples
+ dodoc api-example.php miner.php API.java api-example.c
+ fi
+}