From: | "Anthony G. Basile (blueness)" <blueness@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-misc/cgminer: ChangeLog cgminer-2.3.5.ebuild |
Date: | Sat, 28 Apr 2012 14:07:56 |
Message-Id: | 20120428140744.CFC092004B@flycatcher.gentoo.org |
1 | blueness 12/04/28 14:07:44 |
2 | |
3 | Modified: ChangeLog |
4 | Added: cgminer-2.3.5.ebuild |
5 | Log: |
6 | Version bump |
7 | |
8 | (Portage version: 2.1.10.49/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.8 net-misc/cgminer/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/ChangeLog?rev=1.8&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/ChangeLog?rev=1.8&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/ChangeLog?r1=1.7&r2=1.8 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/net-misc/cgminer/ChangeLog,v |
20 | retrieving revision 1.7 |
21 | retrieving revision 1.8 |
22 | diff -u -r1.7 -r1.8 |
23 | --- ChangeLog 27 Apr 2012 10:16:47 -0000 1.7 |
24 | +++ ChangeLog 28 Apr 2012 14:07:44 -0000 1.8 |
25 | @@ -1,5 +1,10 @@ |
26 | |
27 | |
28 | +*cgminer-2.3.5 (28 Apr 2012) |
29 | + |
30 | + 28 Apr 2012; Anthony G. Basile <blueness@g.o> +cgminer-2.3.5.ebuild: |
31 | + Version bump |
32 | + |
33 | *cgminer-2.3.4 (27 Apr 2012) |
34 | |
35 | 27 Apr 2012; Anthony G. Basile <blueness@g.o> -cgminer-2.3.0.ebuild, |
36 | |
37 | |
38 | |
39 | 1.1 net-misc/cgminer/cgminer-2.3.5.ebuild |
40 | |
41 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/cgminer-2.3.5.ebuild?rev=1.1&view=markup |
42 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/cgminer-2.3.5.ebuild?rev=1.1&content-type=text/plain |
43 | |
44 | Index: cgminer-2.3.5.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.3.5.ebuild,v 1.1 2012/04/28 14:07:44 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 ncurses +opencl padlock sse2 sse2_4way sse4 +udev ztex" |
66 | REQUIRED_USE=" |
67 | || ( bitforce cpumining icarus opencl ztex ) |
68 | adl? ( opencl ) |
69 | altivec? ( cpumining ppc ppc64 ) |
70 | padlock? ( cpumining || ( amd64 x86 ) ) |
71 | sse2? ( cpumining || ( amd64 x86 ) ) |
72 | sse4? ( cpumining amd64 ) |
73 | " |
74 | |
75 | DEPEND=" |
76 | net-misc/curl |
77 | ncurses? ( |
78 | sys-libs/ncurses |
79 | ) |
80 | dev-libs/jansson |
81 | opencl? ( |
82 | virtual/opencl |
83 | ) |
84 | udev? ( |
85 | sys-fs/udev |
86 | ) |
87 | ztex? ( |
88 | dev-libs/libusb:1 |
89 | ) |
90 | " |
91 | RDEPEND="${DEPEND}" |
92 | DEPEND="${DEPEND} |
93 | dev-util/pkgconfig |
94 | sys-apps/sed |
95 | adl? ( |
96 | x11-libs/amd-adl-sdk |
97 | ) |
98 | sse2? ( |
99 | >=dev-lang/yasm-1.0.1 |
100 | ) |
101 | sse4? ( |
102 | >=dev-lang/yasm-1.0.1 |
103 | ) |
104 | " |
105 | |
106 | src_prepare() { |
107 | sed -i 's/\(^\#define WANT_.*\(SSE\|PADLOCK\|ALTIVEC\)\)/\/\/ \1/' miner.h |
108 | ln -s /usr/include/ADL/* ADL_SDK/ |
109 | } |
110 | |
111 | src_configure() { |
112 | local CFLAGS="${CFLAGS}" |
113 | if ! use altivec; then |
114 | sed -i 's/-faltivec//g' configure |
115 | else |
116 | CFLAGS="${CFLAGS} -DWANT_ALTIVEC=1" |
117 | fi |
118 | use padlock && CFLAGS="${CFLAGS} -DWANT_VIA_PADLOCK=1" |
119 | if use sse2; then |
120 | if use amd64; then |
121 | CFLAGS="${CFLAGS} -DWANT_X8664_SSE2=1" |
122 | else |
123 | CFLAGS="${CFLAGS} -DWANT_X8632_SSE2=1" |
124 | fi |
125 | fi |
126 | use sse2_4way && CFLAGS="${CFLAGS} -DWANT_SSE2_4WAY=1" |
127 | use sse4 && CFLAGS="${CFLAGS} -DWANT_X8664_SSE4=1" |
128 | use hardened && CFLAGS="${CFLAGS} -nopie" |
129 | |
130 | CFLAGS="${CFLAGS}" \ |
131 | econf \ |
132 | $(use_enable adl) \ |
133 | $(use_enable bitforce) \ |
134 | $(use_enable cpumining) \ |
135 | $(use_enable icarus) \ |
136 | $(use_with ncurses curses) \ |
137 | $(use_enable opencl) \ |
138 | $(use_with udev libudev) \ |
139 | $(use_enable ztex) |
140 | if use opencl; then |
141 | # sanitize directories |
142 | sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer/opencl"'"~' config.h |
143 | fi |
144 | if use ztex; then |
145 | sed -i 's~bitstreams/~'"${EPREFIX}"'/usr/lib/cgminer/ztex/~' libztex.c |
146 | fi |
147 | } |
148 | |
149 | src_install() { |
150 | dobin cgminer |
151 | dodoc AUTHORS NEWS README |
152 | if use opencl; then |
153 | insinto /usr/lib/cgminer/opencl |
154 | doins *.cl |
155 | fi |
156 | if use ztex; then |
157 | insinto /usr/lib/cgminer/ztex |
158 | doins bitstreams/*.bit |
159 | fi |
160 | if use examples; then |
161 | docinto examples |
162 | dodoc api-example.php miner.php API.java api-example.c |
163 | fi |
164 | } |