/[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.14 - (hide annotations) (download)
Sat Jan 31 15:19:36 2009 UTC (11 years, 1 month ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED
Version bump. Remove old cruft. Per bug #251766.
(Portage version: 2.2_rc23/cvs/Linux x86_64)

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 scarabeus 1.14 # $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-5.5.6.ebuild,v 1.13 2008/04/17 19:04:16 markusle Exp $
4 cryos 1.1
5 hollow 1.12 inherit eutils wxwidgets depend.apache
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 hollow 1.12 server? ( >=virtual/mysql-4.0
21 cryos 1.1 virtual/php
22     >=dev-lang/python-2.2.3
23     >=dev-python/mysql-python-0.9.2 )"
24     DEPEND=">=sys-devel/gcc-3.0.4
25 cryos 1.2 >=sys-devel/autoconf-2.58
26     >=sys-devel/automake-1.8
27     >=dev-util/pkgconfig-0.15
28     >=sys-devel/m4-1.4
29 dberkholz 1.8 X? ( x11-libs/libXmu
30     x11-libs/libXt
31     x11-libs/libX11
32     x11-proto/xproto
33 cryos 1.1 virtual/glut
34     virtual/glu
35     media-libs/jpeg )
36     server? ( virtual/imap-c-client )
37     ${RDEPEND}"
38    
39 hollow 1.12 want_apache server
40    
41 cryos 1.1 src_unpack() {
42     unpack ${A}
43 markusle 1.13 cd "${S}"
44 cryos 1.1
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 dirtyepic 1.7 if use X; then
51     WX_GTK_VER=2.6
52     if use unicode; then
53     need-wxwidgets unicode
54     else
55     need-wxwidgets gtk2
56     fi
57     wxconf="--with-wx-config=${WX_CONFIG}"
58     fi
59    
60 cryos 1.2 # Just run the necessary tools directly
61     einfo "Running necessary autotools..."
62     aclocal -I m4 || die "aclocal failed."
63     autoheader || die "autoheader failed."
64     automake || die "automake failed."
65     autoconf || die "autoconf failed."
66 cryos 1.1 econf \
67     --enable-client \
68     --disable-static-client \
69 dirtyepic 1.7 ${wxconf} \
70 cryos 1.3 $(use_enable unicode) \
71 cryos 1.1 $(use_enable server) \
72     $(use_with X x) || die "econf failed"
73     # Make it link to the compiled libs, not the installed ones
74     sed -e "s|LDFLAGS = |LDFLAGS = -L../lib |g" -i */Makefile || \
75     die "sed failed"
76 cryos 1.4 # Force -j1 - bug 136374.
77     emake -j1 || die "emake failed"
78 cryos 1.1 }
79    
80     src_install() {
81 markusle 1.13 make install DESTDIR="${D}" || die "make install failed"
82 cryos 1.1
83 markusle 1.13 newinitd "${FILESDIR}"/boinc.init boinc
84     newconfd "${FILESDIR}"/boinc.conf boinc
85 cryos 1.1
86     make_desktop_entry boinc_gui BOINC boinc Science /var/lib/boinc
87     }
88    
89     pkg_preinst() {
90     enewgroup boinc
91     enewuser boinc -1 -1 /var/lib/boinc boinc
92     }
93    
94     pkg_postinst() {
95     echo
96     einfo "You need to attach to a project to do anything useful with boinc."
97     einfo "You can do this by running /etc/init.d/boinc attach"
98     einfo "BOINC The howto for configuration is located at:"
99     einfo "http://boinc.berkeley.edu/anonymous_platform.php"
100     if use server;then
101     echo
102     einfo "You have chosen to enable server mode. this ebuild has installed"
103     einfo "the necessary packages to be a server. You will need to have a"
104     einfo "project. Contact BOINC directly for further information."
105     fi
106     echo
107     # Add warning about the new password for the client, bug 121896.
108     einfo "If you need to use the graphical client the password is in "
109     einfo "/var/lib/boinc/gui_rpc_auth.cfg which is randomly generated "
110     einfo "by BOINC. You can change this to something more memorable."
111     echo
112     }

  ViewVC Help
Powered by ViewVC 1.1.20