summaryrefslogtreecommitdiff
path: root/net-misc/cgminer
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-03-24 17:22:19 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-03-24 17:22:19 +0000
commitaa3411e241a201d53a2689766fe419f2756819f3 (patch)
treecc19adfde0a10aab1ab566c8dfe3c1616e5cc390 /net-misc/cgminer
parentb7b97785ebbb2f11d24d14dab8b81ed274f4ce6a (diff)
gentoo resync : 24.03.2019
Diffstat (limited to 'net-misc/cgminer')
-rw-r--r--net-misc/cgminer/Manifest2
-rw-r--r--net-misc/cgminer/cgminer-4.10.0.ebuild76
2 files changed, 41 insertions, 37 deletions
diff --git a/net-misc/cgminer/Manifest b/net-misc/cgminer/Manifest
index 12ce33132e73..3b0c5f5d1919 100644
--- a/net-misc/cgminer/Manifest
+++ b/net-misc/cgminer/Manifest
@@ -1,5 +1,5 @@
DIST cgminer-4.10.0.tar.bz2 1306225 BLAKE2B 29d34e5d9246fc5b0409a1647e4ddf291f1e7610888110c1917ddbc1c30a9d0301bb70dba187690f2685b2fd476d5c0b0cd65e87fafa56b62a7f3a0202a374de SHA512 ed39bffa51715756875c101f4aaf984cab566fc1c8b657f6da37d0cdf921faee752c3efadf97c98ca6e749175457fbc2c37e9332cd26d2ff1675752250ac21db
DIST cgminer-4.9.2.tar.bz2 1476371 BLAKE2B 01ff700cb5dc2fb12709da41aeaa22c6fc6b9dc6fb1e12116eef3a382ad328961b8d6ddd6ac6fce47ab8084c96e1a7be74a697b3d885c7e78dfadf07b678ad24 SHA512 48371657c84f09ad8c500a29ca85f35af70eb8720d9d97b565cd8c5356289d889ee60c06f37c0507a53c8f50ae827a77fa0c41609bac6b1e8849ad26b55d67d4
-EBUILD cgminer-4.10.0.ebuild 2472 BLAKE2B a115a700eed1cf043865c4cc83ca0bfee50feaad74e90d42ac70d1decf8b40a4de6bf8d8834d75021754872e0d16be4547a7d1f326a04734b874b966389c3d83 SHA512 23f365350fa8fec10adb922674fc1f4f6aa41cfeb9687df55a05593d19fdfc256b75ec2a960b4d5a2fd691349a58a6af53d4cd00cfb9394f15c4d172d2897f3f
+EBUILD cgminer-4.10.0.ebuild 2534 BLAKE2B d75fd59cd9076abdd5740744ed3e9272dbcc4604b8917d209757427173df5005eabf1af36cce65c7ec0034844f50c4545c808862a4b907ccd3e1c03773a47c7a SHA512 33598078656e46c892f4e9a03e1398e10f663eb760e28b5440673996a5a3cbe8738dadea5ff55e75670a891224ab0be1f080931cdb25107cabc85f2e9e4e935e
EBUILD cgminer-4.9.2.ebuild 2394 BLAKE2B 6ce5b161deb01d273c92b90bbc3f33cff3eec09df2ecabd00ca34540f76b433150e9e8f99180d2063fbcd112929e95a15cac84daa7c4b887958e5b58663e41c4 SHA512 b696ca5383154324826cb2aec76b8ba8db973001cd9dafd1a782edeb02ff65425c10161f8ba70d3a9033b7ce2727dd3b39bb68601a1e82207a112bc5ae4693e2
MISC metadata.xml 2137 BLAKE2B 8bb2fd05a390c5c5ec5ca3dde384ab611311d50256668208184dfb978ac5a0debd75ec63cd35159dcde36b2a964d0bedf6aaf3422261f998f2262c1007c3ab29 SHA512 6cf1454188266ffdab67a7caa27ece041cfc4c3cb4fc76b7fe5fa24bed30002df717afe4e8693532a4f78b077374200cb2a9e91b460372193f1b623238d50b38
diff --git a/net-misc/cgminer/cgminer-4.10.0.ebuild b/net-misc/cgminer/cgminer-4.10.0.ebuild
index c635781c2f25..9f112f4a838b 100644
--- a/net-misc/cgminer/cgminer-4.10.0.ebuild
+++ b/net-misc/cgminer/cgminer-4.10.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
-inherit eutils flag-o-matic
+inherit flag-o-matic toolchain-funcs
DESCRIPTION="Bitcoin CPU/GPU/FPGA/ASIC miner in C"
HOMEPAGE="https://bitcointalk.org/?topic=28402.msg357369 https://github.com/ckolivas/cgminer"
@@ -24,46 +24,50 @@ RDEPEND="net-misc/curl
virtual/libusb:1[udev]
ncurses? ( sys-libs/ncurses:0= )
udev? ( virtual/libudev )"
-DEPEND="virtual/pkgconfig
- ${RDEPEND}"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
src_configure() {
use hardened && append-cflags "-nopie"
# PKG_CHECK_MODULES needs PKG_CONFIG for --with-system-jansson.
- export PKG_CONFIG=/usr/bin/pkg-config
- econf $(use_with ncurses curses) \
- $(use_enable ants1) \
- $(use_enable ants2) \
- $(use_enable ants3) \
- $(use_enable avalon) \
- $(use_enable avalon2) \
- $(use_enable avalon4) \
- $(use_enable avalon7) \
- $(use_enable avalon-miner) \
- $(use_enable bab) \
- $(use_enable bitmine_A1) \
- $(use_enable bflsc) \
- $(use_enable bitforce) \
- $(use_enable bitfury) \
- $(use_enable blockerupter) \
- $(use_enable cointerra) \
- $(use_enable drillbit) \
- $(use_enable hashfast) \
- $(use_enable hashratio) \
- $(use_enable icarus) \
- $(use_enable klondike) \
- $(use_enable knc) \
- $(use_enable minion) \
- $(use_enable modminer) \
- $(use_enable sp10) \
- $(use_enable sp30) \
- $(use_enable udev) \
- --disable-forcecombo \
- --with-system-libusb \
+ export PKG_CONFIG="$(tc-getPKG_CONFIG)"
+ local myeconfargs=(
+ $(use_with ncurses curses)
+ $(use_enable ants1)
+ $(use_enable ants2)
+ $(use_enable ants3)
+ $(use_enable avalon)
+ $(use_enable avalon2)
+ $(use_enable avalon4)
+ $(use_enable avalon7)
+ $(use_enable avalon-miner)
+ $(use_enable bab)
+ $(use_enable bitmine_A1)
+ $(use_enable bflsc)
+ $(use_enable bitforce)
+ $(use_enable bitfury)
+ $(use_enable blockerupter)
+ $(use_enable cointerra)
+ $(use_enable drillbit)
+ $(use_enable hashfast)
+ $(use_enable hashratio)
+ $(use_enable icarus)
+ $(use_enable klondike)
+ $(use_enable knc)
+ $(use_enable minion)
+ $(use_enable modminer)
+ $(use_enable sp10)
+ $(use_enable sp30)
+ $(use_enable udev)
+ --disable-forcecombo
+ --with-system-libusb
--with-system-jansson
+ )
+ econf "${myeconfargs[@]}" \
+ NCURSES_LIBS="$(${PKG_CONFIG} --libs ncurses)"
# sanitize directories (is this still needed?)
- sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h
+ sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h || die
}
src_install() { # How about using some make install?