forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tomáš Mózes <[email protected]> Signed-off-by: Thomas Deutschmann <[email protected]>
- Loading branch information
1 parent
6550534
commit dfc7889
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
dev-libs/libbson/files/libbson-1.16.2-single-doc-job.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/build/cmake/SphinxBuild.cmake b/build/cmake/SphinxBuild.cmake | ||
index a7f49d7..804ad44 100644 | ||
--- a/build/cmake/SphinxBuild.cmake | ||
+++ b/build/cmake/SphinxBuild.cmake | ||
@@ -40,7 +40,7 @@ function (sphinx_build_html target_name doc_dir) | ||
${CMAKE_COMMAND} -E env | ||
"PYTHONDONTWRITEBYTECODE=1" | ||
${SPHINX_EXECUTABLE} | ||
- -j ${NPROCS} -qEW -b html | ||
+ -j 1 -qEW -b html | ||
-c "${CMAKE_CURRENT_SOURCE_DIR}" | ||
"${CMAKE_CURRENT_SOURCE_DIR}" | ||
"${SPHINX_HTML_DIR}" | ||
@@ -133,7 +133,7 @@ function (sphinx_build_man target_name) | ||
${CMAKE_COMMAND} -E env | ||
"PYTHONDONTWRITEBYTECODE=1" | ||
${SPHINX_EXECUTABLE} | ||
- -j ${NPROCS} -qEW -b man | ||
+ -j 1 -qEW -b man | ||
-c "${CMAKE_CURRENT_SOURCE_DIR}" | ||
"${CMAKE_CURRENT_SOURCE_DIR}" | ||
"${SPHINX_MAN_DIR}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Copyright 1999-2020 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
inherit cmake-utils | ||
|
||
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/${PV}/mongo-c-driver-${PV}.tar.gz -> ${P}.tar.gz" | ||
|
||
LICENSE="Apache-2.0" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~hppa ~ppc ~x86" | ||
IUSE="examples static-libs" | ||
|
||
DEPEND="dev-python/sphinx" | ||
|
||
PATCHES=( | ||
"${FILESDIR}/${PN}-1.14.0-no-docs.patch" | ||
"${FILESDIR}/${PN}-1.16.2-single-doc-job.patch" | ||
) | ||
|
||
S="${WORKDIR}/mongo-c-driver-${PV}" | ||
|
||
src_configure() { | ||
local mycmakeargs=( | ||
-DENABLE_BSON=ON | ||
-DENABLE_EXAMPLES=OFF | ||
-DENABLE_MAN_PAGES=ON | ||
-DENABLE_MONGOC=OFF | ||
-DENABLE_TESTS=OFF | ||
-DENABLE_STATIC="$(usex static-libs ON OFF)" | ||
-DENABLE_UNINSTALL=OFF | ||
) | ||
|
||
cmake-utils_src_configure | ||
} | ||
|
||
src_install() { | ||
if use examples; then | ||
docinto examples | ||
dodoc src/libbson/examples/*.c | ||
fi | ||
|
||
cmake-utils_src_install | ||
} |