blob: 154b7f8066245191d164f801c688d8b2fdf68401 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-3.05.04.ebuild,v 1.5 2008/05/21 19:02:38 dev-zero Exp $
inherit flag-o-matic eutils
S=${WORKDIR}/${PN}
DESCRIPTION="An Object-Oriented Data Analysis Framework"
SRC_URI="ftp://root.cern.ch/root/root_v${PV}.source.tar.gz"
HOMEPAGE="http://root.cern.ch/"
SLOT="0"
LICENSE="as-is"
KEYWORDS="x86 sparc ppc"
IUSE="mysql postgres opengl"
RDEPEND="x11-libs/libXpm
>=media-libs/freetype-2.0.9
opengl? ( virtual/opengl virtual/glu )
mysql? ( virtual/mysql )
postgres? ( virtual/postgresql-server )"
DEPEND="${RDEPEND}
x11-proto/xproto"
src_unpack() {
unpack ${A}
cd "${S}"
#epatch ${FILESDIR}/root-makefile.patch
#epatch ${FILESDIR}/pgsql-no-libpq-int.patch
}
src_compile() {
case $SYSTEM_ARCH in
ppc)
append-flags "-fsigned-char";;
esac
#export GENTOO_CFLAGS="${CFLAGS}" GENTOO_CXXFLAGS="${CXXFLAGS}"
./configure \
linux \
--prefix=/usr \
--docdir=/usr/share/doc/${P} \
--enable-shared \
--disable-rpath \
--enable-thread \
--disable-cern \
--disable-sapdb \
--disable-rfio \
--disable-dcache \
--disable-srp \
--disable-afs \
--disable-krb5 \
--enable-shadowpw \
--disable-pythia \
--disable-pythia6 \
--disable-venus \
--enable-soversion \
`use_enable opengl` \
`use_enable mysql` \
`use_enable postgres pgsql` \
${myconf} || die "./configure failed"
make OPT="$CFLAGS" || die
}
src_install() {
make DESTDIR="${D}" INSTALL="install" install || die
dodir /etc/env.d
echo "LDPATH=/usr/lib/root" > "${D}"/etc/env.d/60root
}
|