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

Contents of /sci-misc/boinc/boinc-6.10.58-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun May 22 09:22:59 2011 UTC (8 years, 9 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Version bump to boinc 6.12.26. Drop older. Update tarballs to be lzma compressed.

(Portage version: 2.2.0_alpha34/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.10.58-r1.ebuild,v 1.3 2010/11/08 17:52:35 xarthisius Exp $
4
5 EAPI="2"
6
7 inherit flag-o-matic depend.apache eutils wxwidgets autotools autotools-utils
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"
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[ssl,-gnutls]
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 X? (
31 dev-db/sqlite:3
32 media-libs/freeglut
33 virtual/jpeg
34 x11-libs/wxGTK:2.8[X,opengl]
35 )
36 "
37 DEPEND="${RDEPEND}
38 sys-devel/gettext
39 "
40
41 AUTOTOOLS_IN_SOURCE_BUILD=1
42
43 src_prepare() {
44 # use system ssl certificates
45 mkdir "${S}"/curl
46 cp /etc/ssl/certs/ca-certificates.crt "${S}"/curl/ca-bundle.crt
47
48 # prevent bad changes in compile flags, bug 286701
49 sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
50
51 autotools-utils_src_prepare
52
53 eautoreconf
54 }
55
56 src_configure() {
57 local wxconf=""
58 local conf=""
59
60 # define preferable CFLAGS (recommended by upstream)
61 append-flags -O3 -funroll-loops -fforce-addr -ffast-math
62
63 # look for wxGTK
64 if use X; then
65 WX_GTK_VER="2.8"
66 need-wxwidgets unicode
67 wxconf+=" --with-wx-config=${WX_CONFIG}"
68 else
69 wxconf+=" --without-wxdir"
70 fi
71
72 conf+=" --disable-server"
73 use X || conf+=" --disable-manager"
74 use client || conf+=" --disable-client"
75
76 # configure
77 myeconfargs=(
78 --disable-dependency-tracking
79 --disable-static
80 --enable-unicode
81 --with-ssl
82 $(use_with X x)
83 ${wxconf}
84 ${conf}
85 )
86 autotools-utils_src_configure
87 }
88
89 src_install() {
90 autotools-utils_src_install
91 remove_libtool_files all
92
93 dodir /var/lib/${PN}/
94 keepdir /var/lib/${PN}/
95
96 if use X; then
97 newicon "${S}"/packages/generic/sea/${PN}mgr.48x48.png ${PN}.png || die
98 make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
99 fi
100
101 # cleanup cruft
102 rm -rf "${D}"/etc/
103
104 newinitd "${FILESDIR}"/${PN}.init ${PN}
105 newconfd "${FILESDIR}"/${PN}.conf ${PN}
106 }
107
108 pkg_preinst() {
109 enewgroup ${PN}
110 # note this works only for first install so we have to
111 # elog user about the need of being in video group
112 if use cuda; then
113 enewuser ${PN} -1 -1 /var/lib/${PN} "${PN},video"
114 else
115 enewuser ${PN} -1 -1 /var/lib/${PN} "${PN}"
116 fi
117 }
118
119 pkg_postinst() {
120 echo
121 elog "You are using the source compiled version of ${PN}."
122 use X && elog "The graphical manager can be found at /usr/bin/${PN}mgr"
123 elog
124 elog "You need to attach to a project to do anything useful with ${PN}."
125 elog "You can do this by running /etc/init.d/${PN} attach"
126 elog "The howto for configuration is located at:"
127 elog "http://boinc.berkeley.edu/wiki/Anonymous_platform"
128 elog
129 # Add warning about the new password for the client, bug 121896.
130 if use X; then
131 elog "If you need to use the graphical manager the password is in:"
132 elog "/var/lib/${PN}/gui_rpc_auth.cfg"
133 elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
134 elog "/etc/conf.d/${PN}"
135 elog "You should change this password to something more memorable (can be even blank)."
136 elog "Remember to launch init script before using manager. Or changing the password."
137 elog
138 fi
139 if use cuda; then
140 elog "To be able to use CUDA you should add boinc user to video group."
141 elog "To do so run as root:"
142 elog "gpasswd -a boinc video"
143 fi
144 }

  ViewVC Help
Powered by ViewVC 1.1.20