summaryrefslogtreecommitdiffstats
path: root/libraries/mongo-c-driver
diff options
context:
space:
mode:
author Matteo Bernardini <ponce@slackbuilds.org>2021-01-23 10:42:59 +0100
committer Robby Workman <rworkman@slackbuilds.org>2021-04-17 23:43:42 -0500
commit92c9f786492d7b00320d8fb0b6cc1786d451a71c (patch)
tree6cb85dc9349ee9d98b5e4f53c1cfc910dd85205e /libraries/mongo-c-driver
parentbf6e9d84bb6d947d63376172d921c47272a245b8 (diff)
downloadslackbuilds-92c9f786492d7b00320d8fb0b6cc1786d451a71c.tar.gz
slackbuilds-92c9f786492d7b00320d8fb0b6cc1786d451a71c.tar.xz
libraries/mongo-c-driver: Updated for version 1 17.3.
Switch to cmake Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/mongo-c-driver')
-rw-r--r--libraries/mongo-c-driver/mongo-c-driver.SlackBuild40
-rw-r--r--libraries/mongo-c-driver/mongo-c-driver.info6
2 files changed, 19 insertions, 27 deletions
diff --git a/libraries/mongo-c-driver/mongo-c-driver.SlackBuild b/libraries/mongo-c-driver/mongo-c-driver.SlackBuild
index b0c707f20e..37ccb1d73b 100644
--- a/libraries/mongo-c-driver/mongo-c-driver.SlackBuild
+++ b/libraries/mongo-c-driver/mongo-c-driver.SlackBuild
@@ -21,7 +21,7 @@
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mongo-c-driver
-VERSION=${VERSION:-1.6.1}
+VERSION=${VERSION:-1.17.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -68,36 +68,28 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Flag Docs, if needed
-PDOCS=""
-MkDOCS=""
-if [ "${DOCS:-no}" = "yes" ]; then
- PDOCS="--enable-html-docs --enable-man-pages"
- MkDOCS="man html"
-fi
-
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --disable-static \
- --disable-automatic-init-and-cleanup \
- $PDOCS \
- --build=$ARCH-slackware-linux
+DOX=0 ; if [ "${DOCS:-no}" = "yes" ]; then DOX=1 ; fi
-make $MkDOCS
-make install DESTDIR=$PKG
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DMAN_INSTALL_DIR=/usr/man \
+ -DENABLE_MAN_PAGES=$DOX \
+ -DENABLE_HTML_DOCS=$DOX \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING ChangeLog CONTRIBUTING.md NEWS README README.rst \
- THIRD_PARTY_NOTICES VERSION_CURRENT VERSION_RELEASED \
+ COPYING CONTRIBUTING.md NEWS README.rst \
+ THIRD_PARTY_NOTICES VERSION_CURRENT \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/libraries/mongo-c-driver/mongo-c-driver.info b/libraries/mongo-c-driver/mongo-c-driver.info
index 2c2ecc783f..c37ba0046c 100644
--- a/libraries/mongo-c-driver/mongo-c-driver.info
+++ b/libraries/mongo-c-driver/mongo-c-driver.info
@@ -1,8 +1,8 @@
PRGNAM="mongo-c-driver"
-VERSION="1.6.1"
+VERSION="1.17.3"
HOMEPAGE="http://mongoc.org"
-DOWNLOAD="https://github.com/mongodb/mongo-c-driver/releases/download/1.6.1/mongo-c-driver-1.6.1.tar.gz"
-MD5SUM="826946de9a15f7f453aefecdc76b1c0d"
+DOWNLOAD="https://github.com/mongodb/mongo-c-driver/releases/download/1.17.3/mongo-c-driver-1.17.3.tar.gz"
+MD5SUM="9babfd9883e7c02bd0d7624ea286ee82"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""