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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Nov 4 19:22:44 2011 UTC (8 years, 7 months ago) by scarabeus
Branch: MAIN
Changes since 1.1: +1 -2 lines
Drop already applied patch.

(Portage version: 2.2.0_alpha72/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 scarabeus 1.2 # $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-6.12.42.ebuild,v 1.1 2011/11/04 14:01:11 scarabeus Exp $
4 scarabeus 1.1
5     EAPI=4
6    
7     inherit flag-o-matic eutils wxwidgets autotools base
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-0.7
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}/6.12.26-fix_subdirs.patch"
48     )
49    
50     AUTOTOOLS_IN_SOURCE_BUILD=1
51    
52     src_prepare() {
53     # use system ssl certificates
54     mkdir "${S}"/curl
55     ln -s /etc/ssl/certs/ca-certificates.crt "${S}"/curl/ca-bundle.crt
56    
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     base_src_prepare
61    
62     eautoreconf
63     }
64    
65     src_configure() {
66     local wxconf=""
67    
68     # add gtk includes
69     append-flags "$(pkg-config --cflags gtk+-2.0)"
70    
71     # look for wxGTK
72     if use X; then
73     WX_GTK_VER="2.8"
74     need-wxwidgets unicode
75     wxconf+=" --with-wx-config=${WX_CONFIG}"
76     else
77     wxconf+=" --without-wxdir"
78     fi
79    
80     econf \
81     --disable-server \
82     --enable-client \
83     --enable-dynamic-client-linkage \
84     --disable-static \
85     --enable-unicode \
86     --with-ssl \
87     $(use_with X x) \
88     $(use_enable X manager) \
89     ${wxconf}
90     }
91    
92     src_install() {
93     default
94     find "${ED}" -name '*.la' -exec rm -f {} +
95    
96     dodir /var/lib/${PN}/
97     keepdir /var/lib/${PN}/
98    
99     if use X; then
100     newicon "${S}"/packages/generic/sea/${PN}mgr.48x48.png ${PN}.png || die
101     make_desktop_entry boincmgr "${PN}" "${PN}" "Math;Science" "Path=/var/lib/${PN}"
102     fi
103    
104     # cleanup cruft
105     rm -rf "${D}"/etc/
106    
107     newinitd "${FILESDIR}"/${PN}.init ${PN}
108     newconfd "${FILESDIR}"/${PN}.conf ${PN}
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