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