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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Jan 31 15:19:36 2009 UTC (11 years ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +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-5.10.45.ebuild,v 1.3 2008/04/18 17:57:38 markusle Exp $
4
5 inherit flag-o-matic wxwidgets depend.apache
6
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 IUSE="server X unicode"
15
16 RDEPEND="sys-libs/zlib
17 >=net-misc/curl-7.15.5
18 >=dev-libs/openssl-0.9.7
19 X? ( =x11-libs/wxGTK-2.8* )
20 server? ( >=virtual/mysql-4.0
21 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 >=sys-devel/autoconf-2.58
26 >=sys-devel/automake-1.8
27 >=dev-util/pkgconfig-0.15
28 >=sys-devel/m4-1.4
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 epatch "${FILESDIR}"/${P}-gcc4.3.patch
45 }
46
47 src_compile() {
48 #upstream recommendation for flags
49 append-flags -O3 -funroll-loops -fforce-addr -ffast-math
50
51 local wxconf=""
52 if use X; then
53 WX_GTK_VER=2.8
54 if use unicode; then
55 need-wxwidgets unicode
56 else
57 need-wxwidgets gtk2
58 fi
59 wxconf="${wxconf} --with-wx-config=${WX_CONFIG}"
60 else
61 wxconf="${wxconf} --without-wxdir"
62 fi
63
64 # Just run the necessary tools directly
65 #einfo "Running necessary autotools..."
66 #aclocal -I m4 || die "aclocal failed."
67 #autoheader || die "autoheader failed."
68 #automake || die "automake failed."
69 #autoconf || die "autoconf failed."
70 econf \
71 --enable-client \
72 --disable-static-client \
73 --with-ssl \
74 ${wxconf} \
75 $(use_enable unicode) \
76 $(use_enable server) \
77 $(use_with X x) || die "econf failed"
78 # Make it link to the compiled libs, not the installed ones
79 sed -e "s|LDFLAGS = |LDFLAGS = -L../lib |g" -i */Makefile || \
80 die "sed failed"
81 # Force -j1 - bug 136374.
82 emake -j1 || die "emake failed"
83 }
84
85 src_install() {
86 emake DESTDIR=""${D}"" install || die "make install failed"
87 mkdir -p "${D}"/var/lib/boinc/
88 cp "${S}"/ca-bundle.crt "${D}"/var/lib/boinc
89 chown boinc:boinc "${D}"/var/lib/boinc
90 newinitd "${FILESDIR}"/boinc.init boinc
91 newconfd "${FILESDIR}"/boinc.conf boinc
92
93 make_desktop_entry boinc_gui BOINC boinc Science /var/lib/boinc
94 }
95
96 pkg_preinst() {
97 enewgroup boinc
98 enewuser boinc -1 -1 /var/lib/boinc boinc
99 }
100
101 pkg_postinst() {
102 echo
103 einfo "You need to attach to a project to do anything useful with boinc."
104 einfo "You can do this by running /etc/init.d/boinc attach"
105 einfo "BOINC The howto for configuration is located at:"
106 einfo "http://boinc.berkeley.edu/anonymous_platform.php"
107 if use server;then
108 echo
109 einfo "You have chosen to enable server mode. this ebuild has installed"
110 einfo "the necessary packages to be a server. You will need to have a"
111 einfo "project. Contact BOINC directly for further information."
112 fi
113 echo
114 # Add warning about the new password for the client, bug 121896.
115 einfo "If you need to use the graphical client the password is in "
116 einfo "/var/lib/boinc/gui_rpc_auth.cfg which is randomly generated "
117 einfo "by BOINC upon successfully running the gui for the first time."
118 einfo "You can change this to something more memorable."
119 echo
120 }

  ViewVC Help
Powered by ViewVC 1.1.20