testing/mongo-c-driver: build manual pages

This commit is contained in:
tcely 2018-03-03 11:47:42 -05:00 committed by Natanael Copa
parent 5c78920497
commit 7e56c0aaff
2 changed files with 31 additions and 17 deletions

View File

@ -1,35 +1,41 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=libbson pkgname=libbson
pkgver=1.9.2 pkgver=1.9.2
pkgrel=1 pkgrel=2
pkgdesc="routines related to building, parsing, and iterating BSON documents" pkgdesc="routines related to building, parsing, and iterating BSON documents"
url="https://github.com/mongodb/libbson" url="https://github.com/mongodb/libbson"
arch="all" arch="all"
license="Apache-2.0" license="Apache-2.0"
makedepends="$depends_dev autoconf automake libtool" depends=
depends_dev=
makedepends="$depends_dev autoconf automake libtool py3-sphinx"
checkdepends="bash" checkdepends="bash"
install=
subpackages="$pkgname-dev $pkgname-doc" subpackages="$pkgname-dev $pkgname-doc"
options="!check" # segfaults source="$pkgname-$pkgver.tar.gz::https://github.com/mongodb/$pkgname/archive/$pkgver.tar.gz"
source="$pkgname-$pkgver.tar.gz::https://github.com/mongodb/libbson/archive/$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver builddir="$srcdir/$pkgname-$pkgver"
prepare() { prepare() {
cd "$builddir" cd "$builddir"
./autogen.sh NOCONFIGURE=1 ./autogen.sh
} }
build() { build() {
cd "$builddir" cd "$builddir"
./configure --prefix=/usr \ SPHINX_BUILD=/usr/bin/sphinx-build-3 ./configure \
--prefix=/usr \
--sysconfdir=/etc \ --sysconfdir=/etc \
--mandir=/usr/share/man \ --mandir=/usr/share/man \
--infodir=/usr/share/info --infodir=/usr/share/info \
--enable-man-pages=yes \
--enable-tests=yes
make make
} }
check() { check() {
cd "$builddir" cd "$builddir"
make check make TEST_ARGS=--no-fork check
} }
package() { package() {

View File

@ -1,30 +1,38 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=mongo-c-driver pkgname=mongo-c-driver
pkgver=1.9.2 pkgver=1.9.2
pkgrel=0 pkgrel=1
pkgdesc="Client library written in C for MongoDB" pkgdesc="Client library written in C for MongoDB"
url="https://github.com/mongodb/mongo-c-driver" url="https://github.com/mongodb/mongo-c-driver"
arch="all" arch="all"
license="Apache-2.0" license="Apache-2.0"
makedepends="$depends_dev autoconf automake libbson-dev libtool" depends=
options="!check" # requires a local running db instance depends_dev="libressl-dev snappy-dev zlib-dev"
makedepends="$depends_dev autoconf automake libbson-dev libtool py3-sphinx"
install=
subpackages="$pkgname-dev $pkgname-doc" subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mongodb/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz" source="https://github.com/mongodb/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver builddir="$srcdir/$pkgname-$pkgver"
build() { build() {
cd "$builddir" cd "$builddir"
./configure --prefix=/usr \ SPHINX_BUILD=/usr/bin/sphinx-build-3 ./configure \
--prefix=/usr \
--sysconfdir=/etc \ --sysconfdir=/etc \
--mandir=/usr/share/man \ --mandir=/usr/share/man \
--infodir=/usr/share/info --infodir=/usr/share/info \
--enable-man-pages=yes \
--enable-tests=yes \
--disable-automatic-init-and-cleanup \
--with-libbson=system \
--with-zlib=system
make make
} }
check() { check() {
cd "$builddir" cd "$builddir"
make test MONGOC_TEST_SKIP_LIVE=on make check
} }
package() { package() {