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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Aug 4 13:28:13 2015 UTC (4 years, 6 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Version bump with minor fixes. https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/135 by marbre.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

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

  ViewVC Help
Powered by ViewVC 1.1.20