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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Oct 29 14:49:52 2005 UTC (14 years, 3 months ago) by cryos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Clean up old versions, several cleanups closing bug 103558, 109567 and 110606. Thanks to Tony Murrary <tonymurray@fastmail.fm> and Benjamin Gaillard <gentoo@powercode.net>.
(Portage version: 2.0.53_rc6)

1 # Copyright 1999-2005 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.32.ebuild,v 1.6 2005/08/23 14:26:19 cryos Exp $
4
5 inherit eutils
6
7 MY_PN="boinc_public-cvs"
8 MY_PV="2005-04-17"
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="~amd64 ~ppc ~sparc ~x86"
18 IUSE="server X"
19
20 RDEPEND="X? ( virtual/x11
21 virtual/glut
22 virtual/glu
23 >=x11-libs/wxGTK-2.4.2-r2 )
24 server? ( net-www/apache
25 >=dev-db/mysql-4.0.24
26 virtual/php
27 >=dev-lang/python-2.2.3
28 dev-python/mysql-python )"
29 DEPEND=">=sys-devel/gcc-3.0.4
30 >=sys-devel/autoconf-2.59
31 >=sys-devel/automake-1.9.3
32 ${RDEPEND}"
33
34 src_unpack() {
35 unpack ${A}
36 cd ${S}
37
38 # point to a proper mouse device
39 sed -i "s:/dev/mouse:/dev/psaux:g" client/hostinfo_unix.C
40
41 epatch ${FILESDIR}/${P}_cmdline_options.patch
42 epatch ${FILESDIR}/${P}_socket_close_fix.patch
43 }
44
45 src_compile() {
46 # boinc does not support unicode so force wxconfig non-unicode
47 WXCONFIG=$(ls /usr/bin/wxgtk2-?.?-config)
48 if [ -e "${WXCONFIG}" ]; then
49 CONF="--with-wx-config=${WXCONFIG}"
50 fi
51
52 econf --enable-client \
53 `use_enable server` \
54 `use_with X x` \
55 ${CONF} || die "could not configure"
56 emake || die "emake failed"
57 }
58
59 src_install() {
60 # einstall || die "install failed"
61 make install DESTDIR=${D} || die "make install failed"
62
63 newinitd ${FILESDIR}/boinc.init boinc
64 newconfd ${FILESDIR}/boinc.conf boinc
65 }
66
67 pkg_preinst() {
68 enewgroup boinc
69 enewuser boinc -1 -1 /var/lib/boinc boinc
70 }
71
72 pkg_postinst() {
73 echo
74 einfo "You need to attach to a project to do anything useful with boinc."
75 einfo "You can do this by running /etc/init.d/boinc attach"
76 einfo "BOINC The howto for configuration is located at:"
77 einfo "http://boinc.berkeley.edu/anonymous_platform.php"
78 if use server;then
79 einfo "You have chosen to enable server mode. this ebuild has installed"
80 einfo "the necessary packages to be a server, you will need to have a"
81 einfo "project. Contact BOINC directly for further information."
82 fi
83 echo
84 }

  ViewVC Help
Powered by ViewVC 1.1.20