/[gentoo-x86]/sci-misc/boinc/boinc-6.6.40.ebuild
Gentoo

Contents of /sci-misc/boinc/boinc-6.6.40.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Sep 29 17:45:00 2009 UTC (10 years, 5 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Add new as-needed patch per bug #286771. Also fix elog informations per bug #286905.
(Portage version: 2.2_rc41/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-6.6.40.ebuild,v 1.3 2009/09/28 10:26:55 scarabeus Exp $
4
5 EAPI="2"
6
7 inherit flag-o-matic depend.apache eutils wxwidgets autotools
8
9 DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
10 HOMEPAGE="http://boinc.ssl.berkeley.edu/"
11 SRC_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.bz2"
12
13 LICENSE="LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
16 IUSE="X +client cuda server"
17
18 RDEPEND="
19 !sci-misc/boinc-bin
20 !app-admin/quickswitch
21 >=app-misc/ca-certificates-20080809
22 dev-libs/openssl
23 net-misc/curl
24 sys-apps/util-linux
25 sys-libs/zlib
26 cuda? (
27 >=dev-util/nvidia-cuda-toolkit-2.1
28 >=x11-drivers/nvidia-drivers-180.22
29 )
30 server? (
31 >=virtual/mysql-5.0
32 dev-python/mysql-python
33 )
34 "
35 DEPEND="${RDEPEND}
36 sys-devel/gettext
37 server? ( virtual/imap-c-client )
38 X? (
39 media-libs/freeglut
40 media-libs/jpeg
41 x11-libs/wxGTK:2.8[X,opengl]
42 )
43 "
44
45 src_prepare() {
46 # use system ssl certificates
47 mkdir "${S}"/curl
48 cp /etc/ssl/certs/ca-certificates.crt "${S}"/curl/ca-bundle.crt
49
50 epatch \
51 "${FILESDIR}"/6.4.5-glibc210.patch \
52 "${FILESDIR}"/${PV}-*
53
54 eautoreconf
55 }
56
57 src_configure() {
58 local wxconf=""
59 local conf=""
60
61 # define preferable CFLAGS (recommended by upstream)
62 append-flags -O3 -funroll-loops -fforce-addr -ffast-math
63
64 # look for wxGTK
65 if use X; then
66 WX_GTK_VER="2.8"
67 need-wxwidgets unicode
68 wxconf+=" --with-wx-config=${WX_CONFIG}"
69 else
70 wxconf+=" --without-wxdir"
71 fi
72
73 # Bug #248769: don't use strlcat and friends from kerberos or similar
74 #local func
75 #for func in strlcat strlcpy; do
76 # eval "export ac_cv_func_${func}=no"
77 # append-cppflags -D${func}=boinc_${func}
78 #done
79 use server || conf+=" --disable-server"
80 use X || conf+=" --disable-manager"
81 use client || conf+=" --disable-client"
82
83 # configure
84 econf \
85 --disable-dependency-tracking \
86 --enable-unicode \
87 --with-ssl \
88 --enable-optimize \
89 $(use_with X x) \
90 ${wxconf} \
91 ${conf}
92 }
93
94 src_install() {
95 emake DESTDIR="${D}" install || die "make install failed"
96
97 dodir /var/lib/${PN}/
98 keepdir /var/lib/${PN}/
99
100 if use X; then
101 newicon "${S}"/packages/generic/sea/${PN}mgr.48x48.png ${PN}.png || die
102 make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" /var/lib/${PN}
103 fi
104
105 # cleanup cruft
106 rm -rf "${D}"/etc/
107
108 newinitd "${FILESDIR}"/${PN}.init ${PN}
109 newconfd "${FILESDIR}"/${PN}.conf ${PN}
110 }
111
112 pkg_setup() {
113 enewgroup ${PN}
114 # note this works only for first install so we have to
115 # elog user about the need of being in video group
116 if use cuda; then
117 enewuser ${PN} -1 -1 /var/lib/${PN} "${PN},video"
118 else
119 enewuser ${PN} -1 -1 /var/lib/${PN} "${PN}"
120 fi
121 }
122
123 pkg_postinst() {
124 echo
125 elog "You are using the source compiled version."
126 elog "The manager can be found at /usr/bin/${PN}_gui"
127 elog
128 elog "You need to attach to a project to do anything useful with ${PN}."
129 elog "You can do this by running /etc/init.d/${PN} attach"
130 elog "The howto for configuration is located at:"
131 elog "http://boinc.berkeley.edu/wiki/Anonymous_platform"
132 elog
133 # Add warning about the new password for the client, bug 121896.
134 elog "If you need to use the graphical client the password is in:"
135 elog "/var/lib/${PN}/gui_rpc_auth.cfg"
136 elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
137 elog "/etc/conf.d/${PN}"
138 elog "You should change this to something more memorable (can be even blank)."
139 elog
140 elog "Remember to launch init script before using manager. Or changing the password."
141 if use cuda; then
142 elog "To be able to use CUDA you should add boinc user to video group."
143 elog "To do so run as root:"
144 elog "gpasswd -a boinc video"
145 fi
146 }

  ViewVC Help
Powered by ViewVC 1.1.20