wok-current annotate mongodb/receipt @ rev 24053
Up slitaz-boot-script (471)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 27 13:42:59 2021 +0000 (2021-05-27) |
parents | 9ac318d8655f |
children | 241fb98cab1c |
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@11225 | 20 # Rules to configure and make the package. |
pascal@11225 | 21 compile_rules() |
pascal@11225 | 22 { |
Hans-G?nter@22359 | 23 find $src -name Makefile.in | xargs sed -i 's|uname -m|echo i486|' |
pascal@13214 | 24 sed -i 's/native_directory_//' db*/*.cpp |
pascal@13214 | 25 sed -i 's/native_file_//' db*/*.cpp shell/shell_utils.cpp |
pascal@13214 | 26 sed -i 's/leaf()/leaf().string()/' */*.cpp |
pascal@13214 | 27 sed -i 's|.*default_name_check|// &|' tools/tool.cpp db/db.cpp |
pascal@13214 | 28 sed -i '/FILESYSTEM_VERSION/d' pch.h |
pascal@13214 | 29 grep -rl TIME_UTC util | xargs sed -i 's/TIME_UTC/TIME_UTC_/' |
Hans-G?nter@22355 | 30 |
pascal@22668 | 31 sed -i 's|/usr/lib32"\] )|&\n\tenv.Append( LIBS=["rt"] )|' SConstruct |
Hans-G?nter@22355 | 32 |
pascal@22668 | 33 scons --32 all && |
pascal@22668 | 34 scons --32 --prefix=$DESTDIR/usr install |
pascal@11225 | 35 } |
pascal@11225 | 36 |
pascal@11225 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11225 | 38 genpkg_rules() |
pascal@11225 | 39 { |
pascal@11225 | 40 mkdir -p $fs/usr |
pascal@13214 | 41 cp -a $install/usr/bin $fs/usr |
pascal@11225 | 42 } |