blob: 6a72c7d5aa69c04e8b5b37f168483117a6d16f41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/setiathome/setiathome-4.18.ebuild,v 1.2 2005/08/22 13:20:10 cryos Exp $
inherit eutils flag-o-matic
MY_PN="seti_boinc-client-cvs"
MY_PV="2005-08-20"
BOINC_PN="boinc_public-cvs"
BOINC_PV="2005-08-13"
DESCRIPTION="Search for Extraterrestrial Intelligence SETI@home"
HOMEPAGE="http://setiweb.ssl.berkeley.edu/"
SRC_URI="http://boinc.ssl.berkeley.edu/source/nightly/${BOINC_PN}-${BOINC_PV}.tar.gz
http://setiweb.ssl.berkeley.edu/sah/seti_source/nightly/${MY_PN}-${MY_PV}.tar.gz"
IUSE="server"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
DEPEND="~sci-misc/boinc-4.72.20050813"
S=${WORKDIR}/seti_boinc
src_compile() {
filter-flags "-ffast-math"
# The setiathome GUI doesn't work - so disable it for now...
econf BOINCDIR=${WORKDIR}/boinc_public \
--without-x --disable-gui \
`use_enable server` || die "econf failed."
emake || die "emake failed."
}
src_install() {
local INSTDIR="/var/lib/boinc/projects/setiathome.berkeley.edu"
local BINNAME=setiathome-${PV}.${CHOST}
exeinto ${INSTDIR}
doexe ${S}/client/${BINNAME}
insinto ${INSTDIR}
doins ${FILESDIR}/app_info.xml
sed -i -e "s|NODOTVERSION|${PV/./}|g" \
-e "s|BINNAME|${BINNAME}|g" \
${D}${INSTDIR}/app_info.xml \
|| die "sed of app_info.xml failed."
}
pkg_postinst() {
chown -R boinc:boinc /var/lib/boinc
}
|