# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # todo: # add option for ssl support found on # http://boinc.berkeley.edu/ssl_build.txt. these instructions are for win32, but # can be used to compile BOINC-client using ssl for gentoo with a little finangling # use bash-variable-magic to get the SRC_URI to use package name/version, instead of # being static inherit eutils DESCRIPTION="BOINC uses your extra CPU power for scientific projects like SETI" HOMEPAGE="http://boinc.berkeley.edu/" SRC_URI="http://boinc.berkeley.edu/source/nightly/boinc_public-cvs-2005-03-17.tar.gz" LICENSE="LGPL" SLOT="0" KEYWORDS="~x86" # if listed here are installed, the configure will find the libraries, and decide the # build the GUI. No further configuration or commands are needed. the same is # true of the server. if the correct packages are found, it will enable both # server and client. if not, then client only will be used. i <3 good configure # scripts... IUSE="X server" DEPEND=">=sys-devel/autoconf-2.59 >=sys-devel/automake-1.9.3 sys-devel/gcc" RDEPEND="X? ( virtual/x11 virtual/glut virtual/glu >=x11-libs/wxGTK-2.4.2-r2 ) server? ( >=dev-lang/python-2.2.3 >=dev-db/mysql-4.0.24 net-www/apache net-www/mod_ssl >=dev-php/php-4.3.10 dev-python/mysql-python )" MY_S=${WORKDIR}/${PN}_public src_compile() { cd ${MY_S} econf || die "configure failed" emake || die "make failed" } src_install() { cd ${MY_S} emake DESTDIR=${D} install || die "make install failed" dodoc INSTALL notes todo } pkg_postinst() { einfo "If you are installing this to use seti@home, use the in-package" einfo "method for obtaining the SETI module. All other programs function" einfo "in a similar fashon. Portage has already compiled and installed" einfo "BOINC The howto for configuration is located at:" einfo "http://boinc.berkeley.edu/anonymous_platform.php" if use server;then 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 }