Gentoo Archives: gentoo-commits

From: "Mounir Lamouri (volkmar)" <volkmar@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-misc/boinc: ChangeLog boinc-6.6.40-r1.ebuild
Date: Mon, 28 Sep 2009 19:28:43
Message-Id: E1MsLtp-0006tY-7i@stork.gentoo.org
1 volkmar 09/09/28 19:28:41
2
3 Modified: ChangeLog
4 Added: boinc-6.6.40-r1.ebuild
5 Log:
6 Prevent bad changes in compile flags.
7 Fix bug 286701.
8 (Portage version: 14420-svn/cvs/Linux ppc)
9
10 Revision Changes Path
11 1.72 sci-misc/boinc/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/ChangeLog?rev=1.72&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/ChangeLog?rev=1.72&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/ChangeLog?r1=1.71&r2=1.72
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v
20 retrieving revision 1.71
21 retrieving revision 1.72
22 diff -u -r1.71 -r1.72
23 --- ChangeLog 28 Sep 2009 10:26:55 -0000 1.71
24 +++ ChangeLog 28 Sep 2009 19:28:40 -0000 1.72
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sci-misc/boinc
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v 1.71 2009/09/28 10:26:55 scarabeus Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v 1.72 2009/09/28 19:28:40 volkmar Exp $
30 +
31 +*boinc-6.6.40-r1 (28 Sep 2009)
32 +
33 + 28 Sep 2009; Mounir Lamouri <volkmar@g.o> +boinc-6.6.40-r1.ebuild:
34 + Prevent bad changes in compile flags, fix bug 286701
35
36 28 Sep 2009; Tomáš Chvátal <scarabeus@g.o> boinc-6.6.40.ebuild:
37 Enable optimalizations by default.
38
39
40
41 1.1 sci-misc/boinc/boinc-6.6.40-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/boinc-6.6.40-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/boinc-6.6.40-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: boinc-6.6.40-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-6.6.40-r1.ebuild,v 1.1 2009/09/28 19:28:40 volkmar Exp $
51
52 EAPI="2"
53
54 inherit flag-o-matic depend.apache eutils wxwidgets autotools
55
56 DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
57 HOMEPAGE="http://boinc.ssl.berkeley.edu/"
58 SRC_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.bz2"
59
60 LICENSE="LGPL-2.1"
61 SLOT="0"
62 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
63 IUSE="X +client cuda server"
64
65 RDEPEND="
66 !sci-misc/boinc-bin
67 !app-admin/quickswitch
68 >=app-misc/ca-certificates-20080809
69 dev-libs/openssl
70 net-misc/curl
71 sys-apps/util-linux
72 sys-libs/zlib
73 cuda? (
74 >=dev-util/nvidia-cuda-toolkit-2.1
75 >=x11-drivers/nvidia-drivers-180.22
76 )
77 server? (
78 >=virtual/mysql-5.0
79 dev-python/mysql-python
80 )
81 "
82 DEPEND="${RDEPEND}
83 sys-devel/gettext
84 server? ( virtual/imap-c-client )
85 X? (
86 media-libs/freeglut
87 media-libs/jpeg
88 x11-libs/wxGTK:2.8[X,opengl]
89 )
90 "
91
92 src_prepare() {
93 # use system ssl certificates
94 mkdir "${S}"/curl
95 cp /etc/ssl/certs/ca-certificates.crt "${S}"/curl/ca-bundle.crt
96
97 # prevent bad changes in compile flags, bug 286701
98 sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
99
100 epatch \
101 "${FILESDIR}"/6.4.5-glibc210.patch \
102 "${FILESDIR}"/${PV}-*
103
104 eautoreconf
105 }
106
107 src_configure() {
108 local wxconf=""
109 local conf=""
110
111 # define preferable CFLAGS (recommended by upstream)
112 append-flags -O3 -funroll-loops -fforce-addr -ffast-math
113
114 # look for wxGTK
115 if use X; then
116 WX_GTK_VER="2.8"
117 need-wxwidgets unicode
118 wxconf+=" --with-wx-config=${WX_CONFIG}"
119 else
120 wxconf+=" --without-wxdir"
121 fi
122
123 # Bug #248769: don't use strlcat and friends from kerberos or similar
124 #local func
125 #for func in strlcat strlcpy; do
126 # eval "export ac_cv_func_${func}=no"
127 # append-cppflags -D${func}=boinc_${func}
128 #done
129 use server || conf+=" --disable-server"
130 use X || conf+=" --disable-manager"
131 use client || conf+=" --disable-client"
132
133 # configure
134 econf \
135 --disable-dependency-tracking \
136 --enable-unicode \
137 --with-ssl \
138 $(use_with X x) \
139 ${wxconf} \
140 ${conf}
141 }
142
143 src_install() {
144 emake DESTDIR="${D}" install || die "make install failed"
145
146 dodir /var/lib/${PN}/
147 keepdir /var/lib/${PN}/
148
149 if use X; then
150 newicon "${S}"/packages/generic/sea/${PN}mgr.48x48.png ${PN}.png || die
151 make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" /var/lib/${PN}
152 fi
153
154 # cleanup cruft
155 rm -rf "${D}"/etc/
156
157 newinitd "${FILESDIR}"/${PN}.init ${PN}
158 newconfd "${FILESDIR}"/${PN}.conf ${PN}
159 }
160
161 pkg_setup() {
162 enewgroup ${PN}
163 # note this works only for first install so we have to
164 # elog user about the need of being in video group
165 if use cuda; then
166 enewuser ${PN} -1 -1 /var/lib/${PN} "${PN},video"
167 else
168 enewuser ${PN} -1 -1 /var/lib/${PN} "${PN}"
169 fi
170 }
171
172 pkg_postinst() {
173 echo
174 elog "You are using the source compiled version."
175 elog "The manager can be found at /usr/bin/${PN}_gui"
176 elog
177 elog "You need to attach to a project to do anything useful with ${PN}."
178 elog "You can do this by running /etc/init.d/${PN} attach"
179 elog "The howto for configuration is located at:"
180 elog "http://boinc.berkeley.edu/wiki/Anonymous_platform"
181 elog
182 # Add warning about the new password for the client, bug 121896.
183 elog "If you need to use the graphical client the password is in:"
184 elog "/var/lib/${PN}/gui_rpc_auth.cfg"
185 elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
186 elog "/etc/conf.d/${PN}"
187 elog "You should change this to something more memorable (can be even blank)."
188 elog
189 elog "Remember to launch init script before using manager. Or changing the password."
190 if use cuda; then
191 elog "To be able to use CUDA you should add boinc user to video group."
192 elog "To do so run as root:"
193 elog "gpasswd -a boinc video"
194 fi
195 }