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.2.ebuild |
Date: | Mon, 02 Apr 2012 13:03:37 |
Message-Id: | 20120402130319.C2F412004B@flycatcher.gentoo.org |
1 | blueness 12/04/02 13:03:19 |
2 | |
3 | Modified: ChangeLog |
4 | Added: cgminer-2.3.2.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.4 net-misc/cgminer/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/ChangeLog?rev=1.4&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/ChangeLog?rev=1.4&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/ChangeLog?r1=1.3&r2=1.4 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/net-misc/cgminer/ChangeLog,v |
20 | retrieving revision 1.3 |
21 | retrieving revision 1.4 |
22 | diff -u -r1.3 -r1.4 |
23 | --- ChangeLog 24 Feb 2012 22:00:33 -0000 1.3 |
24 | +++ ChangeLog 2 Apr 2012 13:03:19 -0000 1.4 |
25 | @@ -1,5 +1,10 @@ |
26 | |
27 | |
28 | +*cgminer-2.3.2 (02 Apr 2012) |
29 | + |
30 | + 02 Apr 2012; Anthony G. Basile <blueness@g.o> +cgminer-2.3.2.ebuild: |
31 | + Version bump |
32 | + |
33 | *cgminer-2.3.1.2 (24 Feb 2012) |
34 | |
35 | 24 Feb 2012; Anthony G. Basile <blueness@g.o> cgminer-2.3.0.ebuild, |
36 | |
37 | |
38 | |
39 | 1.1 net-misc/cgminer/cgminer-2.3.2.ebuild |
40 | |
41 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/cgminer-2.3.2.ebuild?rev=1.1&view=markup |
42 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/cgminer-2.3.2.ebuild?rev=1.1&content-type=text/plain |
43 | |
44 | Index: cgminer-2.3.2.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.2.ebuild,v 1.1 2012/04/02 13:03:19 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-2" |
62 | SLOT="0" |
63 | KEYWORDS="~x86 ~amd64" |
64 | |
65 | IUSE="+adl altivec bitforce +cpumining examples hardened icarus ncurses +opencl padlock sse2 sse2_4way sse4" |
66 | REQUIRED_USE=" |
67 | || ( bitforce cpumining icarus opencl ) |
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 | " |
85 | RDEPEND="${DEPEND}" |
86 | DEPEND="${DEPEND} |
87 | dev-util/pkgconfig |
88 | sys-apps/sed |
89 | adl? ( |
90 | x11-libs/amd-adl-sdk |
91 | ) |
92 | sse2? ( |
93 | >=dev-lang/yasm-1.0.1 |
94 | ) |
95 | sse4? ( |
96 | >=dev-lang/yasm-1.0.1 |
97 | ) |
98 | " |
99 | |
100 | src_prepare() { |
101 | sed -i 's/\(^\#define WANT_.*\(SSE\|PADLOCK\|ALTIVEC\)\)/\/\/ \1/' miner.h |
102 | ln -s /usr/include/ADL/* ADL_SDK/ |
103 | } |
104 | |
105 | src_configure() { |
106 | local CFLAGS="${CFLAGS}" |
107 | if ! use altivec; then |
108 | sed -i 's/-faltivec//g' configure |
109 | else |
110 | CFLAGS="${CFLAGS} -DWANT_ALTIVEC=1" |
111 | fi |
112 | use padlock && CFLAGS="${CFLAGS} -DWANT_VIA_PADLOCK=1" |
113 | if use sse2; then |
114 | if use amd64; then |
115 | CFLAGS="${CFLAGS} -DWANT_X8664_SSE2=1" |
116 | else |
117 | CFLAGS="${CFLAGS} -DWANT_X8632_SSE2=1" |
118 | fi |
119 | fi |
120 | use sse2_4way && CFLAGS="${CFLAGS} -DWANT_SSE2_4WAY=1" |
121 | use sse4 && CFLAGS="${CFLAGS} -DWANT_X8664_SSE4=1" |
122 | use hardened && CFLAGS="${CFLAGS} -nopie" |
123 | |
124 | CFLAGS="${CFLAGS}" \ |
125 | econf \ |
126 | $(use_enable adl) \ |
127 | $(use_enable bitforce) \ |
128 | $(use_enable cpumining) \ |
129 | $(use_enable icarus) \ |
130 | $(use_with ncurses curses) \ |
131 | $(use_enable opencl) |
132 | if use opencl; then |
133 | # sanitize directories |
134 | sed -i 's/^(\#define CGMINER_PREFIX ).*$/\1"'"${EPREFIX}/usr/share/cgminer"'"/' config.h |
135 | fi |
136 | } |
137 | |
138 | src_install() { |
139 | dobin cgminer |
140 | dodoc AUTHORS NEWS README |
141 | if use opencl; then |
142 | insinto /usr/share/cgminer |
143 | doins *.cl |
144 | fi |
145 | if use examples; then |
146 | docinto examples |
147 | dodoc api-example.php miner.php API.java api-example.c |
148 | fi |
149 | } |