Permalink
Browse files

FL-464 - add cgminer-2.11.3, cleanup old versions. Now use git for so…

…urces.
  • Loading branch information...
1 parent 055044d commit 13da434f89bb42a0902dd66c4add5b399006d085 @danielrobbins danielrobbins committed Mar 28, 2013
@@ -1,3 +1,4 @@
+DIST cgminer-2.11.3.tar.gz 6206421 SHA256 993b6a9711a0664678dab84b2369c6e5f80e21a3df7773734484a985a43fb925 SHA512 fd36f4a7678f554db26d4819df18aa3180be7e2129ff2d881cbd6d2711600c4f512e7f8b4a393217ffd2103193e87f6211bc15d460b5caf7f5ebb7a8b73df2fc WHIRLPOOL e6d0d0907afa10ade4c781ebbe05b2ad322310c4a06ae1a1effc3810cd5cfc031ef1f8de7ccb97390236b9952c9e49fdcc6ed84e3d5527506f8e084d7a9ff17f
DIST cgminer-2.8.4.tar.bz2 5498230 SHA256 0e3ab7ada3af667a3f18412f682f7675673651f96b36e29a92bb7e6a69a58dcb SHA512 fe033be70b42c84465c0cf32ef46ed031473ec1c2d3386a08b84f6d9afa6f9168160398a346c6c2150965cc5f1346039c73ce8e454dce398ffb5aeb2b39ecdca WHIRLPOOL 5e2516be9d42030f727903955c0ec6f8a7af27dc9405114d6e2ff20fb845526fe6522425babe8b4ca601b7a243a1e3a637405c061776aacc6ce2abbc87205f4e
DIST cgminer-2.8.5.tar.bz2 5499132 SHA256 7bc69f438a0b4506155c9269fb0b7c8c2c978e5400b678248c37d0eb9781cc2b SHA512 44c60be749f918198552a6223555b58b7bf6551b240c5e038df6ccc9b5bcbb6dbd9e8889de2c02e2d20d0ae9cc134aa1b472db3dbd3471c598cc4c1f9e2475d8 WHIRLPOOL 5b26a5423c104d30eb1140743b6b6af504ec5f6982df59f804a1f48a3c06b5d96f43178d8d2b08e3c169882719c797d2e35013379e860dfc479d413eb70acfdb
DIST cgminer-2.8.7.tar.bz2 5498923 SHA256 b1a367e23b75ff10c2c89af7c8da8aed35b9e4ebf611b3b1a654a2a2b69a1320 SHA512 771688fe09f6285abb30c58af3268aafd9f32bcc40b366c3670592f91fce49b849a4ce17b92e769857c935f756750f4bb245548532bbd1de3f5a8c458b49ce29 WHIRLPOOL 0b2b82e3fdd46854724c4c65d77826405c201266199a42e4faf7952465963ec9f8dc3406e7577eae478514a6cc06f2500bf86c38f79cf93375361d1a8511b8fb
@@ -2,19 +2,20 @@
EAPI="4"
-inherit versionator
-
-MY_PV="$(replace_version_separator 3 -)"
-S="${WORKDIR}/${PN}-${MY_PV}"
+inherit autotools
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"
+GITHUB_REPO="cgminer"
+GITHUB_USER="ckolivas"
+GITHUB_TAG="v${PV}"
+SRC_URI="https://www.github.com/${GITHUB_USER}/${GITHUB_REPO}/tarball/${GITHUB_TAG} -> ${PN}-${PV}.tar.gz"
+
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 )
@@ -57,10 +58,14 @@ DEPEND="${DEPEND}
>=dev-lang/yasm-1.0.1
)
"
-
+src_unpack() {
+ unpack ${A}
+ mv "${WORKDIR}/${GITHUB_USER}-${PN}"-??????? "${S}" || die
+}
src_prepare() {
sed -i 's/\(^\#define WANT_.*\(SSE\|PADLOCK\|ALTIVEC\)\)/\/\/ \1/' miner.h
- ln -s /usr/include/ADL/* ADL_SDK/
+ ln -s /usr/include/ADL/* ADL_SDK/ || die
+ eautoreconf || die
}
src_configure() {
@@ -1,128 +0,0 @@
-# Distributed under the terms of the GNU General Public License v2
-
-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
-}
@@ -1,128 +0,0 @@
-# Distributed under the terms of the GNU General Public License v2
-
-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
-}
Oops, something went wrong.

0 comments on commit 13da434

Please sign in to comment.