aboutsummaryrefslogtreecommitdiffstats
path: root/community/mongodb
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2018-01-20 21:41:51 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-04-06 05:19:19 +0000
commitac093fd481b7330583b692b4bf8168647d3d475e (patch)
treede46fedaaa048fa89d45a676c77bb0404ba86550 /community/mongodb
parentd3430e29a838c816bf7606134a550374bff4eca2 (diff)
downloadaports-ac093fd481b7330583b692b4bf8168647d3d475e.tar.bz2
aports-ac093fd481b7330583b692b4bf8168647d3d475e.tar.xz
community/mongodb: add check() & modernize
Diffstat (limited to 'community/mongodb')
-rw-r--r--community/mongodb/APKBUILD24
1 files changed, 10 insertions, 14 deletions
diff --git a/community/mongodb/APKBUILD b/community/mongodb/APKBUILD
index 6d4aaf41c1..15eb21b78a 100644
--- a/community/mongodb/APKBUILD
+++ b/community/mongodb/APKBUILD
@@ -29,7 +29,7 @@ source="http://downloads.mongodb.org/src/mongodb-src-r${pkgver}.tar.gz
mongos.initd
"
-_builddir="$srcdir"/$pkgname-src-r$pkgver
+builddir="$srcdir"/$pkgname-src-r$pkgver
_buildopts="
--allocator=system \
--disable-warnings-as-errors \
@@ -44,26 +44,22 @@ _buildopts="
--ssl \
"
-prepare() {
- cd "$_builddir"
-
- local i
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
-
build() {
- cd "$_builddir"
+ cd "$builddir"
export SCONSFLAGS="$MAKEFLAGS"
scons $_buildopts --prefix=$pkgdir/usr core
}
+check() {
+ cd "$builddir"
+
+ scons unittests
+ python buildscripts/resmoke.py --suites=unittests --jobs=2
+}
+
package() {
- cd "$_builddir"
+ cd "$builddir"
# install mongo targets
export SCONSFLAGS="$MAKEFLAGS"