summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-10-26 08:33:00 +0100
committerMichał Górny <mgorny@gentoo.org>2020-10-26 08:39:01 +0100
commitc0503a83fe990abc7a2954ab2f1b1f68710a5844 (patch)
tree8de136af4cd707542505df72f7fda33abbfc496c /dev-libs
parentgames-action/btanks: Remove last-rited pkg (diff)
downloadgentoo-c0503a83fe990abc7a2954ab2f1b1f68710a5844.tar.gz
gentoo-c0503a83fe990abc7a2954ab2f1b1f68710a5844.tar.bz2
gentoo-c0503a83fe990abc7a2954ab2f1b1f68710a5844.zip
dev-libs/mongo-cxx-driver: Remove last-rited pkg
Closes: https://bugs.gentoo.org/735530 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/mongo-cxx-driver/Manifest4
-rw-r--r--dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-1.0.0-fix-scons.patch34
-rw-r--r--dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-1.1.0-fix-scons.patch54
-rw-r--r--dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-1.1.2-boost-next.patch21
-rw-r--r--dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-1.1.2-boost-ref.patch15
-rw-r--r--dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-26compat-fix-scons.patch34
-rw-r--r--dev-libs/mongo-cxx-driver/metadata.xml11
-rw-r--r--dev-libs/mongo-cxx-driver/mongo-cxx-driver-0.0.2.6.7-r1.ebuild89
-rw-r--r--dev-libs/mongo-cxx-driver/mongo-cxx-driver-1.0.0.ebuild72
-rw-r--r--dev-libs/mongo-cxx-driver/mongo-cxx-driver-1.0.5.ebuild72
-rw-r--r--dev-libs/mongo-cxx-driver/mongo-cxx-driver-1.1.2-r1.ebuild72
11 files changed, 0 insertions, 478 deletions
diff --git a/dev-libs/mongo-cxx-driver/Manifest b/dev-libs/mongo-cxx-driver/Manifest
deleted file mode 100644
index 7837ecb34b35..000000000000
--- a/dev-libs/mongo-cxx-driver/Manifest
+++ /dev/null
@@ -1,4 +0,0 @@
-DIST legacy-0.0-26compat-2.6.7.tar.gz 1512331 BLAKE2B 43735ef7be4d5f3094eccedb5ee70f9f9722a174513a10f2f5f7c3c5603766f85e13717ea8c68b935c0ba5914c8e4a9b6e6797cd1a10d0257b654473799070bc SHA512 edf13d5b7802c3b2e9772f08949fd0c412f2cd25ec6d05ff4e8c1f25c3e3506da6ebbd7b017ceec5478585c84e9fa44c66a5094ad3e7a7373187d3fb3c1c1222
-DIST legacy-1.0.0.tar.gz 1569156 BLAKE2B 6c231d6a4c9f6c54aaea2b6f5ce10c80537875e69508fbd3598a835b52ca2bd984d2d7bf3bd35bff83b78408d3c185715f2fb8d6eef3b697c864161479a016ab SHA512 e161972715fe45b777ee3d9c7e788ee3a808af789e2c1248af1dde3d3f3936e29f619e039f53210cdd3fc6a6bd8a02c101facf49c61759c6f108d25c5c03b59b
-DIST legacy-1.0.5.tar.gz 1573929 BLAKE2B 85476dddefdcbd7a4b8ac945a39633965ade0389131e554c04aab3d457a3651b79292b88882613af6bb07f56759e75f67eb72d27b23209cc0df36df9eec58846 SHA512 e904d73f78ffbc1ce18ffa11dd7e3dddd67c730b6e79bace0e48c0be4e8ffd7b5fe12e1373e42ad941d8fc239ef031a47d39ff04aaf3f0a5ecf88115c816bc70
-DIST legacy-1.1.2.tar.gz 1577527 BLAKE2B 277e5ed6d6897587d3d9f9681b6821d2cc4bba71191c27083306d3a4d7dd778fdb3707e5b70fe9f528be8142dd755ba8e2a19ee866f5583dc57d297c642e6e02 SHA512 a0b21719db8205a16c574ce21565577787ea00cf2492353bcd4dd79a7ef3b7d685287be47e6eee59fad46c6fa2ac3c6a0e00c26ef88be8b17e9d93fbc763cb10
diff --git a/dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-1.0.0-fix-scons.patch b/dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-1.0.0-fix-scons.patch
deleted file mode 100644
index 319773c7d571..000000000000
--- a/dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-1.0.0-fix-scons.patch
+++ /dev/null
@@ -1,34 +0,0 @@
---- a/SConstruct 2015-03-17 10:19:58.766530807 +0100
-+++ b/SConstruct 2015-03-17 10:27:58.400062874 +0100
-@@ -853,7 +853,6 @@
-
- # -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used.
- env.Append( CCFLAGS=["-fPIC",
-- "-ggdb",
- "-pthread",
- "-Wall",
- "-Wsign-compare",
-@@ -861,13 +860,13 @@
- "-Winvalid-pch"] )
- # env.Append( " -Wconversion" ) TODO: this doesn't really work yet
- if linux or darwin:
-- env.Append( CCFLAGS=["-pipe"] )
- if not has_option("disable-warnings-as-errors"):
- env.Append( CCFLAGS=["-Werror"] )
-
- env.Append( CPPDEFINES=["_FILE_OFFSET_BITS=64"] )
-- env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
- env.Append( LINKFLAGS=["-fPIC"] )
-+ env.Append( CXXFLAGS=os.environ['CXXFLAGS'] )
-+ env.Append( LINKFLAGS=os.environ['LDFLAGS'] )
-
- # SERVER-9761: Ensure early detection of missing symbols in dependent libraries at program
- # startup.
-@@ -933,7 +932,6 @@
- except OSError:
- pass
-
--env.Prepend(CPPPATH=['$VARIANT_DIR/third_party/gtest-1.7.0/include'])
-
- boostSuffixList = ["-mt", ""]
- if get_option("boost-lib-search-suffixes") is not None:
diff --git a/dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-1.1.0-fix-scons.patch b/dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-1.1.0-fix-scons.patch
deleted file mode 100644
index 2a8ce309b66c..000000000000
--- a/dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-1.1.0-fix-scons.patch
+++ /dev/null
@@ -1,54 +0,0 @@
---- a/SConstruct
-+++ b/SConstruct
-@@ -865,7 +865,6 @@
-
- # -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used.
- env.Append( CCFLAGS=["-fPIC",
-- "-ggdb",
- "-pthread",
- "-Wall",
- "-Wsign-compare",
-@@ -873,13 +872,13 @@
- "-Winvalid-pch"] )
- # env.Append( " -Wconversion" ) TODO: this doesn't really work yet
- if linux or darwin:
-- env.Append( CCFLAGS=["-pipe"] )
- if not has_option("disable-warnings-as-errors"):
- env.Append( CCFLAGS=["-Werror"] )
-
- env.Append( CPPDEFINES=["_FILE_OFFSET_BITS=64"] )
-- env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
- env.Append( LINKFLAGS=["-fPIC"] )
-+ env.Append( CXXFLAGS=os.environ['CXXFLAGS'] )
-+ env.Append( LINKFLAGS=os.environ['LDFLAGS'] )
-
- # SERVER-9761: Ensure early detection of missing symbols in dependent libraries at program
- # startup.
-@@ -905,11 +904,6 @@
- env.Append( CXXFLAGS=" -fprofile-arcs -ftest-coverage " )
- env.Append( LINKFLAGS=" -fprofile-arcs -ftest-coverage " )
-
-- if optBuild:
-- env.Append( CCFLAGS=["-O3"] )
-- else:
-- env.Append( CCFLAGS=["-O0"] )
--
- if debugBuild:
- if not optBuild:
- env.Append( CCFLAGS=["-fstack-protector"] )
-@@ -932,7 +926,6 @@
- except OSError:
- pass
-
--env.Prepend(CPPPATH=['$VARIANT_DIR/third_party/gtest-1.7.0/include'])
-
- boostSuffixList = ["-mt", ""]
- if get_option("boost-lib-search-suffixes") is not None:
-@@ -1143,6 +1136,7 @@
- # Clang likes to warn about unused functions, which seems a tad aggressive and breaks
- # -Werror, which we want to be able to use.
- AddToCCFLAGSIfSupported(myenv, '-Wno-unused-function')
-+ AddToCCFLAGSIfSupported(myenv, '-Wno-unused-variable')
-
- # TODO: Note that the following two flags are added to CCFLAGS even though they are
- # really C++ specific. We need to do this because SCons passes CXXFLAGS *before*
diff --git a/dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-1.1.2-boost-next.patch b/dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-1.1.2-boost-next.patch
deleted file mode 100644
index 68bdc4dc1a4e..000000000000
--- a/dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-1.1.2-boost-next.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-Add missing include for boost::next()
-
-https://bugs.gentoo.org/671422
---- a/src/mongo/client/command_writer.cpp
-+++ b/src/mongo/client/command_writer.cpp
-@@ -22,4 +22,6 @@
- #include "mongo/db/namespace_string.h"
-
-+#include <boost/next_prior.hpp>
-+
- namespace mongo {
-
---- a/src/mongo/client/wire_protocol_writer.cpp
-+++ b/src/mongo/client/wire_protocol_writer.cpp
-@@ -22,4 +22,6 @@
- #include "mongo/db/namespace_string.h"
-
-+#include <boost/next_prior.hpp>
-+
- namespace mongo {
-
diff --git a/dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-1.1.2-boost-ref.patch b/dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-1.1.2-boost-ref.patch
deleted file mode 100644
index 9997dd57a2c1..000000000000
--- a/dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-1.1.2-boost-ref.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-Fix missing implicit include.
-Patch by Jan-Matthias Braun
-See also: https://bugs.gentoo.org/show_bug.cgi?id=598340
-
---- a/src/mongo/client/examples/connect.cpp
-+++ b/src/mongo/client/examples/connect.cpp
-@@ -29,6 +29,8 @@
- #include "mongo/client/dbclient.h"
- #include "mongo/stdx/functional.h"
-
-+#include <boost/core/ref.hpp>
-+
- namespace {
-
- class OstreamAppender : public mongo::logger::MessageLogDomain::EventAppender {
diff --git a/dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-26compat-fix-scons.patch b/dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-26compat-fix-scons.patch
deleted file mode 100644
index be5408511bda..000000000000
--- a/dev-libs/mongo-cxx-driver/files/mongo-cxx-driver-26compat-fix-scons.patch
+++ /dev/null
@@ -1,34 +0,0 @@
---- a/SConstruct 2015-03-23 10:36:42.328921927 +0100
-+++ b/SConstruct 2015-03-23 10:37:37.599310414 +0100
-@@ -828,7 +828,6 @@
- # -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used.
- env.Append( CCFLAGS=["-fPIC",
- "-fno-strict-aliasing",
-- "-ggdb",
- "-pthread",
- "-Wall",
- "-Wsign-compare",
-@@ -836,13 +835,13 @@
- "-Winvalid-pch"] )
- # env.Append( " -Wconversion" ) TODO: this doesn't really work yet
- if linux or darwin:
-- env.Append( CCFLAGS=["-pipe"] )
- if not has_option("disable-warnings-as-errors"):
- env.Append( CCFLAGS=["-Werror"] )
-
- env.Append( CPPDEFINES=["_FILE_OFFSET_BITS=64"] )
-- env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
- env.Append( LINKFLAGS=["-fPIC", "-pthread"] )
-+ env.Append( CXXFLAGS=os.environ['CXXFLAGS'] )
-+ env.Append( LINKFLAGS=os.environ['LDFLAGS'] )
-
- # SERVER-9761: Ensure early detection of missing symbols in dependent libraries at program
- # startup.
-@@ -938,7 +937,6 @@
- if not use_system_version_of_library("snappy"):
- env.Prepend(CPPPATH=['$BUILD_DIR/third_party/snappy'])
-
--env.Prepend(CPPPATH=['$BUILD_DIR/third_party/gtest-1.7.0/include'])
-
- env.Append( CPPPATH=['$EXTRACPPPATH'],
- LIBPATH=['$EXTRALIBPATH'] )
diff --git a/dev-libs/mongo-cxx-driver/metadata.xml b/dev-libs/mongo-cxx-driver/metadata.xml
deleted file mode 100644
index e27bea24f74d..000000000000
--- a/dev-libs/mongo-cxx-driver/metadata.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>ultrabug@gentoo.org</email>
- <name>Alexys Jacob</name>
- </maintainer>
- <upstream>
- <remote-id type="github">mongodb/mongo-cxx-driver</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/dev-libs/mongo-cxx-driver/mongo-cxx-driver-0.0.2.6.7-r1.ebuild b/dev-libs/mongo-cxx-driver/mongo-cxx-driver-0.0.2.6.7-r1.ebuild
deleted file mode 100644
index 27e4b7ee9641..000000000000
--- a/dev-libs/mongo-cxx-driver/mongo-cxx-driver-0.0.2.6.7-r1.ebuild
+++ /dev/null
@@ -1,89 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-SCONS_MIN_VERSION="2.3.0"
-
-inherit eutils flag-o-matic multilib scons-utils toolchain-funcs versionator
-
-MY_PV=$(get_version_component_range 3-5)
-MY_P=legacy-0.0-26compat-${MY_PV}
-
-DESCRIPTION="C++ Driver for MongoDB"
-HOMEPAGE="https://github.com/mongodb/mongo-cxx-driver"
-SRC_URI="https://github.com/mongodb/${PN}/archive/${MY_P}.tar.gz"
-
-LICENSE="AGPL-3 Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="kerberos libressl ssl static-libs"
-
-RDEPEND="
- app-arch/snappy
- >=dev-cpp/yaml-cpp-0.5.1
- >=dev-libs/boost-1.50[threads(+)]
- >=dev-libs/libpcre-8.30[cxx]
- dev-util/google-perftools[-minimal]
- ssl? (
- !libressl? ( dev-libs/openssl:0= )
- libressl? ( dev-libs/libressl:0= )
- )"
-DEPEND="${RDEPEND}
- kerberos? ( dev-libs/cyrus-sasl[kerberos] )"
-
-S=${WORKDIR}/${PN}-${MY_P}
-
-pkg_setup() {
- scons_opts="--variant-dir=build --cc=$(tc-getCC) --cxx=$(tc-getCXX)"
- scons_opts+=" --disable-warnings-as-errors --sharedclient"
- scons_opts+=" --use-system-boost"
- scons_opts+=" --use-system-pcre"
- scons_opts+=" --use-system-snappy"
- scons_opts+=" --use-system-yaml"
-
- if use prefix; then
- scons_opts+=" --cpppath=${EPREFIX}/usr/include"
- scons_opts+=" --libpath=${EPREFIX}/usr/$(get_libdir)"
- fi
-
- if use kerberos; then
- scons_opts+=" --use-sasl-client"
- fi
-
- if use ssl; then
- scons_opts+=" --ssl"
- fi
-}
-
-src_prepare() {
- epatch "${FILESDIR}/${PN}-26compat-fix-scons.patch"
-
- # stemmer/pcap are not used, strip them wrt #518104
- sed -e '/stemmer/d' -e '/pcap/d' -i SConstruct || die
-
- # fix yaml-cpp detection
- sed -i -e "s/\[\"yaml\"\]/\[\"yaml-cpp\"\]/" SConstruct || die
-
- # bug #462606
- sed -i -e "s@\$INSTALL_DIR/lib@\$INSTALL_DIR/$(get_libdir)@g" src/SConscript.client || die
-}
-
-src_compile() {
- escons ${scons_opts} mongoclient
-}
-
-src_install() {
- escons ${scons_opts} --full --nostrip install-mongoclient --prefix="${ED}"/usr
-
- use static-libs || find "${ED}"/usr/ -type f -name "*.a" -delete
-
- dodoc README.md CONTRIBUTING.md
-}
-
-pkg_preinst() {
- if [[ "$(get_libdir)" == "lib64" ]]; then
- rmdir "${ED}"/usr/lib64/ &>/dev/null
- else
- rmdir "${ED}"/usr/lib/ &>/dev/null
- fi
-}
diff --git a/dev-libs/mongo-cxx-driver/mongo-cxx-driver-1.0.0.ebuild b/dev-libs/mongo-cxx-driver/mongo-cxx-driver-1.0.0.ebuild
deleted file mode 100644
index 6775c8f379e7..000000000000
--- a/dev-libs/mongo-cxx-driver/mongo-cxx-driver-1.0.0.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-SCONS_MIN_VERSION="2.3.0"
-
-inherit eutils flag-o-matic multilib scons-utils toolchain-funcs
-
-DESCRIPTION="C++ Driver for MongoDB"
-HOMEPAGE="https://github.com/mongodb/mongo-cxx-driver"
-SRC_URI="https://github.com/mongodb/${PN}/archive/legacy-${PV}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="debug libressl sasl ssl static-libs"
-
-RDEPEND="!dev-db/tokumx
- >=dev-libs/boost-1.50[threads(+)]
- sasl? ( dev-libs/cyrus-sasl )
- ssl? (
- !libressl? ( dev-libs/openssl:0= )
- libressl? ( dev-libs/libressl:0= )
- )"
-DEPEND="${RDEPEND}"
-
-# Maintainer notes
-# TODO: enable test in IUSE with
-# test? ( >=dev-cpp/gtest-1.7.0 dev-db/mongodb )
-
-DOCS=( README.md )
-
-S="${WORKDIR}/${PN}-legacy-${PV}"
-
-pkg_setup() {
- scons_opts="--variant-dir=build --cc=$(tc-getCC) --cxx=$(tc-getCXX)"
- scons_opts+=" --disable-warnings-as-errors --sharedclient"
-
- if use debug; then
- scons_opts+=" --dbg=on"
- fi
-
- if use prefix; then
- scons_opts+=" --cpppath=${EPREFIX}/usr/include"
- scons_opts+=" --libpath=${EPREFIX}/usr/$(get_libdir)"
- fi
-
- if use sasl; then
- scons_opts+=" --use-sasl-client"
- fi
-
- if use ssl; then
- scons_opts+=" --ssl"
- fi
-}
-
-src_prepare() {
- epatch "${FILESDIR}/${PN}-1.0.0-fix-scons.patch"
-
- # respect mongoDB upstream's basic recommendations
- # see bug #536688 and #526114
- if ! use debug; then
- filter-flags '-m*'
- filter-flags '-O?'
- fi
-}
-
-src_install() {
- escons ${scons_opts} install --prefix="${ED}"/usr
-
- use static-libs || find "${D}" -name '*.a' -delete
-}
diff --git a/dev-libs/mongo-cxx-driver/mongo-cxx-driver-1.0.5.ebuild b/dev-libs/mongo-cxx-driver/mongo-cxx-driver-1.0.5.ebuild
deleted file mode 100644
index 6775c8f379e7..000000000000
--- a/dev-libs/mongo-cxx-driver/mongo-cxx-driver-1.0.5.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-SCONS_MIN_VERSION="2.3.0"
-
-inherit eutils flag-o-matic multilib scons-utils toolchain-funcs
-
-DESCRIPTION="C++ Driver for MongoDB"
-HOMEPAGE="https://github.com/mongodb/mongo-cxx-driver"
-SRC_URI="https://github.com/mongodb/${PN}/archive/legacy-${PV}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="debug libressl sasl ssl static-libs"
-
-RDEPEND="!dev-db/tokumx
- >=dev-libs/boost-1.50[threads(+)]
- sasl? ( dev-libs/cyrus-sasl )
- ssl? (
- !libressl? ( dev-libs/openssl:0= )
- libressl? ( dev-libs/libressl:0= )
- )"
-DEPEND="${RDEPEND}"
-
-# Maintainer notes
-# TODO: enable test in IUSE with
-# test? ( >=dev-cpp/gtest-1.7.0 dev-db/mongodb )
-
-DOCS=( README.md )
-
-S="${WORKDIR}/${PN}-legacy-${PV}"
-
-pkg_setup() {
- scons_opts="--variant-dir=build --cc=$(tc-getCC) --cxx=$(tc-getCXX)"
- scons_opts+=" --disable-warnings-as-errors --sharedclient"
-
- if use debug; then
- scons_opts+=" --dbg=on"
- fi
-
- if use prefix; then
- scons_opts+=" --cpppath=${EPREFIX}/usr/include"
- scons_opts+=" --libpath=${EPREFIX}/usr/$(get_libdir)"
- fi
-
- if use sasl; then
- scons_opts+=" --use-sasl-client"
- fi
-
- if use ssl; then
- scons_opts+=" --ssl"
- fi
-}
-
-src_prepare() {
- epatch "${FILESDIR}/${PN}-1.0.0-fix-scons.patch"
-
- # respect mongoDB upstream's basic recommendations
- # see bug #536688 and #526114
- if ! use debug; then
- filter-flags '-m*'
- filter-flags '-O?'
- fi
-}
-
-src_install() {
- escons ${scons_opts} install --prefix="${ED}"/usr
-
- use static-libs || find "${D}" -name '*.a' -delete
-}
diff --git a/dev-libs/mongo-cxx-driver/mongo-cxx-driver-1.1.2-r1.ebuild b/dev-libs/mongo-cxx-driver/mongo-cxx-driver-1.1.2-r1.ebuild
deleted file mode 100644
index 2dad30753129..000000000000
--- a/dev-libs/mongo-cxx-driver/mongo-cxx-driver-1.1.2-r1.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2018 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-SCONS_MIN_VERSION=2.3.0
-
-inherit scons-utils toolchain-funcs
-
-DESCRIPTION="C++ Driver for MongoDB"
-HOMEPAGE="https://github.com/mongodb/mongo-cxx-driver"
-SRC_URI="https://github.com/mongodb/${PN}/archive/legacy-${PV}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="debug libressl sasl ssl static-libs"
-
-RDEPEND="
- !dev-db/tokumx
- dev-libs/boost:=[threads(+)]
- sasl? ( dev-libs/cyrus-sasl )
- ssl? (
- !libressl? ( dev-libs/openssl:0= )
- libressl? ( dev-libs/libressl:0= )
- )"
-DEPEND="${RDEPEND}"
-
-# Maintainer notes
-# TODO: enable test in IUSE with
-# test? ( >=dev-cpp/gtest-1.7.0 dev-db/mongodb )
-
-PATCHES=(
- "${FILESDIR}"/${PN}-1.1.0-fix-scons.patch
- "${FILESDIR}"/${PN}-1.1.2-boost-ref.patch
- "${FILESDIR}"/${PN}-1.1.2-boost-next.patch
-)
-
-S="${WORKDIR}/${PN}-legacy-${PV}"
-
-src_configure() {
- scons_opts=(
- --cc=$(tc-getCC)
- --cxx=$(tc-getCXX)
- --cpppath="${EPREFIX}"/usr/include
- --libpath="${EPREFIX}"/usr/$(get_libdir)
- --variant-dir=build
- --disable-warnings-as-errors
- --sharedclient
- )
-
- use debug && scons_opts+=( --dbg=on )
- use sasl && scons_opts+=( --use-sasl-client )
- use ssl && scons_opts+=( --ssl )
-}
-
-src_compile() {
- escons "${scons_opts[@]}"
-}
-
-src_install() {
- escons "${scons_opts[@]}" install --prefix="${ED%/}"/usr
-
- # fix multilib-strict QA failures
- mv "${ED%/}"/usr/{lib,$(get_libdir)} || die
-
- einstalldocs
-
- if ! use static-libs; then
- find "${D}" -name '*.a' -delete || die
- fi
-}