wok view mongodb/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents 08c52f1e528e
children 180119c209e8
line source
1 # SliTaz package receipt.
3 PACKAGE="mongodb"
4 VERSION="2.0.6"
5 CATEGORY="system-tools"
6 SHORT_DESC="High-performance, schema-free document-oriented database ."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3 Apache"
9 WEB_SITE="https://www.mongodb.com/"
11 TARBALL="$PACKAGE-src-r${VERSION}.tar.gz"
12 WGET_URL="http://downloads.mongodb.org/src/$TARBALL"
14 DEPENDS="libboost-filesystem libboost-program-options libboost-thread \
15 pcre spidermonkey"
16 BUILD_DEPENDS="$DEPENDS libboost-dev libboost-filesystem-dev \
17 libboost-program-options-dev libboost-thread-dev pcre-dev \
18 scons spidermonkey-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://github.com/mongodb/mongo/tags 2>/dev/null | \
24 sed '/archive.*tar/!d;/-rc/d;/-alpha/d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 find $src -name Makefile.in | xargs sed -i 's|uname -m|echo i486|'
31 sed -i 's/native_directory_//' db*/*.cpp
32 sed -i 's/native_file_//' db*/*.cpp shell/shell_utils.cpp
33 sed -i 's/leaf()/leaf().string()/' */*.cpp
34 sed -i 's|.*default_name_check|// &|' tools/tool.cpp db/db.cpp
35 sed -i '/FILESYSTEM_VERSION/d' pch.h
36 grep -rl TIME_UTC util | xargs sed -i 's/TIME_UTC/TIME_UTC_/'
38 sed -i 's|/usr/lib32"\] )|&\n\tenv.Append( LIBS=["rt"] )|' SConstruct
40 scons --32 all &&
41 scons --32 --prefix=$DESTDIR/usr install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr
48 cp -a $install/usr/bin $fs/usr
49 }