Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/cgminer: cgminer-2.7.4.ebuild ChangeLog
Date: Thu, 30 Aug 2012 21:31:01
Message-Id: 20120830213042.32B0520CD2@flycatcher.gentoo.org
1 blueness 12/08/30 21:30:42
2
3 Modified: ChangeLog
4 Added: cgminer-2.7.4.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.1.11.9/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.29 net-misc/cgminer/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/ChangeLog?rev=1.29&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/ChangeLog?rev=1.29&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/ChangeLog?r1=1.28&r2=1.29
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/cgminer/ChangeLog,v
20 retrieving revision 1.28
21 retrieving revision 1.29
22 diff -u -r1.28 -r1.29
23 --- ChangeLog 22 Aug 2012 11:47:46 -0000 1.28
24 +++ ChangeLog 30 Aug 2012 21:30:41 -0000 1.29
25 @@ -1,5 +1,10 @@
26
27
28 +*cgminer-2.7.4 (30 Aug 2012)
29 +
30 + 30 Aug 2012; Anthony G. Basile <blueness@g.o> +cgminer-2.7.4.ebuild:
31 + Version bump
32 +
33 22 Aug 2012; Anthony G. Basile <blueness@g.o> -cgminer-2.4.3.ebuild:
34 Remove older unstable
35
36
37
38
39 1.1 net-misc/cgminer/cgminer-2.7.4.ebuild
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/cgminer-2.7.4.ebuild?rev=1.1&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/cgminer-2.7.4.ebuild?rev=1.1&content-type=text/plain
43
44 Index: cgminer-2.7.4.ebuild
45 ===================================================================
46 # Copyright 1999-2012 Gentoo Foundation
47 # Distributed under the terms of the GNU General Public License v2
48 # $Header: /var/cvsroot/gentoo-x86/net-misc/cgminer/cgminer-2.7.4.ebuild,v 1.1 2012/08/30 21:30:41 blueness Exp $
49
50 EAPI="4"
51
52 inherit versionator
53
54 MY_PV="$(replace_version_separator 3 -)"
55 S="${WORKDIR}/${PN}-${MY_PV}"
56
57 DESCRIPTION="Bitcoin CPU/GPU/FPGA miner in C"
58 HOMEPAGE="https://bitcointalk.org/index.php?topic=28402.0"
59 SRC_URI="http://ck.kolivas.org/apps/${PN}/${PN}-${MY_PV}.tar.bz2"
60
61 LICENSE="GPL-3"
62 SLOT="0"
63 KEYWORDS="~x86 ~amd64"
64
65 IUSE="+adl altivec bitforce +cpumining examples hardened icarus modminer ncurses +opencl padlock scrypt sse2 sse2_4way sse4 +udev ztex"
66 REQUIRED_USE="
67 || ( bitforce cpumining icarus modminer opencl ztex )
68 adl? ( opencl )
69 altivec? ( cpumining ppc ppc64 )
70 opencl? ( ncurses )
71 padlock? ( cpumining || ( amd64 x86 ) )
72 scrypt? ( opencl )
73 sse2? ( cpumining || ( amd64 x86 ) )
74 sse4? ( cpumining amd64 )
75 "
76
77 DEPEND="
78 net-misc/curl
79 ncurses? (
80 sys-libs/ncurses
81 )
82 dev-libs/jansson
83 opencl? (
84 virtual/opencl
85 )
86 udev? (
87 sys-fs/udev
88 )
89 ztex? (
90 virtual/libusb:1
91 )
92 "
93 RDEPEND="${DEPEND}"
94 DEPEND="${DEPEND}
95 virtual/pkgconfig
96 sys-apps/sed
97 adl? (
98 x11-libs/amd-adl-sdk
99 )
100 sse2? (
101 >=dev-lang/yasm-1.0.1
102 )
103 sse4? (
104 >=dev-lang/yasm-1.0.1
105 )
106 "
107
108 src_prepare() {
109 sed -i 's/\(^\#define WANT_.*\(SSE\|PADLOCK\|ALTIVEC\)\)/\/\/ \1/' miner.h
110 ln -s /usr/include/ADL/* ADL_SDK/
111 }
112
113 src_configure() {
114 local CFLAGS="${CFLAGS}"
115 if ! use altivec; then
116 sed -i 's/-faltivec//g' configure
117 else
118 CFLAGS="${CFLAGS} -DWANT_ALTIVEC=1"
119 fi
120 use padlock && CFLAGS="${CFLAGS} -DWANT_VIA_PADLOCK=1"
121 if use sse2; then
122 if use amd64; then
123 CFLAGS="${CFLAGS} -DWANT_X8664_SSE2=1"
124 else
125 CFLAGS="${CFLAGS} -DWANT_X8632_SSE2=1"
126 fi
127 fi
128 use sse2_4way && CFLAGS="${CFLAGS} -DWANT_SSE2_4WAY=1"
129 use sse4 && CFLAGS="${CFLAGS} -DWANT_X8664_SSE4=1"
130 use hardened && CFLAGS="${CFLAGS} -nopie"
131
132 CFLAGS="${CFLAGS}" \
133 econf \
134 $(use_enable adl) \
135 $(use_enable bitforce) \
136 $(use_enable cpumining) \
137 $(use_enable icarus) \
138 $(use_enable modminer) \
139 $(use_with ncurses curses) \
140 $(use_enable opencl) \
141 $(use_enable scrypt) \
142 $(use_with udev libudev) \
143 $(use_enable ztex)
144 # sanitize directories
145 sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h
146 }
147
148 src_install() {
149 dobin cgminer
150 dodoc AUTHORS NEWS README API-README
151 if use scrypt; then
152 dodoc SCRYPT-README
153 fi
154 if use icarus || use bitforce; then
155 dodoc FPGA-README
156 fi
157 if use modminer; then
158 insinto /usr/lib/cgminer/modminer
159 doins bitstreams/*.ncd
160 dodoc bitstreams/COPYING_fpgaminer
161 fi
162 if use opencl; then
163 insinto /usr/lib/cgminer
164 doins *.cl
165 fi
166 if use ztex; then
167 insinto /usr/lib/cgminer/ztex
168 doins bitstreams/*.bit
169 dodoc bitstreams/COPYING_ztex
170 fi
171 if use examples; then
172 docinto examples
173 dodoc api-example.php miner.php API.java api-example.c
174 fi
175 }