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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun Jul 29 17:09:48 2007 UTC (12 years, 8 months ago) by phreak
Branch: MAIN
Changes since 1.8: +2 -2 lines
Fixing the DEPEND/RDEPEND for the move of net-www/apache to www-servers/apache (#78622).
(Portage version: 2.1.3_rc9)

1 # Copyright 1999-2007 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.5.6.ebuild,v 1.8 2007/07/22 06:55:39 dberkholz Exp $
4
5 inherit eutils wxwidgets
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
11 LICENSE="LGPL-2.1"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
14 IUSE="server X unicode"
15
16 RDEPEND="sys-libs/zlib
17 >=net-misc/curl-7.15.0
18 >=dev-libs/openssl-0.9.7
19 X? ( =x11-libs/wxGTK-2.6* )
20 server? ( www-servers/apache
21 >=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.58
27 >=sys-devel/automake-1.8
28 >=dev-util/pkgconfig-0.15
29 >=sys-devel/m4-1.4
30 X? ( x11-libs/libXmu
31 x11-libs/libXt
32 x11-libs/libX11
33 x11-proto/xproto
34 virtual/glut
35 virtual/glu
36 media-libs/jpeg )
37 server? ( virtual/imap-c-client )
38 ${RDEPEND}"
39
40 src_unpack() {
41 unpack ${A}
42 cd ${S}
43
44 # point to a proper mouse device
45 sed -e "s:/dev/mouse:/dev/input/mice:g" -i client/hostinfo_unix.C || die
46 }
47
48 src_compile() {
49 if use X; then
50 WX_GTK_VER=2.6
51 if use unicode; then
52 need-wxwidgets unicode
53 else
54 need-wxwidgets gtk2
55 fi
56 wxconf="--with-wx-config=${WX_CONFIG}"
57 fi
58
59 # Just run the necessary tools directly
60 einfo "Running necessary autotools..."
61 aclocal -I m4 || die "aclocal failed."
62 autoheader || die "autoheader failed."
63 automake || die "automake failed."
64 autoconf || die "autoconf failed."
65 econf \
66 --enable-client \
67 --disable-static-client \
68 ${wxconf} \
69 $(use_enable unicode) \
70 $(use_enable server) \
71 $(use_with X x) || die "econf failed"
72 # Make it link to the compiled libs, not the installed ones
73 sed -e "s|LDFLAGS = |LDFLAGS = -L../lib |g" -i */Makefile || \
74 die "sed failed"
75 # Force -j1 - bug 136374.
76 emake -j1 || die "emake failed"
77 }
78
79 src_install() {
80 make install DESTDIR=${D} || die "make install failed"
81
82 newinitd ${FILESDIR}/boinc.init boinc
83 newconfd ${FILESDIR}/boinc.conf boinc
84
85 make_desktop_entry boinc_gui BOINC boinc Science /var/lib/boinc
86 }
87
88 pkg_preinst() {
89 enewgroup boinc
90 enewuser boinc -1 -1 /var/lib/boinc boinc
91 }
92
93 pkg_postinst() {
94 echo
95 einfo "You need to attach to a project to do anything useful with boinc."
96 einfo "You can do this by running /etc/init.d/boinc attach"
97 einfo "BOINC The howto for configuration is located at:"
98 einfo "http://boinc.berkeley.edu/anonymous_platform.php"
99 if use server;then
100 echo
101 einfo "You have chosen to enable server mode. this ebuild has installed"
102 einfo "the necessary packages to be a server. You will need to have a"
103 einfo "project. Contact BOINC directly for further information."
104 fi
105 echo
106 # Add warning about the new password for the client, bug 121896.
107 einfo "If you need to use the graphical client the password is in "
108 einfo "/var/lib/boinc/gui_rpc_auth.cfg which is randomly generated "
109 einfo "by BOINC. You can change this to something more memorable."
110 echo
111 }

  ViewVC Help
Powered by ViewVC 1.1.20