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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sat May 17 07:43:36 2008 UTC (11 years, 10 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 grobian 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 drac 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-db/monetdb/monetdb-5.2.0.ebuild,v 1.2 2007/11/13 09:33:43 grobian Exp $
4 grobian 1.1
5     inherit flag-o-matic
6    
7     COMMON_PV=1.20.0
8     CLIENTS_PV=1.20.0
9     M5_PV=5.2.0
10     SQL_PV=2.20.0
11    
12     DESCRIPTION="MonetDB/SQL is a main-memory column-store database"
13     HOMEPAGE="http://monetdb.cwi.nl/"
14     SRC_URI="mirror://sourceforge/monetdb/MonetDB-${COMMON_PV}.tar.gz
15     mirror://sourceforge/monetdb/clients-${CLIENTS_PV}.tar.gz
16     mirror://sourceforge/monetdb/MonetDB5-${M5_PV}.tar.gz
17     mirror://sourceforge/monetdb/sql-${SQL_PV}.tar.gz"
18    
19     LICENSE="MonetDBPL-1.1"
20     SLOT="5"
21     KEYWORDS="~amd64 ~x86"
22     IUSE="python perl php java"
23    
24     S=${WORKDIR}
25    
26     DEPEND="dev-libs/libpcre
27     dev-libs/openssl
28     sys-libs/readline
29     python? ( dev-lang/python )
30     perl? ( dev-lang/perl )
31     php? ( dev-lang/php )
32     java? ( dev-java/ant >=virtual/jdk-1.4 <=virtual/jdk-1.6 )"
33     RDEPEND="${DEPEND}"
34    
35     pkg_preinst() {
36     enewgroup monetdb
37 grobian 1.2 enewuser monetdb -1 -1 -1 monetdb
38 grobian 1.1 }
39    
40     src_compile() {
41     local myconf=
42     # Upstream likes to stick things like -O6 and what more in CFLAGS
43     myconf="${myconf} --disable-strict --disable-optimize --disable-assert"
44     # Deal with auto-dependencies
45     myconf="${myconf} $(use_with python)"
46     myconf="${myconf} $(use_with perl)"
47     myconf="${myconf} $(use_with php)"
48     myconf="${myconf} $(use_with java)"
49    
50     cd "${S}"/MonetDB-${COMMON_PV} || die
51     econf ${myconf} || die
52     emake || die "common"
53    
54     mkdir "${T}"/bin
55     cp conf/monetdb-config "${T}"/bin/monetdb-config
56     chmod 755 "${T}"/bin/monetdb-config
57    
58     append-flags -I"${S}"/MonetDB-${COMMON_PV}/src/common
59     append-ldflags -L"${S}"/MonetDB-${COMMON_PV}/src/common/.libs
60     cd "${S}"/clients-${CLIENTS_PV} || die
61     econf --with-monetdb="${T}" ${myconf} || die
62     emake || die "clients"
63    
64     append-flags -I"${S}"/MonetDB-${COMMON_PV}/src/gdk
65     append-ldflags -L"${S}"/MonetDB-${COMMON_PV}/src/gdk/.libs
66     append-flags -I"${S}"/clients-${CLIENTS_PV}/src
67     append-ldflags -L"${S}"/clients-${CLIENTS_PV}/src/mapilib/.libs
68     cd "${S}"/MonetDB5-${M5_PV} || die
69     econf --with-monetdb="${T}" ${myconf} || die
70     emake || die "MonetDB5"
71    
72     cp conf/monetdb5-config "${T}"/bin/monetdb5-config
73     chmod 755 "${T}"/bin/monetdb5-config
74    
75     append-flags -I"${S}"/MonetDB5-${M5_PV}
76     append-flags -I"${S}"/MonetDB5-${M5_PV}/src/{mal,optimizer,scheduler}
77     append-ldflags -L"${S}"/MonetDB5-${M5_PV}/src/{mal,optimizer,scheduler}/.libs
78     append-flags -I"${S}"/MonetDB5-${M5_PV}/src/modules/{atoms,kernel,mal}
79     append-ldflags -L"${S}"/MonetDB5-${M5_PV}/src/modules/{atoms,kernel,mal}/.libs
80     cd "${S}"/sql-${SQL_PV} || die
81     econf --with-monetdb="${T}" --with-monetdb5="${T}" ${myconf} || die
82     emake || die "sql"
83     }
84    
85     src_install() {
86     cd "${S}"/MonetDB-${COMMON_PV} || die
87     emake DESTDIR="${D}" install || die "common"
88    
89     cd "${S}"/clients-${CLIENTS_PV} || die
90     emake DESTDIR="${D}" install || die "clients"
91    
92     cd "${S}"/MonetDB5-${M5_PV} || die
93     # parallel is broken here
94     emake -j1 DESTDIR="${D}" install || die "MonetDB5"
95    
96     cd "${S}"/sql-${SQL_PV} || die
97     emake DESTDIR="${D}" install || die "sql"
98    
99     # remove testing framework and compiled tests
100     rm -f \
101     "${D}/usr/bin/Mapprove.py" \
102     "${D}/usr/bin/Mdiff" \
103     "${D}/usr/bin/Mfilter.py" \
104     "${D}/usr/bin/MkillUsers" \
105     "${D}/usr/bin/Mlog" \
106     "${D}/usr/bin/Mprofile.py" \
107     "${D}/usr/bin/Mtest.py" \
108     "${D}/usr/bin/Mtimeout" \
109     "${D}/usr/bin/prof.py" \
110     "${D}/usr/share/MonetDB/Mprofile-commands.lst" \
111     "${D}/usr/MonetDB/subprocess26.py" \
112     "${D}/usr/MonetDB/trace.py" \
113     "${D}/usr/MonetDB/__init__.py" \
114     "${D}/usr/MonetDB/monet_options.py" \
115     || die "removing testing tools"
116     rm -Rf \
117     "${D}/usr/lib/MonetDB/Tests" \
118     "${D}/usr/lib/sql/Tests" \
119     "${D}/usr/share/MonetDB/Tests" \
120     "${D}/usr/share/sql/Tests" \
121     || die "removing tests"
122     # remove windows cruft
123     find "${D}" -name "*.bat" | xargs rm -f || die "removing windows stuff"
124    
125     newinitd "${FILESDIR}/${PN}.init-5.2.0" monetdb || die "init.d script"
126     newconfd "${FILESDIR}/${PN}.conf-5.2.0" monetdb || die "conf.d file"
127    
128     # merovingian needs this
129     keepdir /var/lib/MonetDB5/dbfarm
130     }

  ViewVC Help
Powered by ViewVC 1.1.20