Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-misc/boinc: ChangeLog boinc-6.2.15.ebuild
Date: Mon, 24 Nov 2008 19:04:03
Message-Id: E1L4gir-0003wq-8U@stork.gentoo.org
1 scarabeus 08/11/24 19:03:49
2
3 Modified: ChangeLog
4 Added: boinc-6.2.15.ebuild
5 Log:
6 Version bump. Fixes bug 155671 and 234360. Cryos blessed this one :]
7 (Portage version: 2.2_rc14/cvs/Linux 2.6.27-gentoo x86_64)
8
9 Revision Changes Path
10 1.42 sci-misc/boinc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/ChangeLog?rev=1.42&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/ChangeLog?rev=1.42&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/ChangeLog?r1=1.41&r2=1.42
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v
19 retrieving revision 1.41
20 retrieving revision 1.42
21 diff -u -r1.41 -r1.42
22 --- ChangeLog 6 Aug 2008 18:23:54 -0000 1.41
23 +++ ChangeLog 24 Nov 2008 19:03:49 -0000 1.42
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sci-misc/boinc
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v 1.41 2008/08/06 18:23:54 ulm Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v 1.42 2008/11/24 19:03:49 scarabeus Exp $
29 +
30 +*boinc-6.2.15 (24 Nov 2008)
31 +
32 + 24 Nov 2008; Tomas Chvatal <scarabeus@g.o>
33 + +files/boinc-6.2.15-mute-warnings.patch,
34 + +files/boinc-6.2.15-project-list-size.patch, +boinc-6.2.15.ebuild:
35 + Version bump. Mostly rewrite from scratch.
36
37 06 Aug 2008; Ulrich Mueller <ulm@g.o> metadata.xml:
38 Add USE flag description to metadata wrt GLEP 56.
39
40
41
42 1.1 sci-misc/boinc/boinc-6.2.15.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/boinc-6.2.15.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-misc/boinc/boinc-6.2.15.ebuild?rev=1.1&content-type=text/plain
46
47 Index: boinc-6.2.15.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-6.2.15.ebuild,v 1.1 2008/11/24 19:03:49 scarabeus Exp $
52
53 EAPI="1"
54
55 inherit depend.apache flag-o-matic wxwidgets autotools
56
57 MY_PV="${PV//./_}"
58 DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
59 HOMEPAGE="http://boinc.ssl.berkeley.edu/"
60 SRC_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.bz2
61 bindist? ( amd64? ( http://${PN}dl.ssl.berkeley.edu/dl/${P/-/_}_x86_64-pc-linux-gnu.sh )
62 x86? ( http://${PN}dl.ssl.berkeley.edu/dl/${P/-/_}_i686-pc-linux-gnu.sh )
63 )"
64
65 LICENSE="LGPL-2.1"
66 SLOT="0"
67 KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
68 IUSE="X bindist server unicode"
69 # bindist is only for x86 and amd64 for rest package.use.mask
70
71 RDEPEND="sys-libs/zlib
72 >=net-misc/curl-7.15.5
73 >=dev-libs/openssl-0.9.7
74 X? ( =x11-libs/wxGTK-2.8* )
75 server? (
76 !bindist? (
77 >=virtual/mysql-4.0
78 virtual/php
79 >=dev-lang/python-2.2.3
80 >=dev-python/mysql-python-0.9.2
81 )
82 )"
83 DEPEND="!bindist? (
84 >=sys-devel/gcc-3.0.4
85 >=sys-devel/autoconf-2.58
86 >=sys-devel/automake-1.8
87 >=dev-util/pkgconfig-0.15
88 >=sys-devel/m4-1.4
89 )
90 X? ( x11-libs/libXmu
91 x11-libs/libXt
92 x11-libs/libX11
93 x11-proto/xproto
94 media-libs/freeglut
95 virtual/glu
96 media-libs/jpeg )
97 server? ( !bindist? ( virtual/imap-c-client ) )
98 ${RDEPEND}"
99 # subversion is not needed only if user choose binary for amd64 or x86
100 want_apache server
101
102 LANGS="ar be bg ca cs da de el en_US es eu fi fr hr hu it ja lt lv nb nl pl pt pt_BR ro ru sk sl sv_SE tr uk zh_CN zh_TW"
103 for LNG in ${LANGS}; do
104 IUSE="${IUSE} linguas_${LNG}"
105 done
106
107 src_unpack() {
108 local target
109
110 if ! use bindist; then
111 unpack ${P}.tar.bz2
112 cd "${S}"
113 # replace CXXFLAGS, those added are suggested by upstream
114 sed -i \
115 -e "s:-O3 -fomit-frame-pointer -fforce-addr -ffast-math \$(AM_CPPFLAGS):\$(AM_CPPFLAGS) -O3 -funroll-loops -fforce-addr -ffast-math:" \
116 client/Makefile.am || die "sed client/Makefile.am failed"
117 # silence warnings
118 epatch "${FILESDIR}"/"${P}"-project-list-size.patch
119 epatch "${FILESDIR}"/"${P}"-mute-warnings.patch
120 # do autoreconf
121 rm "${S}"/m4/libtool.m4
122 AT_M4DIR="m4" eautoreconf
123 else
124 use server && elog "Server feature is working only for source build, please disable bindist if you really intend to use server."
125 use x86 && target="i686" || target="x86_64"
126 cp "${DISTDIR}"/${P/-/_}_${target}-pc-linux-gnu.sh "${WORKDIR}"
127 cd "${WORKDIR}"
128 sh ${P/-/_}_${target}-pc-linux-gnu.sh
129 fi
130 }
131
132 src_compile() {
133 if ! use bindist; then
134 if use X; then
135 WX_GTK_VER=2.8
136 use unicode && need-wxwidgets unicode || need-wxwidgets gtk2
137 wxconf="--with-wx-config=${WX_CONFIG}"
138 fi
139
140 econf \
141 --enable-client \
142 --with-ssl \
143 ${wxconf} \
144 $(use_enable unicode) \
145 $(use_enable server) \
146 $(use_with X x) || die "econf failed"
147
148 # Make it link to the compiled libs, not the installed ones
149 # remove precompiled binaries from svn
150 sed -i \
151 -e "s:LDFLAGS = :LDFLAGS = -L../lib :g" \
152 */Makefile || die "sed failed"
153 emake || die "emake failed"
154 fi
155 }
156
157 src_install() {
158 mkdir -p "${D}"/var/lib/${PN}/
159 newinitd "${FILESDIR}"/${PN}.init ${PN}
160 newconfd "${FILESDIR}"/${PN}.conf ${PN}
161 if ! use bindist; then
162 cp "${S}"/ca-bundle.crt "${D}"/var/lib/${PN}
163 make install DESTDIR="${D}" || die "make install failed"
164 # icon
165 newicon "${S}"/sea/${PN}mgr.48x48.png ${PN}.png
166 # wrapper to allow gui to load gui_rpc_auth.cfg because ${PN} devs assume curdir to be datadir for ${PN}_gui
167 mv "${D}"/usr/bin/${PN}_gui "${D}"/usr/bin/${PN}mgr
168 echo "cd \"/var/lib/${PN}\" && exec /usr/bin/${PN}mgr \$@" > "${D}"/usr/bin/${PN}_gui
169 chmod 755 "${D}"/usr/bin/${PN}_gui
170 # desktop
171 if use X; then
172 make_desktop_entry ${PN}_gui ${PN} ${PN} "Education;Science" /var/lib/${PN}
173 fi
174 # required headers by seti@home
175 insopts -m0644
176 insinto /usr/include/${PN}
177 doins "${S}"/api/{reduce.h,graphics_api.h,graphics_data.h,${PN}_gl.h}
178 # symlink locale so it actualy work for source dist.
179 insinto /usr/share/locale/
180 cd "${S}"/locale/client
181 for LNG in ${LINGUAS}; do
182 doins -r ${LNG}
183 done
184 dosym /usr/share/locale /var/lib/${PN}/locale
185 cd "${S}"
186 else
187 local S_BIN="${WORKDIR}"/BOINC
188 cd "${S_BIN}"
189 cp "${S_BIN}"/ca-bundle.crt "${D}"/var/lib/${PN}
190 # fix ${PN}.conf file for binary package
191 sed -i -e "s:/usr/bin/${PN}_client:/opt/${PN}/${PN}:g" "${D}"/etc/conf.d/${PN}
192 if use X; then
193 # icon
194 newicon "${S_BIN}"/${PN}mgr.48x48.png ${PN}.png
195 # desktop
196 make_desktop_entry /opt/${PN}/run_manager "${PN}" ${PN} "Education;Science" /var/lib/${PN}
197 fi
198 # use correct path in scripts
199 sed -i \
200 -e "s:${S_BIN}:/var/lib/${PN}:g" \
201 -e "s:./${PN}:/opt/${PN}/${PN}:g" \
202 run_client || die "sed run_client failed"
203 sed -i \
204 -e "s:${S_BIN}:/var/lib/${PN}:g" \
205 -e "s:./${PN}mgr:/opt/${PN}/${PN}mgr:g" \
206 run_manager || die "sed run_manager failed"
207 # install binaries
208 exeopts -m0755
209 exeinto /opt/${PN}
210 doexe "${S_BIN}"//{${PN},${PN}_cmd,${PN}cmd,${PN}mgr,run_client,run_manager}
211 fowners 0:${PN} /opt/${PN}/{${PN},${PN}_cmd,${PN}cmd,${PN}mgr,run_client,run_manager}
212 # locale
213 mkdir -p "${D}"/opt/${PN}/locale
214 insopts -m0644
215 insinto /opt/${PN}/
216 cd "${S_BIN}"/locale/
217 for LNG in ${LINGUAS}; do
218 doins -r "${LNG}"
219 done
220 dosym /opt/${PN}/locale /var/lib/${PN}/locale
221 cd "${S}"
222 fi
223 fowners ${PN}:${PN} /var/lib/${PN}/ca-bundle.crt
224 chown ${PN}:${PN} "${D}"/var/lib/${PN}
225 }
226
227 pkg_preinst() {
228 enewgroup ${PN}
229 enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
230 }
231
232 pkg_postinst() {
233 echo
234 if use bindist; then
235 elog "You are using the binary distributed version."
236 elog "The manager can be found at /opt/${PN}/run_manager"
237 fi
238 elog "You need to attach to a project to do anything useful with ${PN}."
239 elog "You can do this by running /etc/init.d/${PN} attach"
240 elog "${PN} The howto for configuration is located at:"
241 elog "http://${PN}.berkeley.edu/anonymous_platform.php"
242 if use server && ! use bindist ; then
243 echo
244 elog "You have chosen to enable server mode. this ebuild has installed"
245 elog "the necessary packages to be a server. You will need to have a"
246 elog "project. Contact ${PN} directly for further information."
247 fi
248 echo
249 # Add warning about the new password for the client, bug 121896.
250 elog "If you need to use the graphical client the password is in "
251 elog "/var/lib/${PN}/gui_rpc_auth.cfg which is randomly generated "
252 elog "by ${PN} upon successfully running the gui for the first time."
253 elog "You can change this to something more memorable."
254 echo
255 }