forked from calculate/calculate-overlay
parent
26b393b63d
commit
d177c814f5
@ -0,0 +1 @@
|
||||
DIST dbus-test-runner-19.04.0.tar.gz 444289 BLAKE2B dc3b11c8d376103b320d98d211bf1ace035a2de5a1caceadd946bfdc46a6aab3fcf69fae15c7142500b9487a9832275a6157f887c8efcbbb56d13c8841609dd0 SHA512 5906225f0ce429ea218d7eb4c67281b7ef368d6a173965b214f4f4501e729002ca3293a94fd8afd3002f301cd1f2208cba01c733f678c2d51661220e8a7ce971
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_7 )
|
||||
inherit flag-o-matic python-single-r1
|
||||
|
||||
DESCRIPTION="Run executables under a new DBus session for testing"
|
||||
HOMEPAGE="https://launchpad.net/dbus-test-runner"
|
||||
SRC_URI="https://launchpad.net/${PN}/$(ver_cut 1-2)/${PV}/+download/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 sparc x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# now optional:
|
||||
# test? ( dev-util/bustle )
|
||||
BDEPEND="
|
||||
dev-util/gdbus-codegen
|
||||
dev-util/intltool
|
||||
"
|
||||
COMMON_DEPEND="${PYTHON_DEPS}
|
||||
dev-libs/dbus-glib
|
||||
dev-libs/glib:2
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
test? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/dbusmock[${PYTHON_MULTI_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/dbusmock[${PYTHON_MULTI_USEDEP}]
|
||||
')
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# bind to specific Python version (with dbusmock installed)
|
||||
sed -i -e "s:python3:${EPYTHON}:" \
|
||||
libdbustest/dbus-mock.c tests/test-libdbustest-mock.c || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --disable-static
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -type f -delete || die
|
||||
}
|
Loading…
Reference in new issue