/[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.11 - (hide annotations) (download)
Thu Jan 17 03:58:41 2008 UTC (12 years, 2 months ago) by tsunam
Branch: MAIN
Changes since 1.10: +2 -2 lines
 fixing my breaking setiathome
(Portage version: 2.1.3.19)

1 tsunam 1.11 # Copyright 1999-2008 Gentoo Foundation
2 cryos 1.1 # Distributed under the terms of the GNU General Public License v2
3 tsunam 1.11 # $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/Attic/boinc-5.5.6.ebuild,v 1.9 2007/07/29 17:09:48 phreak Exp $
4 cryos 1.1
5 dirtyepic 1.7 inherit eutils wxwidgets
6 cryos 1.1
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 dirtyepic 1.7 X? ( =x11-libs/wxGTK-2.6* )
20 phreak 1.9 server? ( www-servers/apache
21 vivo 1.5 >=virtual/mysql-4.0
22 cryos 1.1 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 dberkholz 1.8 X? ( x11-libs/libXmu
31     x11-libs/libXt
32     x11-libs/libX11
33     x11-proto/xproto
34 cryos 1.1 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 dirtyepic 1.7 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 cryos 1.2 # 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 cryos 1.1 econf \
66     --enable-client \
67     --disable-static-client \
68 dirtyepic 1.7 ${wxconf} \
69 cryos 1.3 $(use_enable unicode) \
70 cryos 1.1 $(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 cryos 1.4 # Force -j1 - bug 136374.
76     emake -j1 || die "emake failed"
77 cryos 1.1 }
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