dev-php/mongodb - 9999 (nest)

Search

Install

Install this version:

emerge -a =dev-php/mongodb-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-php/mongodb-9999

Or alternatively:

emerge --autounmask-write -a =dev-php/mongodb-9999

Package Information

Description:
The Official MongoDB PHP library
Homepage:
https://github.com/mongodb/mongo-php-library
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
9999 9 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=9

COMPOSER_INSTALL_PATH="MongoDB"
COMPOSER_VENDOR="${PN%%-*}"
COMPOSER_PKG="${PN#*-}"
COMPOSER_PN="${COMPOSER_VENDOR}/${COMPOSER_PKG}"
COMPOSER_SRC="${T}/composer/${COMPOSER_PKG}"
EGIT_SUBMODULES=( "specifications" )

inherit composer git-r3

DESCRIPTION="The Official MongoDB PHP library"
HOMEPAGE="https://github.com/mongodb/mongo-php-library"
EGIT_REPO_URI="https://github.com/mongodb/mongo-php-library.git"

LICENSE="MIT"
SLOT="0"

RDEPEND="dev-php/jean85-pretty-package-versions
	>=dev-php/pecl-mongodb-2.4.0
	dev-php/psr-log
	dev-php/symfony-polyfill-php85"

PATCHES=( "${FILESDIR}/${PN}"-2.4.0-tests-BucketFunctionalTest.patch
	"${FILESDIR}/${PN}"-2.4.0-tests-CollectionFunctionalTest.patch
	"${FILESDIR}/${PN}"-2.4.0-tests-DocumentsMatchConstraintTest.patch
	"${FILESDIR}/${PN}"-2.4.0-tests-FieldPathTest.patch
	"${FILESDIR}/${PN}"-2.4.0-tests-GetEncryptedFieldsFromServerFunctionalTest.patch
	"${FILESDIR}/${PN}"-2.4.0-tests-Operation.patch )

composer_enable_tests phpunit

src_test() {
	# unified specification tests use MongoDB fail points to simulate command errors.
	# configureFailPoint is available only when test commands are enabled.
	# functional/spec test suite creates many MongoDB collections and indexes.
	# raise the file-descriptor limit with 'ulimit -n 65536' to prevent WiredTiger from aborting with EMFILE.
	edo mongod --port 27017 --bind_ip 127.0.0.1 --nounixsocket --setParameter enableTestCommands=1 --fork \
		--dbpath="${T}" --logpath="${T}/mongod.log"
	edo php -d zend.assertions=1 -d memory_limit=512M /usr/bin/phpunit --testdox
	edo kill "$(<"${T}/mongod.lock")"
}

Inherited Eclasses

Dependencies

RDEPEND

dev-php/jean85-pretty-package-versions
	>=dev-php/pecl-mongodb-2.4.0
	dev-php/psr-log
	dev-php/symfony-polyfill-php85