libraries/libbson: Updated for version 1.17.2.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Alexander Verbovetsky 2020-11-07 00:15:55 +00:00 committed by Willy Sudiarto Raharjo
parent 373a648772
commit e2b2103860
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
4 changed files with 33 additions and 20 deletions

View File

@ -5,3 +5,6 @@ format of MongoDB. It also converts BSON to and from JSON, and provides
a platform compatibility layer for the MongoDB C Driver.
libbson conflicts with mongo-c-driver.
To build the libbson documentation, install Sphinx and set
DOCS=yes

View File

@ -24,7 +24,7 @@
PRGNAM=libbson
SRCNAM=mongo-c-driver
VERSION=${VERSION:-1.17.0}
VERSION=${VERSION:-1.17.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -61,7 +61,6 @@ rm -rf $TMP/$PKGNAM-$VERSION $PKG
mkdir -p $TMP/$PKGNAM-$VERSION $PKG $OUTPUT
cd $TMP/$PKGNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
ar p $CWD/$PRGNAM-doc_${VERSION}-*_all.deb data.tar.xz | tar xvJ
chown -R root:root .
find -L . \
@ -70,13 +69,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p $PKG/usr/man $PKG/usr/doc/$PRGNAM-$VERSION
mv usr/share/man/man3 $PKG/usr/man
mv usr/share/doc/libbson-dev/html $PKG/usr/doc/$PRGNAM-$VERSION
PDOCS=""
MkDOCS=""
if [ "${DOCS:-no}" = "yes" ]; then
PDOCS="-DENABLE_MAN_PAGES=ON -DENABLE_HTML_DOCS=ON"
MkDOCS="bson-doc"
fi
cd $SRCNAM-$VERSION
cd build
cd $SRCNAM-$VERSION/build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
@ -84,8 +84,9 @@ cd build
-DENABLE_TESTS=OFF \
-DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF \
-DENABLE_MONGOC=OFF \
$PDOCS \
-DCMAKE_BUILD_TYPE=Release ..
make
make $MkDOCS
make install DESTDIR=$PKG
cd ..
@ -94,11 +95,22 @@ rm -rf $PKG/usr/share
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cd src/$PRGNAM
cp -a NEWS THIRD_PARTY_NOTICES examples $PKG/usr/doc/$PRGNAM-$VERSION
if [ "${DOCS:-no}" = "yes" ]; then
mkdir -p $PKG/usr/man
cd src/$PRGNAM/doc
rm -f {html,man}/CMakeLists.txt
mv man $PKG/usr/man/man3
mv html $PKG/usr/doc/$PRGNAM-$VERSION
cd ../../..
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
fi
cp -a NEWS THIRD_PARTY_NOTICES README.rst CONTRIBUTING.md \
src/libbson/examples $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View File

@ -1,10 +1,8 @@
PRGNAM="libbson"
VERSION="1.17.0"
VERSION="1.17.2"
HOMEPAGE="https://mongoc.org/libbson/current/index.html"
DOWNLOAD="https://github.com/mongodb/mongo-c-driver/releases/download/1.17.0/mongo-c-driver-1.17.0.tar.gz \
https://deb.debian.org/debian/pool/main/m/mongo-c-driver/libbson-doc_1.17.0-1_all.deb"
MD5SUM="2201cea8f31c6e7a4215e736dd74627a \
49820d0101c3734a155234774b56392d"
DOWNLOAD="https://github.com/mongodb/mongo-c-driver/releases/download/1.17.2/mongo-c-driver-1.17.2.tar.gz"
MD5SUM="bac783be0c235f232b95307d641b0b89"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

View File

@ -8,12 +8,12 @@
|-----handy-ruler------------------------------------------------------|
libbson: libbson (a cross platform BSON Library for C)
libbson:
libbson:
libbson: libbson builds, parses, and iterates BSON documents, the native data
libbson: format of MongoDB. It also converts BSON to and from JSON, and
libbson: provides a platform compatibility layer for the MongoDB C Driver.
libbson:
libbson:
libbson: Homepage: https://mongoc.org/libbson/current/index.html
libbson:
libbson:
libbson:
libbson: