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