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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Jul 18 12:56:44 2012 UTC (2 years, 4 months ago) by alexxy
Branch: MAIN
[sci-misc/boinc] Version bump per bug #411463

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

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=4
6
7 WANT_AUTOMAKE="1.11"
8
9 inherit flag-o-matic eutils wxwidgets autotools base user
10
11 DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
12 HOMEPAGE="http://boinc.ssl.berkeley.edu/"
13 SRC_URI="http://dev.gentoo.org/~alexxy/distfiles/${P}.tar.xz"
14
15 LICENSE="LGPL-2.1"
16 SLOT="0"
17 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
18 IUSE="X cuda"
19
20 RDEPEND="
21 !sci-misc/boinc-bin
22 !app-admin/quickswitch
23 >=app-misc/ca-certificates-20080809
24 dev-libs/openssl
25 net-misc/curl[ssl,-gnutls(-),-nss(-),curl_ssl_openssl(+)]
26 sys-apps/util-linux
27 sys-libs/zlib
28 cuda? (
29 >=dev-util/nvidia-cuda-toolkit-2.1
30 >=x11-drivers/nvidia-drivers-180.22
31 )
32 X? (
33 dev-db/sqlite:3
34 media-libs/freeglut
35 sys-libs/glibc:2.2
36 virtual/jpeg
37 x11-libs/gtk+:2
38 >=x11-libs/libnotify-0.7
39 x11-libs/wxGTK:2.8[X,opengl]
40 )
41 "
42 DEPEND="${RDEPEND}
43 sys-devel/gettext
44 app-text/docbook-xml-dtd:4.4
45 app-text/docbook2X
46 "
47
48 PATCHES=(
49 "${FILESDIR}/7.0.2-fix_subdirs.patch"
50 )
51
52 AUTOTOOLS_IN_SOURCE_BUILD=1
53
54 src_prepare() {
55 # prevent bad changes in compile flags, bug 286701
56 sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
57
58 base_src_prepare
59
60 eautoreconf
61 }
62
63 src_configure() {
64 local wxconf=""
65
66 # add gtk includes
67 append-flags "$(pkg-config --cflags gtk+-2.0)"
68
69 # look for wxGTK
70 if use X; then
71 WX_GTK_VER="2.8"
72 need-wxwidgets unicode
73 wxconf+=" --with-wx-config=${WX_CONFIG}"
74 else
75 wxconf+=" --without-wxdir"
76 fi
77
78 econf \
79 --disable-server \
80 --enable-client \
81 --enable-dynamic-client-linkage \
82 --disable-static \
83 --enable-unicode \
84 --with-ssl \
85 $(use_with X x) \
86 $(use_enable X manager) \
87 ${wxconf}
88 }
89
90 src_install() {
91 default
92 find "${ED}" -name '*.la' -exec rm -f {} +
93
94 dodir /var/lib/${PN}/
95 keepdir /var/lib/${PN}/
96
97 if use X; then
98 newicon "${S}"/packages/generic/sea/${PN}mgr.48x48.png ${PN}.png || die
99 make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
100 fi
101
102 # cleanup cruft
103 rm -rf "${D}"/etc/
104
105 newinitd "${FILESDIR}"/${PN}.init ${PN}
106 newconfd "${FILESDIR}"/${PN}.conf ${PN}
107 }
108
109 pkg_preinst() {
110 enewgroup ${PN}
111 # note this works only for first install so we have to
112 # elog user about the need of being in video group
113 if use cuda; then
114 enewuser ${PN} -1 -1 /var/lib/${PN} "${PN},video"
115 else
116 enewuser ${PN} -1 -1 /var/lib/${PN} "${PN}"
117 fi
118 }
119
120 pkg_postinst() {
121 echo
122 elog "You are using the source compiled version of ${PN}."
123 use X && elog "The graphical manager can be found at /usr/bin/${PN}mgr"
124 elog
125 elog "You need to attach to a project to do anything useful with ${PN}."
126 elog "You can do this by running /etc/init.d/${PN} attach"
127 elog "The howto for configuration is located at:"
128 elog "http://boinc.berkeley.edu/wiki/Anonymous_platform"
129 elog
130 # Add warning about the new password for the client, bug 121896.
131 if use X; then
132 elog "If you need to use the graphical manager the password is in:"
133 elog "/var/lib/${PN}/gui_rpc_auth.cfg"
134 elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
135 elog "/etc/conf.d/${PN}"
136 elog "You should change this password to something more memorable (can be even blank)."
137 elog "Remember to launch init script before using manager. Or changing the password."
138 elog
139 fi
140 if use cuda; then
141 elog "To be able to use CUDA you should add boinc user to video group."
142 elog "Run as root:"
143 elog "gpasswd -a boinc video"
144 fi
145 }

  ViewVC Help
Powered by ViewVC 1.1.20