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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Aug 20 15:15:06 2005 UTC (14 years, 6 months ago) by cryos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Cleaned out some old ebuilds. Fixed the php dependency, closing bug 102835.
(Portage version: 2.0.51.22-r2)

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

  ViewVC Help
Powered by ViewVC 1.1.20