blob: 48d9e8afc9fa75e6a399f210f2b486bf0ff7823a (
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
72
73
74
75
76
77
78
79
80
81
82
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/monetdb/monetdb-4.20.0.ebuild,v 1.2 2007/11/13 09:33:43 grobian Exp $
inherit eutils flag-o-matic
M4_PV=4.20.0
XQ_PV=0.20.0
DESCRIPTION="MonetDB/SQL is a main-memory column-store database"
HOMEPAGE="http://monetdb.cwi.nl/"
SRC_URI="mirror://sourceforge/monetdb/MonetDB4-${M4_PV}.tar.gz
mirror://sourceforge/monetdb/pathfinder-${XQ_PV}.tar.gz"
LICENSE="MonetDBPL-1.1 PathfinderPL-1.1"
SLOT="4"
KEYWORDS="~amd64 ~x86"
IUSE="java boehmgc"
S=${WORKDIR}
DEPEND="dev-libs/libpcre
dev-libs/openssl
sys-libs/readline
dev-libs/libxml2
java? ( dev-java/ant >=virtual/jdk-1.5 )
boehmgc? ( dev-libs/boehm-gc )
>=dev-db/monetdb-5"
RDEPEND="${DEPEND}"
pkg_preinst() {
# should already exist, but for completeness here
enewgroup monetdb
enewuser monetdb -1 -1 -1 monetdb
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/xquery-0.20.0-bool-undeclared.patch
}
src_compile() {
local myconf=
# Upstream likes to stick things like -O6 and what more in CFLAGS
myconf="${myconf} --disable-strict --disable-optimize --disable-assert"
myconf="${myconf} $(use_with java)"
myconf="${myconf} --without-php"
myconf="${myconf} $(use_with boehmgc gc)"
cd "${S}"/MonetDB4-${M4_PV} || die
econf --with-monetdb="${EPREFIX}" ${myconf} || die
emake || die "MonetDB4"
mkdir "${T}"/bin
cp conf/monetdb4-config "${T}"/bin/monetdb4-config
chmod 755 "${T}"/bin/monetdb4-config
append-flags -I"${S}"/MonetDB4-${M4_PV}
append-flags -I"${S}"/MonetDB4-${M4_PV}/src/monet
append-ldflags -L"${S}"/MonetDB4-${M4_PV}/src/monet/.libs
append-flags -I"${S}"/MonetDB4-${M4_PV}/src
append-ldflags -L"${S}"/MonetDB4-${M4_PV}/src/mapi/.libs
append-flags -I"${S}"/MonetDB4-${M4_PV}/src/modules/plain
append-ldflags -L"${S}"/MonetDB4-${M4_PV}/src/modules/plain/.libs
append-flags -I"${S}"/MonetDB4-${M4_PV}/src/modules/contrib
append-ldflags -L"${S}"/MonetDB4-${M4_PV}/src/modules/contrib/.libs
cd "${S}"/pathfinder-${XQ_PV} || die
econf --with-monetdb="${EPREFIX}" --with-monetdb4="${T}" ${myconf} || die
emake || die "xquery"
}
src_install() {
cd "${S}"/MonetDB4-${M4_PV} || die
emake DESTDIR="${D}" install || die "MonetDB4"
cd "${S}"/pathfinder-${XQ_PV} || die
emake DESTDIR="${D}" install || die "xquery"
# remove windows cruft
find "${D}" -name "*.bat" | xargs rm -f || die "removing windows stuff"
}
|