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

Contents of /sci-misc/boinc/boinc-4.72.20050813-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Sat Jan 31 15:19:36 2009 UTC (11 years 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 # 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-4.72.20050813-r3.ebuild,v 1.13 2008/04/17 19:04:16 markusle Exp $
4
5 inherit eutils wxwidgets depend.apache
6
7 MY_PN="boinc_public-cvs"
8 MY_PV="2005-08-13"
9 S=${WORKDIR}/boinc_public
10
11 DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
12 HOMEPAGE="http://boinc.ssl.berkeley.edu/"
13 SRC_URI="http://boinc.ssl.berkeley.edu/source/nightly/${MY_PN}-${MY_PV}.tar.gz"
14
15 LICENSE="LGPL-2.1"
16 SLOT="0"
17 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
18 IUSE="server X"
19
20 RDEPEND="sys-libs/zlib
21 X? ( =x11-libs/wxGTK-2.6* )
22 server? ( >=virtual/mysql-4.0
23 virtual/php
24 >=dev-lang/python-2.2.3
25 >=dev-python/mysql-python-0.9.2 )"
26 DEPEND=">=sys-devel/gcc-3.0.4
27 >=sys-devel/autoconf-2.59
28 >=sys-devel/automake-1.9.3
29 X? ( x11-libs/libXmu
30 x11-libs/libXt
31 x11-libs/libX11
32 x11-proto/xproto
33 virtual/glut
34 virtual/glu
35 media-libs/jpeg )
36 server? ( virtual/imap-c-client )
37 ${RDEPEND}"
38
39 want_apache server
40
41 src_unpack() {
42 unpack ${A}
43 cd "${S}"
44
45 # GCC 4 patch, bug 112133.
46 epatch "${FILESDIR}"/${P}-gcc4-fix.patch
47
48 # point to a proper mouse device
49 sed -e "s:/dev/mouse:/dev/input/mice:g" -i client/hostinfo_unix.C || die
50 }
51
52 src_compile() {
53 if use X; then
54 WX_GTK_VER=2.6
55 need-wxwidgets gtk2
56 wxconf="--with-wx-config=${WX_CONFIG}"
57 fi
58
59 econf \
60 --enable-client \
61 --disable-static-client \
62 ${wxconf} \
63 $(use_enable server) \
64 $(use_with X x) || die "econf failed"
65 emake || die "emake failed"
66 }
67
68 src_install() {
69 make install DESTDIR="${D}" || die "make install failed"
70
71 newinitd "${FILESDIR}"/boinc.init boinc
72 newconfd "${FILESDIR}"/boinc.conf boinc
73
74 make_desktop_entry boinc_gui BOINC boinc Science /var/lib/boinc
75 }
76
77 pkg_preinst() {
78 enewgroup boinc
79 enewuser boinc -1 -1 /var/lib/boinc boinc
80 }
81
82 pkg_postinst() {
83 echo
84 einfo "You need to attach to a project to do anything useful with boinc."
85 einfo "You can do this by running /etc/init.d/boinc attach"
86 einfo "BOINC The howto for configuration is located at:"
87 einfo "http://boinc.berkeley.edu/anonymous_platform.php"
88 if use server;then
89 echo
90 einfo "You have chosen to enable server mode. this ebuild has installed"
91 einfo "the necessary packages to be a server. You will need to have a"
92 einfo "project. Contact BOINC directly for further information."
93 fi
94 echo
95 }

  ViewVC Help
Powered by ViewVC 1.1.20