# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic MY_PN="seti_boinc-client-cvs" MY_PV="2005-04-17" BOINC_PN="boinc_public-cvs" DESCRIPTION="Search for Extraterrestrial Intelligence (SETI) @ home" HOMEPAGE="http://setiweb.ssl.berkeley.edu" SRC_URI="http://boinc.ssl.berkeley.edu/source/nightly/${BOINC_PN}-${MY_PV}.tar.gz http://setiweb.ssl.berkeley.edu/sah/seti_source/nightly/${MY_PN}-${MY_PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="X server" DEPEND=">=sci-astronomy/boinc-4.30 sys-devel/gcc" RDEPEND=${DEPEND} S=${WORKDIR}/seti_boinc filter-flags "-ffast-math" src_unpack() { unpack ${A} #put the 0 back in the minor version... sed -i "s:^minor_version=.*:minor_version=`echo ${PV} | sed 's/.*\.//'`:g" ${S}/configure } src_compile() { BOINCDIR=${WORKDIR}/boinc_public econf \ `use_with X x` \ `use_enable X gui` \ `use_enable server` || die emake || die "emake failed" } src_install() { BINNAME=setiathome-${PV}.${CHOST} exeinto /var/lib/boinc/projects/setiathome.berkeley.edu doexe ${S}/client/${BINNAME} #not sure how if this is 100% correct, app_info.xml is needed for anonymous platforms. # if [ "${ARCH}" != "x86" ]; then insinto /var/lib/boinc/projects/setiathome.berkeley.edu doins ${FILESDIR}/app_info.xml sed -i "s:NODOTVERSION:`echo ${PV}|sed 's:\.::g'`:g" ${D}/var/lib/boinc/projects/setiathome.berkeley.edu/app_info.xml sed -i "s:BINNAME:${BINNAME}:g" ${D}/var/lib/boinc/projects/setiathome.berkeley.edu/app_info.xml # fi } pkg_postinst() { chown -R boinc:boinc /var/lib/boinc }