wok-6.x view mongodb/receipt @ rev 14340

webkit-r: bison 2.6 fix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 14 02:26:18 2013 +0200 (2013-04-14)
parents 93e88c5e3408
children bb009a6ef036
line source
1 # SliTaz package receipt.
3 PACKAGE="mongodb"
4 VERSION="2.0.6"
5 CATEGORY="system-tools"
6 SHORT_DESC="MongoDB bridges the gap between key-value stores and traditional RDBMS systems"
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="pcre libboost-filesystem libboost-thread libboost-program-options \
9 spidermonkey"
10 BUILD_DEPENDS="$DEPENDS scons pcre-dev libboost-dev libboost-filesystem-dev \
11 libboost-thread-dev libboost-program-options-dev spidermonkey-dev"
12 TARBALL="$PACKAGE-src-r${VERSION}.tar.gz"
13 WEB_SITE="http://www.mongodb.org/"
14 WGET_URL="http://downloads.mongodb.org/src/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
21 sed -i 's/native_directory_//' db*/*.cpp
22 sed -i 's/native_file_//' db*/*.cpp shell/shell_utils.cpp
23 sed -i 's/leaf()/leaf().string()/' */*.cpp
24 sed -i 's|.*default_name_check|// &|' tools/tool.cpp db/db.cpp
25 sed -i '/FILESYSTEM_VERSION/d' pch.h
26 grep -rl TIME_UTC util | xargs sed -i 's/TIME_UTC/TIME_UTC_/'
28 scons all &&
29 scons --prefix=$DESTDIR/usr install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 cp -a $install/usr/bin $fs/usr
37 }