wok view mongodb/receipt @ rev 13899

qutim: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 19 15:58:06 2013 +0100 (2013-01-19)
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 }