Lines 1-6
Link Here
|
1 |
# Copyright 1999-2008 Gentoo Foundation |
1 |
# Copyright 1999-2008 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
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 $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
inherit flag-o-matic wxwidgets depend.apache |
5 |
inherit flag-o-matic wxwidgets depend.apache |
6 |
|
6 |
|
Lines 11-17
Link Here
|
11 |
LICENSE="LGPL-2.1" |
11 |
LICENSE="LGPL-2.1" |
12 |
SLOT="0" |
12 |
SLOT="0" |
13 |
KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" |
13 |
KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" |
14 |
IUSE="server X unicode" |
14 |
IUSE="server unicode X" |
15 |
|
15 |
|
16 |
RDEPEND="sys-libs/zlib |
16 |
RDEPEND="sys-libs/zlib |
17 |
>=net-misc/curl-7.15.5 |
17 |
>=net-misc/curl-7.15.5 |
Lines 41-51
Link Here
|
41 |
src_unpack() { |
41 |
src_unpack() { |
42 |
unpack ${A} |
42 |
unpack ${A} |
43 |
cd "${S}" |
43 |
cd "${S}" |
44 |
epatch "${FILESDIR}"/${P}-gcc4.3.patch |
44 |
|
|
|
45 |
# do autoreconf |
46 |
#rm "${S}"/m4/libtool.m4 |
47 |
#AT_M4DIR="m4" eautoreconf || die "eautoreconf failed" |
45 |
} |
48 |
} |
46 |
|
49 |
|
47 |
src_compile() { |
50 |
src_compile() { |
48 |
#upstream recommendation for flags |
51 |
# upstream recommendation for flags |
49 |
append-flags -O3 -funroll-loops -fforce-addr -ffast-math |
52 |
append-flags -O3 -funroll-loops -fforce-addr -ffast-math |
50 |
|
53 |
|
51 |
local wxconf="" |
54 |
local wxconf="" |
Lines 61-72
Link Here
|
61 |
wxconf="${wxconf} --without-wxdir" |
64 |
wxconf="${wxconf} --without-wxdir" |
62 |
fi |
65 |
fi |
63 |
|
66 |
|
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 \ |
67 |
econf \ |
71 |
--enable-client \ |
68 |
--enable-client \ |
72 |
--disable-static-client \ |
69 |
--disable-static-client \ |
Lines 74-96
Link Here
|
74 |
${wxconf} \ |
71 |
${wxconf} \ |
75 |
$(use_enable unicode) \ |
72 |
$(use_enable unicode) \ |
76 |
$(use_enable server) \ |
73 |
$(use_enable server) \ |
77 |
$(use_with X x) || die "econf failed" |
74 |
$(use_with X x) |
|
|
75 |
|
78 |
# Make it link to the compiled libs, not the installed ones |
76 |
# Make it link to the compiled libs, not the installed ones |
79 |
sed -e "s|LDFLAGS = |LDFLAGS = -L../lib |g" -i */Makefile || \ |
77 |
sed -e "s|LDFLAGS = |LDFLAGS = -L../lib |g" -i */Makefile || \ |
80 |
die "sed failed" |
78 |
die "sed failed" |
|
|
79 |
|
81 |
# Force -j1 - bug 136374. |
80 |
# Force -j1 - bug 136374. |
82 |
emake -j1 || die "emake failed" |
81 |
emake || die "emake failed" |
83 |
} |
82 |
} |
84 |
|
83 |
|
85 |
src_install() { |
84 |
src_install() { |
86 |
emake DESTDIR=""${D}"" install || die "make install failed" |
85 |
emake DESTDIR="${D}" install || die "make install failed" |
87 |
mkdir -p "${D}"/var/lib/boinc/ |
86 |
mkdir -p "${D}"/var/lib/boinc/ |
88 |
cp "${S}"/ca-bundle.crt "${D}"/var/lib/boinc |
87 |
cp "${S}"/curl/ca-bundle.crt "${D}"/var/lib/boinc |
89 |
chown boinc:boinc "${D}"/var/lib/boinc |
88 |
fowners boinc:boinc /var/lib/boinc/ca-bundle.crt |
|
|
89 |
fowners boinc:boinc "${D}"/var/lib/boinc |
90 |
|
90 |
newinitd "${FILESDIR}"/boinc.init boinc |
91 |
newinitd "${FILESDIR}"/boinc.init boinc |
91 |
newconfd "${FILESDIR}"/boinc.conf boinc |
92 |
newconfd "${FILESDIR}"/boinc.conf boinc |
92 |
|
93 |
|
93 |
make_desktop_entry boinc_gui BOINC boinc Science /var/lib/boinc |
94 |
use X && make_desktop_entry boinc_gui BOINC boinc Science /var/lib/boinc |
94 |
} |
95 |
} |
95 |
|
96 |
|
96 |
pkg_preinst() { |
97 |
pkg_preinst() { |