Skip to content

Commit

Permalink
dev-libs/libbson: Bump v.1.24.2+1
Browse files Browse the repository at this point in the history
  • Loading branch information
geaaru committed Aug 27, 2023
1 parent cea1e75 commit b4d1026
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/atoms/db/dev-libs/libbson/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
prelude:
# Temporary fix until FL-11505 is done
- >-
cp *.ebuild /var/git/meta-repo/kits/dev-kit/dev-libs/libbson/
- |-
export FEATURES="-sandbox -usersandbox -ipc-sandbox -pid-sandbox -network-sandbox" && \
export JOBS={{ ( index .Values.labels "jobs" ) | default "3" }} && \
Expand Down
2 changes: 1 addition & 1 deletion packages/atoms/db/dev-libs/libbson/definition.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: libbson
version: 1.24.2
version: 1.24.2+1
category: dev-libs
annotations:
subsets:
Expand Down
51 changes: 51 additions & 0 deletions packages/atoms/db/dev-libs/libbson/libbson-1.24.2.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit cmake

DESCRIPTION="Library routines related to building,parsing and iterating BSON documents"
HOMEPAGE="https://github.com/mongodb/mongo-c-driver/tree/master/src/libbson"
SRC_URI="https://github.com/mongodb/mongo-c-driver/releases/download/1.24.2/mongo-c-driver-1.24.2.tar.gz -> libbson-1.24.2.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="*"
IUSE="examples static-libs"

DEPEND="dev-python/sphinx"

S="${WORKDIR}/mongo-c-driver-${PV}"

src_prepare() {
cmake_src_prepare

# remove doc files
sed -i '/^\s*install\s*(FILES COPYING NEWS/,/^\s*)/ {d}' CMakeLists.txt || die

sed -i -e 's|${PROJECT_SOURCE_DIR}/src/bson/bcon.h|${PROJECT_SOURCE_DIR}/src/bson/bcon.h\n $\{PROJECT_SOURCE_DIR\}/src/bson/bson-dsl.h|g' \
src/libbson/CMakeLists.txt || die
}

src_configure() {
local mycmakeargs=(
-DUSE_SYSTEM_LIBBSON=FALSE
-DENABLE_EXAMPLES=OFF
-DENABLE_MAN_PAGES=ON
-DENABLE_MONGOC=OFF
-DENABLE_TESTS=OFF
-DENABLE_STATIC="$(usex static-libs ON OFF)"
-DENABLE_UNINSTALL=OFF
)

cmake_src_configure
}

src_install() {
if use examples; then
docinto examples
dodoc src/libbson/examples/*.c
fi

cmake_src_install
}

0 comments on commit b4d1026

Please sign in to comment.