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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Aug 4 13:28:13 2015 UTC (4 years, 5 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -4 lines
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: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-7.2.0-r1.ebuild,v 1.1 2013/12/31 13:05:51 pacho Exp $
4
5 EAPI=5
6
7 #WANT_AUTOMAKE="1.11"
8
9 AUTOTOOLS_AUTORECONF=true
10
11 inherit autotools-utils flag-o-matic eutils wxwidgets user systemd
12
13 DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
14 HOMEPAGE="http://boinc.ssl.berkeley.edu/"
15 SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
16
17 LICENSE="LGPL-2.1"
18 SLOT="0"
19 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
20 IUSE="X cuda static-libs"
21
22 RDEPEND="
23 !sci-misc/boinc-bin
24 !app-admin/quickswitch
25 >=app-misc/ca-certificates-20080809
26 dev-libs/openssl:0=
27 net-misc/curl[ssl,-gnutls(-),-nss(-),curl_ssl_openssl(+)]
28 sys-apps/util-linux
29 sys-libs/zlib
30 cuda? (
31 >=dev-util/nvidia-cuda-toolkit-2.1
32 >=x11-drivers/nvidia-drivers-180.22
33 )
34 X? (
35 dev-db/sqlite:3
36 media-libs/freeglut
37 sys-libs/glibc:2.2
38 virtual/jpeg:0=
39 x11-libs/gtk+:2
40 >=x11-libs/libnotify-0.7
41 x11-libs/wxGTK:2.8[X,opengl]
42 )
43 "
44 DEPEND="${RDEPEND}
45 sys-devel/gettext
46 app-text/docbook-xml-dtd:4.4
47 app-text/docbook2X
48 "
49
50 PATCHES=(
51 "${FILESDIR}"/${P}-fix_subdirs.patch
52 )
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 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 local myeconfargs=(
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 autotools-utils_src_configure
90 }
91
92 src_install() {
93 autotools-utils_src_install
94
95 dodir /var/lib/${PN}/
96 keepdir /var/lib/${PN}/
97
98 if use X; then
99 newicon "${S}"/packages/generic/sea/${PN}mgr.48x48.png ${PN}.png || die
100 make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
101 fi
102
103 # cleanup cruft
104 rm -rf "${ED}"/etc/
105
106 newinitd "${FILESDIR}"/${PN}.init ${PN}
107 newconfd "${FILESDIR}"/${PN}.conf ${PN}
108 systemd_dounit "${FILESDIR}"/${PN}.service
109 }
110
111 pkg_preinst() {
112 enewgroup ${PN}
113 # note this works only for first install so we have to
114 # elog user about the need of being in video group
115 if use cuda; then
116 enewuser ${PN} -1 -1 /var/lib/${PN} "${PN},video"
117 else
118 enewuser ${PN} -1 -1 /var/lib/${PN} "${PN}"
119 fi
120 }
121
122 pkg_postinst() {
123 echo
124 elog "You are using the source compiled version of ${PN}."
125 use X && elog "The graphical manager can be found at /usr/bin/${PN}mgr"
126 elog
127 elog "You need to attach to a project to do anything useful with ${PN}."
128 elog "You can do this by running /etc/init.d/${PN} attach"
129 elog "The howto for configuration is located at:"
130 elog "http://boinc.berkeley.edu/wiki/Anonymous_platform"
131 elog
132 # Add warning about the new password for the client, bug 121896.
133 if use X; then
134 elog "If you need to use the graphical manager 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 password to something more memorable (can be even blank)."
139 elog "Remember to launch init script before using manager. Or changing the password."
140 elog
141 fi
142 if use cuda; then
143 elog "To be able to use CUDA you should add boinc user to video group."
144 elog "Run as root:"
145 elog "gpasswd -a boinc video"
146 fi
147 }

  ViewVC Help
Powered by ViewVC 1.1.20