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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun May 22 09:22:59 2011 UTC (8 years, 10 months ago) by scarabeus
Branch: MAIN
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 scarabeus 1.1 # Copyright 1999-2011 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=4
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.xz"
12    
13     LICENSE="LGPL-2.1"
14     SLOT="0"
15     KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
16     IUSE="X 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     sys-libs/glibc:2.2
34     virtual/jpeg
35     x11-libs/gtk+:2
36     x11-libs/libnotify
37     x11-libs/wxGTK:2.8[X,opengl]
38     )
39     "
40     DEPEND="${RDEPEND}
41     sys-devel/gettext
42     app-text/docbook-xml-dtd:4.4
43     app-text/docbook2X
44     "
45    
46     PATCHES=(
47     "${FILESDIR}/${PV}-fix_subdirs.patch"
48     "${FILESDIR}/${PV}-libnotify-0.7.patch"
49     )
50    
51     AUTOTOOLS_IN_SOURCE_BUILD=1
52    
53     src_prepare() {
54     # use system ssl certificates
55     mkdir "${S}"/curl
56     cp /etc/ssl/certs/ca-certificates.crt "${S}"/curl/ca-bundle.crt
57    
58     # prevent bad changes in compile flags, bug 286701
59     sed -i -e "s:BOINC_SET_COMPILE_FLAGS::" configure.ac || die "sed failed"
60    
61     autotools-utils_src_prepare
62    
63     eautoreconf
64     }
65    
66     src_configure() {
67     local wxconf=""
68    
69     # define preferable CFLAGS (recommended by upstream)
70     append-flags -O3 -funroll-loops -fforce-addr -ffast-math
71     # add gtk includes
72     append-flags "$(pkg-config --cflags gtk+-2.0)"
73    
74     # look for wxGTK
75     if use X; then
76     WX_GTK_VER="2.8"
77     need-wxwidgets unicode
78     wxconf+=" --with-wx-config=${WX_CONFIG}"
79     else
80     wxconf+=" --without-wxdir"
81     fi
82    
83     myeconfargs=(
84     --disable-server
85     --enable-client
86     --enable-dynamic-client-linkage
87     --disable-static
88     --enable-unicode
89     --with-ssl
90     $(use_with X x)
91     $(use_enable X manager)
92     ${wxconf}
93     )
94     autotools-utils_src_configure
95     }
96    
97     src_install() {
98     autotools-utils_src_install
99     remove_libtool_files all
100    
101     dodir /var/lib/${PN}/
102     keepdir /var/lib/${PN}/
103    
104     if use X; then
105     newicon "${S}"/packages/generic/sea/${PN}mgr.48x48.png ${PN}.png || die
106     make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
107     fi
108    
109     # cleanup cruft
110     rm -rf "${D}"/etc/
111    
112     newinitd "${FILESDIR}"/${PN}.init ${PN}
113     newconfd "${FILESDIR}"/${PN}.conf ${PN}
114     }
115    
116     pkg_preinst() {
117     enewgroup ${PN}
118     # note this works only for first install so we have to
119     # elog user about the need of being in video group
120     if use cuda; then
121     enewuser ${PN} -1 -1 /var/lib/${PN} "${PN},video"
122     else
123     enewuser ${PN} -1 -1 /var/lib/${PN} "${PN}"
124     fi
125     }
126    
127     pkg_postinst() {
128     echo
129     elog "You are using the source compiled version of ${PN}."
130     use X && elog "The graphical manager can be found at /usr/bin/${PN}mgr"
131     elog
132     elog "You need to attach to a project to do anything useful with ${PN}."
133     elog "You can do this by running /etc/init.d/${PN} attach"
134     elog "The howto for configuration is located at:"
135     elog "http://boinc.berkeley.edu/wiki/Anonymous_platform"
136     elog
137     # Add warning about the new password for the client, bug 121896.
138     if use X; then
139     elog "If you need to use the graphical manager the password is in:"
140     elog "/var/lib/${PN}/gui_rpc_auth.cfg"
141     elog "Where /var/lib/ is default RUNTIMEDIR, that can be changed in:"
142     elog "/etc/conf.d/${PN}"
143     elog "You should change this password to something more memorable (can be even blank)."
144     elog "Remember to launch init script before using manager. Or changing the password."
145     elog
146     fi
147     if use cuda; then
148     elog "To be able to use CUDA you should add boinc user to video group."
149     elog "To do so run as root:"
150     elog "gpasswd -a boinc video"
151     fi
152     }

  ViewVC Help
Powered by ViewVC 1.1.20