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:
parent
373a648772
commit
e2b2103860
|
@ -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.
|
a platform compatibility layer for the MongoDB C Driver.
|
||||||
|
|
||||||
libbson conflicts with mongo-c-driver.
|
libbson conflicts with mongo-c-driver.
|
||||||
|
|
||||||
|
To build the libbson documentation, install Sphinx and set
|
||||||
|
DOCS=yes
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
PRGNAM=libbson
|
PRGNAM=libbson
|
||||||
SRCNAM=mongo-c-driver
|
SRCNAM=mongo-c-driver
|
||||||
VERSION=${VERSION:-1.17.0}
|
VERSION=${VERSION:-1.17.2}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -61,7 +61,6 @@ rm -rf $TMP/$PKGNAM-$VERSION $PKG
|
||||||
mkdir -p $TMP/$PKGNAM-$VERSION $PKG $OUTPUT
|
mkdir -p $TMP/$PKGNAM-$VERSION $PKG $OUTPUT
|
||||||
cd $TMP/$PKGNAM-$VERSION
|
cd $TMP/$PKGNAM-$VERSION
|
||||||
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
|
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
|
||||||
ar p $CWD/$PRGNAM-doc_${VERSION}-*_all.deb data.tar.xz | tar xvJ
|
|
||||||
|
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
|
@ -70,13 +69,14 @@ find -L . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
mkdir -p $PKG/usr/man $PKG/usr/doc/$PRGNAM-$VERSION
|
PDOCS=""
|
||||||
mv usr/share/man/man3 $PKG/usr/man
|
MkDOCS=""
|
||||||
mv usr/share/doc/libbson-dev/html $PKG/usr/doc/$PRGNAM-$VERSION
|
if [ "${DOCS:-no}" = "yes" ]; then
|
||||||
|
PDOCS="-DENABLE_MAN_PAGES=ON -DENABLE_HTML_DOCS=ON"
|
||||||
|
MkDOCS="bson-doc"
|
||||||
|
fi
|
||||||
|
|
||||||
cd $SRCNAM-$VERSION
|
cd $SRCNAM-$VERSION/build
|
||||||
|
|
||||||
cd build
|
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
@ -84,8 +84,9 @@ cd build
|
||||||
-DENABLE_TESTS=OFF \
|
-DENABLE_TESTS=OFF \
|
||||||
-DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF \
|
-DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF \
|
||||||
-DENABLE_MONGOC=OFF \
|
-DENABLE_MONGOC=OFF \
|
||||||
|
$PDOCS \
|
||||||
-DCMAKE_BUILD_TYPE=Release ..
|
-DCMAKE_BUILD_TYPE=Release ..
|
||||||
make
|
make $MkDOCS
|
||||||
make install DESTDIR=$PKG
|
make install DESTDIR=$PKG
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
@ -94,11 +95,22 @@ rm -rf $PKG/usr/share
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
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
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
|
||||||
|
|
||||||
cd src/$PRGNAM
|
if [ "${DOCS:-no}" = "yes" ]; then
|
||||||
cp -a NEWS THIRD_PARTY_NOTICES examples $PKG/usr/doc/$PRGNAM-$VERSION
|
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
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
PRGNAM="libbson"
|
PRGNAM="libbson"
|
||||||
VERSION="1.17.0"
|
VERSION="1.17.2"
|
||||||
HOMEPAGE="https://mongoc.org/libbson/current/index.html"
|
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 \
|
DOWNLOAD="https://github.com/mongodb/mongo-c-driver/releases/download/1.17.2/mongo-c-driver-1.17.2.tar.gz"
|
||||||
https://deb.debian.org/debian/pool/main/m/mongo-c-driver/libbson-doc_1.17.0-1_all.deb"
|
MD5SUM="bac783be0c235f232b95307d641b0b89"
|
||||||
MD5SUM="2201cea8f31c6e7a4215e736dd74627a \
|
|
||||||
49820d0101c3734a155234774b56392d"
|
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES=""
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
|-----handy-ruler------------------------------------------------------|
|
|-----handy-ruler------------------------------------------------------|
|
||||||
libbson: libbson (a cross platform BSON Library for C)
|
libbson: libbson (a cross platform BSON Library for C)
|
||||||
libbson:
|
libbson:
|
||||||
libbson:
|
|
||||||
libbson: libbson builds, parses, and iterates BSON documents, the native data
|
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: format of MongoDB. It also converts BSON to and from JSON, and
|
||||||
libbson: provides a platform compatibility layer for the MongoDB C Driver.
|
libbson: provides a platform compatibility layer for the MongoDB C Driver.
|
||||||
libbson:
|
libbson:
|
||||||
libbson:
|
|
||||||
libbson: Homepage: https://mongoc.org/libbson/current/index.html
|
libbson: Homepage: https://mongoc.org/libbson/current/index.html
|
||||||
libbson:
|
libbson:
|
||||||
libbson:
|
libbson:
|
||||||
|
libbson:
|
||||||
|
libbson:
|
||||||
|
|
Loading…
Reference in New Issue