dev-php/symfony-lock - 9999 (nest)

Search

Install

Install this version:

emerge -a =dev-php/symfony-lock-9999

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

autounmask =dev-php/symfony-lock-9999

Or alternatively:

emerge --autounmask-write -a =dev-php/symfony-lock-9999

Package Information

Description:
Symfony Lock Component
Homepage:
https://github.com/symfony/lock
License:
MIT

Ebuild Details

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

EAPI=8

COMPOSER_INSTALL_PATH="Symfony/Component/Lock"
COMPOSER_INSTALL_SRC="."
POSTGRES_COMPAT=( {14..18} )

inherit composer edo git-r3 postgres

DESCRIPTION="Symfony Lock Component"
HOMEPAGE="https://github.com/symfony/lock"
EGIT_REPO_URI="https://github.com/symfony/lock.git"

LICENSE="MIT"
SLOT="0"

RDEPEND="dev-php/psr-log"
BDEPEND="test? ( ${POSTGRES_DEP}
		dev-db/redis
		dev-php/doctrine-dbal
		dev-php/doctrine-deprecations
		dev-php/predis
		dev-php/symfony-phpunit-bridge
		dev-php/symfony-serializer
		dev-php/relay )"

DOCS=( {CHANGELOG,README}.md )

# transient tests are timing-sensitive and unreliable when run with the full test suite
EPHPUNIT_EXCLUDE_GROUP=( transient )
composer_enable_tests phpunit

src_test() {
	edo "${EPREFIX}"/usr/sbin/redis-server - <<-EOF
	daemonize yes
	pidfile "${T}/redis-6379.pid"
	port 6379
	bind 127.0.0.1
	EOF

	export POSTGRES_HOST="127.0.0.1"  PGPASSWORD='password'
	local db="${T}/pgsql"
	edo initdb -U postgres -A trust -D "${db}"
	edo pg_ctl -w -D "${db}" start -o "-h '127.0.0.1' -p 5432 -k '${T}'"
	ephpunit
	edo pg_ctl -w -D "${db}" stop
	edo kill "$(<"${T}/redis-6379.pid")"
}

Inherited Eclasses

edo

Dependencies

RDEPEND

dev-php/psr-log

BDEPEND

test? ( 
		dev-db/redis
		dev-php/doctrine-dbal
		dev-php/doctrine-deprecations
		dev-php/predis
		dev-php/symfony-phpunit-bridge
		dev-php/symfony-serializer
		dev-php/relay )