Permalink
Browse files

ENH: add app-misc from bitcoin

  • Loading branch information...
npinto committed Feb 8, 2012
1 parent 6c9a6d5 commit 2b9ff9dcf04a68dfd4daf4a184a55816d1ed36ce
View
@@ -0,0 +1,12 @@
+DIST cgminer-2.0.3.tar.bz2 321032 RMD160 8bc99363456aff08d6d44d4649fae810ac19b336 SHA1 4ed95dfecdd5e500f5e208341212a1452f10d498 SHA256 6f70657ba5d33188db1b5b704a952bf0f0f50a7227895f82a98ebb377f65e6ae
+DIST cgminer-2.0.4.tar.bz2 325153 RMD160 3fb8f06d82f8c041b4bee5e7dcffe9609057aebb SHA1 05ece6749ad64d192c769215e9f77f6008b1cd5e SHA256 d84195d3daf8c8eb51d7a71583a9913f1bc32675d2d157f3530e5445d46a4d02
+DIST cgminer-2.0.5.tar.bz2 326529 RMD160 7b22eca41716e3371d009b464cd13ed47c59038e SHA1 ebd3ecc1ced54b621e937bc8d0cb5568c26cca0b SHA256 f96dafc07a7a732231b3cbb25d37ecae353f6c27769e61101dc174a17ef441b6
+DIST cgminer-2.0.6.tar.bz2 329359 RMD160 853e7c60fe3f7967b8aa58353ffa5a71da9f9889 SHA1 075bb6dd676db5c92e2577bb70a75eab2ff9d98b SHA256 235c66528b74037422466750c88d22c86b772b0fca07cfbcdefc1ed34dc05f7e
+DIST cgminer-2.0.8.tar.bz2 332113 RMD160 8538f23edba488843df1feb6a20441b89df7968a SHA1 29392de680b1155b159f513a2e24089004dbfb16 SHA256 2bbe4251d92e141bb211ebab214b7342eb4a0e32e6250a75ec00c94a2bc68c8d
+DIST cgminer-2.1.2.tar.bz2 351451 RMD160 5171f4e61d8ee710e4043ccafe2704ce5641ef6d SHA1 1835b59ab0d0b76219e4ec1a8d57fef6b9ca351b SHA256 b15b7331897e81140225ee15a20ce4af96e00869a0aecf4748882f34c7bc72be
+EBUILD cgminer-2.0.3.ebuild 1902 RMD160 5b37b8b414cca48929c7dc555e94b0d1567acd8f SHA1 e26d332c07a7acc49176849d4a7b0b022d37268d SHA256 884f01410a45724eb8b59e21eabd8dba3fa0a49c600794db9faf7f31ee66582e
+EBUILD cgminer-2.0.4.ebuild 1831 RMD160 b956f04080922619496c8699338cbe108c082d79 SHA1 e7ef288701ac235ef47b9065a67eea8225c0cdc2 SHA256 cd85f298d04b8b26566b7663986b0cb0cc1c4a85d1a5131e2fbdc5b38e68c2dd
+EBUILD cgminer-2.0.5.ebuild 1831 RMD160 b956f04080922619496c8699338cbe108c082d79 SHA1 e7ef288701ac235ef47b9065a67eea8225c0cdc2 SHA256 cd85f298d04b8b26566b7663986b0cb0cc1c4a85d1a5131e2fbdc5b38e68c2dd
+EBUILD cgminer-2.0.6.ebuild 1980 RMD160 bcced23a29d9352f2fcc536001320a38ee920092 SHA1 3d0fb32ec13a444e27f4a2e58cae0f25f746e6ac SHA256 1f8ace8d5b61e3259e36349aae3883428907e9410f40be8ffe576b9872ffa811
+EBUILD cgminer-2.0.8.ebuild 1980 RMD160 bcced23a29d9352f2fcc536001320a38ee920092 SHA1 3d0fb32ec13a444e27f4a2e58cae0f25f746e6ac SHA256 1f8ace8d5b61e3259e36349aae3883428907e9410f40be8ffe576b9872ffa811
+EBUILD cgminer-2.1.2.ebuild 2092 RMD160 29af5fd277708b18b273b5defb6487ba1f1f8453 SHA1 65af9c24694d7bc6dd14473b9af2c4061568c32d SHA256 8c29b126113dde5edfded54f4585db664f6ddb53259be5b2747a9bcbac805b7d
@@ -0,0 +1,93 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+DESCRIPTION="CPU/GPU miner in c for bitcoin"
+HOMEPAGE="https://bitcointalk.org/index.php?topic=28402.0"
+SRC_URI="http://ck.kolivas.org/apps/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+IUSE="adl opencl padlock sse2 sse2_4way sse4"
+REQUIRED_USE='
+ adl? ( opencl )
+ padlock? ( || ( amd64 x86 ) )
+ sse2? ( || ( amd64 x86 ) )
+ sse4? ( amd64 )
+'
+
+DEPEND='
+ net-misc/curl
+ sys-libs/ncurses
+ >=dev-libs/jansson-2
+ sse2? (
+ >=dev-lang/yasm-1.0.1
+ )
+ sse4? (
+ >=dev-lang/yasm-1.0.1
+ )
+ opencl? (
+ || (
+ virtual/opencl-sdk
+ app-admin/eselect-opencl
+ dev-util/ati-stream-sdk
+ dev-util/ati-stream-sdk-bin
+ dev-util/amdstream
+ dev-util/amd-app-sdk
+ dev-util/amd-app-sdk-bin
+ dev-util/nvidia-cuda-sdk[opencl]
+ dev-util/intel-opencl-sdk
+ )
+ )
+'
+RDEPEND="${DEPEND}"
+DEPEND="${DEPEND}
+ dev-util/pkgconfig
+ sys-apps/sed
+ adl? (
+ dev-util/amd-adl-sdk
+ )
+"
+
+src_prepare() {
+ sed -i 's/\(^\#define WANT_.*\(SSE\|PADLOCK\)\)/\/\/ \1/' miner.h
+ ln -s /usr/include/ADL/* ADL_SDK/
+}
+
+src_configure() {
+ local CFLAGS="${CFLAGS}"
+ 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"
+ CFLAGS="${CFLAGS}" \
+ econf \
+ $(use_enable adl) \
+ $(use_enable opencl)
+ if ! use opencl; then
+ # workaround configure bug
+ sed -i 's/-lOpenCL//g' Makefile
+ else
+ # sanitize directories
+ sed -i 's/^(\#define CGMINER_PREFIX ).*$/\1"'"${EPREFIX}/usr/share/cgminer"'"/' config.h
+ fi
+}
+
+src_install() {
+ dobin cgminer
+ dodoc AUTHORS NEWS README
+ if use opencl; then
+ insinto /usr/share/cgminer
+ doins *.cl
+ fi
+}
@@ -0,0 +1,90 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+DESCRIPTION="CPU/GPU miner in c for bitcoin"
+HOMEPAGE="https://bitcointalk.org/index.php?topic=28402.0"
+SRC_URI="http://ck.kolivas.org/apps/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+IUSE="adl opencl padlock sse2 sse2_4way sse4"
+REQUIRED_USE='
+ adl? ( opencl )
+ padlock? ( || ( amd64 x86 ) )
+ sse2? ( || ( amd64 x86 ) )
+ sse4? ( amd64 )
+'
+
+DEPEND='
+ net-misc/curl
+ sys-libs/ncurses
+ >=dev-libs/jansson-2
+ sse2? (
+ >=dev-lang/yasm-1.0.1
+ )
+ sse4? (
+ >=dev-lang/yasm-1.0.1
+ )
+ opencl? (
+ || (
+ virtual/opencl-sdk
+ app-admin/eselect-opencl
+ dev-util/ati-stream-sdk
+ dev-util/ati-stream-sdk-bin
+ dev-util/amdstream
+ dev-util/amd-app-sdk
+ dev-util/amd-app-sdk-bin
+ dev-util/nvidia-cuda-sdk[opencl]
+ dev-util/intel-opencl-sdk
+ )
+ )
+'
+RDEPEND="${DEPEND}"
+DEPEND="${DEPEND}
+ dev-util/pkgconfig
+ sys-apps/sed
+ adl? (
+ dev-util/amd-adl-sdk
+ )
+"
+
+src_prepare() {
+ sed -i 's/\(^\#define WANT_.*\(SSE\|PADLOCK\)\)/\/\/ \1/' miner.h
+ ln -s /usr/include/ADL/* ADL_SDK/
+}
+
+src_configure() {
+ local CFLAGS="${CFLAGS}"
+ 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"
+ CFLAGS="${CFLAGS}" \
+ econf \
+ $(use_enable adl) \
+ $(use_enable opencl)
+ if use opencl; then
+ # sanitize directories
+ sed -i 's/^(\#define CGMINER_PREFIX ).*$/\1"'"${EPREFIX}/usr/share/cgminer"'"/' config.h
+ fi
+}
+
+src_install() {
+ dobin cgminer
+ dodoc AUTHORS NEWS README
+ if use opencl; then
+ insinto /usr/share/cgminer
+ doins *.cl
+ fi
+}
@@ -0,0 +1,90 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+DESCRIPTION="CPU/GPU miner in c for bitcoin"
+HOMEPAGE="https://bitcointalk.org/index.php?topic=28402.0"
+SRC_URI="http://ck.kolivas.org/apps/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+IUSE="adl opencl padlock sse2 sse2_4way sse4"
+REQUIRED_USE='
+ adl? ( opencl )
+ padlock? ( || ( amd64 x86 ) )
+ sse2? ( || ( amd64 x86 ) )
+ sse4? ( amd64 )
+'
+
+DEPEND='
+ net-misc/curl
+ sys-libs/ncurses
+ >=dev-libs/jansson-2
+ sse2? (
+ >=dev-lang/yasm-1.0.1
+ )
+ sse4? (
+ >=dev-lang/yasm-1.0.1
+ )
+ opencl? (
+ || (
+ virtual/opencl-sdk
+ app-admin/eselect-opencl
+ dev-util/ati-stream-sdk
+ dev-util/ati-stream-sdk-bin
+ dev-util/amdstream
+ dev-util/amd-app-sdk
+ dev-util/amd-app-sdk-bin
+ dev-util/nvidia-cuda-sdk[opencl]
+ dev-util/intel-opencl-sdk
+ )
+ )
+'
+RDEPEND="${DEPEND}"
+DEPEND="${DEPEND}
+ dev-util/pkgconfig
+ sys-apps/sed
+ adl? (
+ dev-util/amd-adl-sdk
+ )
+"
+
+src_prepare() {
+ sed -i 's/\(^\#define WANT_.*\(SSE\|PADLOCK\)\)/\/\/ \1/' miner.h
+ ln -s /usr/include/ADL/* ADL_SDK/
+}
+
+src_configure() {
+ local CFLAGS="${CFLAGS}"
+ 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"
+ CFLAGS="${CFLAGS}" \
+ econf \
+ $(use_enable adl) \
+ $(use_enable opencl)
+ if use opencl; then
+ # sanitize directories
+ sed -i 's/^(\#define CGMINER_PREFIX ).*$/\1"'"${EPREFIX}/usr/share/cgminer"'"/' config.h
+ fi
+}
+
+src_install() {
+ dobin cgminer
+ dodoc AUTHORS NEWS README
+ if use opencl; then
+ insinto /usr/share/cgminer
+ doins *.cl
+ fi
+}
@@ -0,0 +1,96 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+DESCRIPTION="CPU/GPU miner in c for bitcoin"
+HOMEPAGE="https://bitcointalk.org/index.php?topic=28402.0"
+SRC_URI="http://ck.kolivas.org/apps/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+IUSE="adl altivec opencl padlock sse2 sse2_4way sse4"
+REQUIRED_USE='
+ adl? ( opencl )
+ altivec? ( ppc ppc64 )
+ padlock? ( || ( amd64 x86 ) )
+ sse2? ( || ( amd64 x86 ) )
+ sse4? ( amd64 )
+'
+
+DEPEND='
+ net-misc/curl
+ sys-libs/ncurses
+ >=dev-libs/jansson-2
+ sse2? (
+ >=dev-lang/yasm-1.0.1
+ )
+ sse4? (
+ >=dev-lang/yasm-1.0.1
+ )
+ opencl? (
+ || (
+ virtual/opencl-sdk
+ app-admin/eselect-opencl
+ dev-util/ati-stream-sdk
+ dev-util/ati-stream-sdk-bin
+ dev-util/amdstream
+ dev-util/amd-app-sdk
+ dev-util/amd-app-sdk-bin
+ dev-util/nvidia-cuda-sdk[opencl]
+ dev-util/intel-opencl-sdk
+ )
+ )
+'
+RDEPEND="${DEPEND}"
+DEPEND="${DEPEND}
+ dev-util/pkgconfig
+ sys-apps/sed
+ adl? (
+ dev-util/amd-adl-sdk
+ )
+"
+
+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"
+ CFLAGS="${CFLAGS}" \
+ econf \
+ $(use_enable adl) \
+ $(use_enable opencl)
+ if use opencl; then
+ # sanitize directories
+ sed -i 's/^(\#define CGMINER_PREFIX ).*$/\1"'"${EPREFIX}/usr/share/cgminer"'"/' config.h
+ fi
+}
+
+src_install() {
+ dobin cgminer
+ dodoc AUTHORS NEWS README
+ if use opencl; then
+ insinto /usr/share/cgminer
+ doins *.cl
+ fi
+}
Oops, something went wrong.

0 comments on commit 2b9ff9d

Please sign in to comment.