/[gentoo-x86]/dev-db/monetdb/monetdb-4.20.0.ebuild
Gentoo

Contents of /dev-db/monetdb/monetdb-4.20.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat May 17 07:43:36 2008 UTC (11 years, 8 months ago) by drac
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Masked since always, requested removal from maintainer.

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/monetdb/monetdb-4.20.0.ebuild,v 1.2 2007/11/13 09:33:43 grobian Exp $
4
5 inherit eutils flag-o-matic
6
7 M4_PV=4.20.0
8 XQ_PV=0.20.0
9
10 DESCRIPTION="MonetDB/SQL is a main-memory column-store database"
11 HOMEPAGE="http://monetdb.cwi.nl/"
12 SRC_URI="mirror://sourceforge/monetdb/MonetDB4-${M4_PV}.tar.gz
13 mirror://sourceforge/monetdb/pathfinder-${XQ_PV}.tar.gz"
14
15 LICENSE="MonetDBPL-1.1 PathfinderPL-1.1"
16 SLOT="4"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="java boehmgc"
19
20 S=${WORKDIR}
21
22 DEPEND="dev-libs/libpcre
23 dev-libs/openssl
24 sys-libs/readline
25 dev-libs/libxml2
26 java? ( dev-java/ant >=virtual/jdk-1.5 )
27 boehmgc? ( dev-libs/boehm-gc )
28 >=dev-db/monetdb-5"
29 RDEPEND="${DEPEND}"
30
31 pkg_preinst() {
32 # should already exist, but for completeness here
33 enewgroup monetdb
34 enewuser monetdb -1 -1 -1 monetdb
35 }
36
37 src_unpack() {
38 unpack ${A}
39 cd "${S}"
40 epatch "${FILESDIR}"/xquery-0.20.0-bool-undeclared.patch
41 }
42
43 src_compile() {
44 local myconf=
45 # Upstream likes to stick things like -O6 and what more in CFLAGS
46 myconf="${myconf} --disable-strict --disable-optimize --disable-assert"
47 myconf="${myconf} $(use_with java)"
48 myconf="${myconf} --without-php"
49 myconf="${myconf} $(use_with boehmgc gc)"
50
51 cd "${S}"/MonetDB4-${M4_PV} || die
52 econf --with-monetdb="${EPREFIX}" ${myconf} || die
53 emake || die "MonetDB4"
54
55 mkdir "${T}"/bin
56 cp conf/monetdb4-config "${T}"/bin/monetdb4-config
57 chmod 755 "${T}"/bin/monetdb4-config
58
59 append-flags -I"${S}"/MonetDB4-${M4_PV}
60 append-flags -I"${S}"/MonetDB4-${M4_PV}/src/monet
61 append-ldflags -L"${S}"/MonetDB4-${M4_PV}/src/monet/.libs
62 append-flags -I"${S}"/MonetDB4-${M4_PV}/src
63 append-ldflags -L"${S}"/MonetDB4-${M4_PV}/src/mapi/.libs
64 append-flags -I"${S}"/MonetDB4-${M4_PV}/src/modules/plain
65 append-ldflags -L"${S}"/MonetDB4-${M4_PV}/src/modules/plain/.libs
66 append-flags -I"${S}"/MonetDB4-${M4_PV}/src/modules/contrib
67 append-ldflags -L"${S}"/MonetDB4-${M4_PV}/src/modules/contrib/.libs
68 cd "${S}"/pathfinder-${XQ_PV} || die
69 econf --with-monetdb="${EPREFIX}" --with-monetdb4="${T}" ${myconf} || die
70 emake || die "xquery"
71 }
72
73 src_install() {
74 cd "${S}"/MonetDB4-${M4_PV} || die
75 emake DESTDIR="${D}" install || die "MonetDB4"
76
77 cd "${S}"/pathfinder-${XQ_PV} || die
78 emake DESTDIR="${D}" install || die "xquery"
79
80 # remove windows cruft
81 find "${D}" -name "*.bat" | xargs rm -f || die "removing windows stuff"
82 }

  ViewVC Help
Powered by ViewVC 1.1.20