/[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.4 - (hide annotations) (download)
Sat Jul 15 23:24:47 2006 UTC (13 years, 8 months ago) by cryos
Branch: MAIN
Changes since 1.3: +3 -2 lines
Forced -j1, should fix bug 136374.
(Portage version: 2.1.1_pre2-r8)

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

  ViewVC Help
Powered by ViewVC 1.1.20