summaryrefslogtreecommitdiff
path: root/community/mongodb
diff options
context:
space:
mode:
Diffstat (limited to 'community/mongodb')
-rw-r--r--community/mongodb/PKGBUILD22
1 files changed, 21 insertions, 1 deletions
diff --git a/community/mongodb/PKGBUILD b/community/mongodb/PKGBUILD
index 78b32e1f0..aac341450 100644
--- a/community/mongodb/PKGBUILD
+++ b/community/mongodb/PKGBUILD
@@ -4,13 +4,14 @@
pkgname=mongodb
pkgver=2.0.1
-pkgrel=2
+pkgrel=3
pkgdesc='A high-performance, open source, schema-free document-oriented database.'
arch=('i686' 'x86_64')
url='http://www.mongodb.org'
license=('AGPL3')
depends=('boost-libs')
makedepends=('scons' 'boost')
+#checkdepends=('python2-pymongo')
optdepends=('libpcap: needed for mongosniff')
backup=('etc/mongodb.conf')
install="mongodb.install"
@@ -26,12 +27,31 @@ build() {
cd mongodb-src-r${pkgver}
+ # fix python name for smoke tests
+ sed \
+ -e 's/python/&2/' \
+ -i SConstruct
+
scons \
all \
--full
}
+<<COMMENT
+check() {
+ export SCONSFLAGS="$MAKEFLAGS"
+
+ cd mongodb-src-r${pkgver}
+
+ scons \
+ smokeAll \
+ --smokedbprefix=${srcdir}
+}
+COMMENT
+
package() {
+ export SCONSFLAGS="$MAKEFLAGS"
+
cd mongodb-src-r${pkgver}
scons \