summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Jackson <tsunam@gentoo.org>2008-04-15 18:48:46 +0000
committerJoshua Jackson <tsunam@gentoo.org>2008-04-15 18:48:46 +0000
commit9fee7e1790ba1904b2d140acd9db0c048441baff (patch)
tree92677b57127b1f20d6b5b4d8870e0084f3ff7405 /sci-misc
parentMasked media-plugins/vdr-dvdselect for removal. (diff)
downloadgentoo-2-9fee7e1790ba1904b2d140acd9db0c048441baff.tar.gz
gentoo-2-9fee7e1790ba1904b2d140acd9db0c048441baff.tar.bz2
gentoo-2-9fee7e1790ba1904b2d140acd9db0c048441baff.zip
Adding latest boinc to the tree, a month after its out
(Portage version: 2.1.4.4)
Diffstat (limited to 'sci-misc')
-rw-r--r--sci-misc/boinc/ChangeLog7
-rw-r--r--sci-misc/boinc/boinc-5.10.45.ebuild116
2 files changed, 122 insertions, 1 deletions
diff --git a/sci-misc/boinc/ChangeLog b/sci-misc/boinc/ChangeLog
index 25c5ae467884..2c13f9f69eee 100644
--- a/sci-misc/boinc/ChangeLog
+++ b/sci-misc/boinc/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-misc/boinc
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v 1.37 2008/02/05 15:36:38 hollow Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/ChangeLog,v 1.38 2008/04/15 18:48:46 tsunam Exp $
+
+*boinc-5.10.45 (15 Apr 2008)
+
+ 15 Apr 2008; Joshua Jackson <tsunam@gentoo.org> +boinc-5.10.45.ebuild:
+ adding 5.10.45 to the tree
05 Feb 2008; Benedikt Böhm <hollow@gentoo.org>
boinc-4.72.20050813-r3.ebuild, boinc-5.2.14.ebuild, boinc-5.4.11.ebuild,
diff --git a/sci-misc/boinc/boinc-5.10.45.ebuild b/sci-misc/boinc/boinc-5.10.45.ebuild
new file mode 100644
index 000000000000..0a4e4690c09b
--- /dev/null
+++ b/sci-misc/boinc/boinc-5.10.45.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-misc/boinc/boinc-5.10.45.ebuild,v 1.1 2008/04/15 18:48:46 tsunam Exp $
+
+inherit flag-o-matic wxwidgets depend.apache
+
+DESCRIPTION="The Berkeley Open Infrastructure for Network Computing"
+HOMEPAGE="http://boinc.ssl.berkeley.edu/"
+SRC_URI="mirror://gentoo//${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
+IUSE="server X unicode"
+
+RDEPEND="sys-libs/zlib
+ >=net-misc/curl-7.15.5
+ >=dev-libs/openssl-0.9.7
+ X? ( =x11-libs/wxGTK-2.8* )
+ server? ( >=virtual/mysql-4.0
+ virtual/php
+ >=dev-lang/python-2.2.3
+ >=dev-python/mysql-python-0.9.2 )"
+DEPEND=">=sys-devel/gcc-3.0.4
+ >=sys-devel/autoconf-2.58
+ >=sys-devel/automake-1.8
+ >=dev-util/pkgconfig-0.15
+ >=sys-devel/m4-1.4
+ X? ( x11-libs/libXmu
+ x11-libs/libXt
+ x11-libs/libX11
+ x11-proto/xproto
+ virtual/glut
+ virtual/glu
+ media-libs/jpeg )
+ server? ( virtual/imap-c-client )
+ ${RDEPEND}"
+
+want_apache server
+
+src_unpack() {
+ unpack "${A}"
+ cd ""${S}""
+}
+
+src_compile() {
+ #upstream recommendation for flags
+ append-flags -O3 -funroll-loops -fforce-addr -ffast-math
+
+ if use X; then
+ WX_GTK_VER=2.8
+ if use unicode; then
+ need-wxwidgets unicode
+ else
+ need-wxwidgets gtk2
+ fi
+ wxconf="--with-wx-config=${WX_CONFIG}"
+ fi
+
+ # Just run the necessary tools directly
+ #einfo "Running necessary autotools..."
+ #aclocal -I m4 || die "aclocal failed."
+ #autoheader || die "autoheader failed."
+ #automake || die "automake failed."
+ #autoconf || die "autoconf failed."
+ econf \
+ --enable-client \
+ --disable-static-client \
+ --with-ssl \
+ ${wxconf} \
+ $(use_enable unicode) \
+ $(use_enable server) \
+ $(use_with X x) || die "econf failed"
+ # Make it link to the compiled libs, not the installed ones
+ sed -e "s|LDFLAGS = |LDFLAGS = -L../lib |g" -i */Makefile || \
+ die "sed failed"
+ # Force -j1 - bug 136374.
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR=""${D}"" install || die "make install failed"
+ mkdir -p "${D}"/var/lib/boinc/
+ cp "${S}"/ca-bundle.crt "${D}"/var/lib/boinc
+ chown boinc:boinc "${D}"/var/lib/boinc
+ newinitd "${FILESDIR}"/boinc.init boinc
+ newconfd "${FILESDIR}"/boinc.conf boinc
+
+ make_desktop_entry boinc_gui BOINC boinc Science /var/lib/boinc
+}
+
+pkg_preinst() {
+ enewgroup boinc
+ enewuser boinc -1 -1 /var/lib/boinc boinc
+}
+
+pkg_postinst() {
+ echo
+ einfo "You need to attach to a project to do anything useful with boinc."
+ einfo "You can do this by running /etc/init.d/boinc attach"
+ einfo "BOINC The howto for configuration is located at:"
+ einfo "http://boinc.berkeley.edu/anonymous_platform.php"
+ if use server;then
+ echo
+ einfo "You have chosen to enable server mode. this ebuild has installed"
+ einfo "the necessary packages to be a server. You will need to have a"
+ einfo "project. Contact BOINC directly for further information."
+ fi
+ echo
+ # Add warning about the new password for the client, bug 121896.
+ einfo "If you need to use the graphical client the password is in "
+ einfo "/var/lib/boinc/gui_rpc_auth.cfg which is randomly generated "
+ einfo "by BOINC upon successfully running the gui for the first time."
+ einfo "You can change this to something more memorable."
+ echo
+}