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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Sat Jan 31 15:19:36 2009 UTC (11 years ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +1 -1 lines
FILE REMOVED
Version bump. Remove old cruft. Per bug #251766.
(Portage version: 2.2_rc23/cvs/Linux x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-5.2.14.ebuild,v 1.15 2008/04/17 19:04:16 markusle Exp $
4
5 inherit eutils wxwidgets depend.apache
6
7 DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
8 HOMEPAGE="http://boinc.ssl.berkeley.edu/"
9 SRC_URI="mirror://gentoo//${P}.tar.bz2
10 mirror://gentoo/${P}-patches.tar.bz2"
11
12 LICENSE="LGPL-2.1"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
15 IUSE="server X unicode"
16
17 RDEPEND="sys-libs/zlib
18 >=net-misc/curl-7.15.0
19 >=dev-libs/openssl-0.9.7
20 X? ( =x11-libs/wxGTK-2.6* )
21 server? ( >=virtual/mysql-4.0
22 virtual/php
23 >=dev-lang/python-2.2.3
24 >=dev-python/mysql-python-0.9.2 )"
25 DEPEND=">=sys-devel/gcc-3.0.4
26 >=sys-devel/autoconf-2.59
27 >=sys-devel/automake-1.9.3
28 X? ( x11-libs/libXmu
29 x11-libs/libXt
30 x11-libs/libX11
31 x11-proto/xproto
32 virtual/glut
33 virtual/glu
34 media-libs/jpeg )
35 server? ( virtual/imap-c-client )
36 ${RDEPEND}"
37
38 want_apache server
39
40 src_unpack() {
41 unpack ${A}
42 cd "${S}"
43
44 # Apply patches, most of which from Debian
45 EPATCH_SOURCE="${WORKDIR}/patches" EPATCH_SUFFIX="patch" epatch
46 epatch "${FILESDIR}"/08_all_Makefile.patch
47 epatch "${FILESDIR}"/${P}-gcc-4.1.patch
48
49 # point to a proper mouse device
50 sed -e "s:/dev/mouse:/dev/input/mice:g" -i client/hostinfo_unix.C || die
51 }
52
53 src_compile() {
54 if use X; then
55 WX_GTK_VER=2.6
56 if use unicode; then
57 need-wxwidgets unicode
58 else
59 need-wxwidgets gtk2
60 fi
61 wxconf="--with-wx-config=${WX_CONFIG}"
62 fi
63
64 econf \
65 --enable-client \
66 --disable-static-client \
67 ${wxconf} \
68 $(use_enable unicode) \
69 $(use_enable server) \
70 $(use_with X x) || die "econf failed"
71 emake || die "emake failed"
72 }
73
74 src_install() {
75 make install DESTDIR="${D}" || die "make install failed"
76
77 newinitd "${FILESDIR}"/boinc.init boinc
78 newconfd "${FILESDIR}"/boinc.conf boinc
79
80 make_desktop_entry boinc_gui BOINC boinc Science /var/lib/boinc
81 }
82
83 pkg_preinst() {
84 enewgroup boinc
85 enewuser boinc -1 -1 /var/lib/boinc boinc
86 }
87
88 pkg_postinst() {
89 echo
90 einfo "You need to attach to a project to do anything useful with boinc."
91 einfo "You can do this by running /etc/init.d/boinc attach"
92 einfo "BOINC The howto for configuration is located at:"
93 einfo "http://boinc.berkeley.edu/anonymous_platform.php"
94 if use server;then
95 echo
96 einfo "You have chosen to enable server mode. this ebuild has installed"
97 einfo "the necessary packages to be a server. You will need to have a"
98 einfo "project. Contact BOINC directly for further information."
99 fi
100 echo
101 # Add warning about the new password for the client, bug 121896.
102 einfo "If you need to use the graphical client the password is in "
103 einfo "/var/lib/boinc/gui_rpc_auth.cfg which is randomly generated "
104 einfo "by BOINC. You can change this to something more memorable."
105 echo
106 }

  ViewVC Help
Powered by ViewVC 1.1.20