mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
testing/mongo-c-driver: build manual pages
This commit is contained in:
parent
5c78920497
commit
7e56c0aaff
@ -1,35 +1,41 @@
|
||||
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
|
||||
pkgname=libbson
|
||||
pkgver=1.9.2
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="routines related to building, parsing, and iterating BSON documents"
|
||||
url="https://github.com/mongodb/libbson"
|
||||
arch="all"
|
||||
license="Apache-2.0"
|
||||
makedepends="$depends_dev autoconf automake libtool"
|
||||
depends=
|
||||
depends_dev=
|
||||
makedepends="$depends_dev autoconf automake libtool py3-sphinx"
|
||||
checkdepends="bash"
|
||||
install=
|
||||
subpackages="$pkgname-dev $pkgname-doc"
|
||||
options="!check" # segfaults
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/mongodb/libbson/archive/$pkgver.tar.gz"
|
||||
builddir="$srcdir"/$pkgname-$pkgver
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/mongodb/$pkgname/archive/$pkgver.tar.gz"
|
||||
|
||||
builddir="$srcdir/$pkgname-$pkgver"
|
||||
|
||||
prepare() {
|
||||
cd "$builddir"
|
||||
./autogen.sh
|
||||
NOCONFIGURE=1 ./autogen.sh
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
./configure --prefix=/usr \
|
||||
SPHINX_BUILD=/usr/bin/sphinx-build-3 ./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/usr/share/man \
|
||||
--infodir=/usr/share/info
|
||||
--infodir=/usr/share/info \
|
||||
--enable-man-pages=yes \
|
||||
--enable-tests=yes
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
make check
|
||||
make TEST_ARGS=--no-fork check
|
||||
}
|
||||
|
||||
package() {
|
||||
|
@ -1,30 +1,38 @@
|
||||
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
|
||||
pkgname=mongo-c-driver
|
||||
pkgver=1.9.2
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Client library written in C for MongoDB"
|
||||
url="https://github.com/mongodb/mongo-c-driver"
|
||||
arch="all"
|
||||
license="Apache-2.0"
|
||||
makedepends="$depends_dev autoconf automake libbson-dev libtool"
|
||||
options="!check" # requires a local running db instance
|
||||
depends=
|
||||
depends_dev="libressl-dev snappy-dev zlib-dev"
|
||||
makedepends="$depends_dev autoconf automake libbson-dev libtool py3-sphinx"
|
||||
install=
|
||||
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() {
|
||||
cd "$builddir"
|
||||
./configure --prefix=/usr \
|
||||
SPHINX_BUILD=/usr/bin/sphinx-build-3 ./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--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
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
make test
|
||||
MONGOC_TEST_SKIP_LIVE=on make check
|
||||
}
|
||||
|
||||
package() {
|
||||
|
Loading…
Reference in New Issue
Block a user