void-packages/srcpkgs/mongodb/template

72 lines
1.8 KiB
Bash
Raw Normal View History

2014-03-09 11:05:39 +00:00
# Template file for 'mongodb'
pkgname=mongodb
2015-08-26 14:44:17 +00:00
version=3.0.6
2015-08-26 22:54:48 +00:00
revision=2
2014-03-09 11:05:39 +00:00
hostmakedepends="scons"
makedepends="boost-devel pcre-devel snappy-devel libressl-devel libpcap-devel gperftools-devel"
2014-03-09 11:05:39 +00:00
conf_files="/etc/mongodb/mongodb.conf"
system_accounts="mongodb"
mongodb_homedir="/var/lib/mongodb"
2014-08-28 16:52:19 +00:00
short_desc="High-performance, schema-free document-oriented database"
2015-06-17 07:11:59 +00:00
maintainer="Enno Boland <gottox@voidlinux.eu>"
2014-03-09 11:05:39 +00:00
homepage="http://www.mongodb.org"
license="AGPL-3"
distfiles="http://downloads.mongodb.org/src/mongodb-src-r${version}.tar.gz"
2015-08-26 14:44:17 +00:00
checksum=609f6bd416ed11898b49406332b8ff301de239ba72df0bdbf1603233229c822d
2014-03-09 11:05:39 +00:00
make_dirs="
/var/lib/mongodb 0700 mongodb mongodb
/var/log/mongodb 0750 mongodb mongodb"
wrksrc="mongodb-src-r${version}"
_scons_args=" --use-system-boost \
--use-system-pcre \
--use-system-snappy \
--use-system-tcmalloc \
--ssl \
2015-07-29 13:56:50 +00:00
--c++11=on \
2014-08-28 16:52:19 +00:00
--variant-dir=void \
--nostrip \
2014-07-03 20:26:28 +00:00
--disable-warnings-as-errors"
2015-03-05 09:10:54 +00:00
# --use-system-v8 \ # disabled - configure error
2014-10-15 17:34:05 +00:00
# ETOOHUGE
2014-11-16 10:53:12 +00:00
nodebug=1
2014-05-15 09:01:46 +00:00
2015-03-05 09:25:28 +00:00
nocross="http://build.voidlinux.eu/builders/armv7l_builder/builds/10684/steps/shell_3/logs/stdio"
2014-03-09 11:05:39 +00:00
do_configure() {
find . -name SConstruct -print0 | xargs -0 sed -i "s/-Werror/-Wno-error/g"
}
2015-08-26 22:54:48 +00:00
post_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl) # Disable strtouq(3)
sed -i src/third_party/wiredtiger/build_linux/wiredtiger_config.h \
-e "s;#define HAVE_STRTOUQ 1;#undef HAVE_STRTOUQ;"
esac
}
2014-03-09 11:05:39 +00:00
do_build() {
2015-03-05 09:10:54 +00:00
scons core ${makejobs} \
2014-03-09 11:05:39 +00:00
--cc=$CC \
--cxx=$CXX \
--ld=$CXX \
2014-03-09 11:05:39 +00:00
--libpath="${XBPS_CROSS_BASE}/usr/lib" \
--cpppath="${XBPS_CROSS_BASE}/usr/include" \
--prefix="/usr" \
$_scons_args
}
do_install() {
scons install \
2014-03-09 11:05:39 +00:00
--cc=$CC \
--cxx=$CXX \
--ld=$CXX \
2014-03-09 11:05:39 +00:00
--libpath=${XBPS_CROSS_BASE}/usr/lib \
--cpppath=${XBPS_CROSS_BASE}/usr/include \
--prefix="${DESTDIR}/usr" \
$_scons_args
vinstall ${FILESDIR}/mongodb.conf 644 etc/mongodb
2014-10-15 09:57:01 +00:00
vsv mongodb
2014-03-09 11:05:39 +00:00
}