diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-06-24 14:47:38 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-06-24 14:47:38 +0100 |
commit | b4d43e8c611df4a8061b6f88d9e9f6b1e3c83903 (patch) | |
tree | 911928b566777494d08ebe2c16cb64f15af71901 /x11-wm/herbstluftwm/herbstluftwm-9999.ebuild | |
parent | 61f10f985e19dfe20a4d9552902625edd5b6eabb (diff) |
gentoo resync : 24.06.2021
Diffstat (limited to 'x11-wm/herbstluftwm/herbstluftwm-9999.ebuild')
-rw-r--r-- | x11-wm/herbstluftwm/herbstluftwm-9999.ebuild | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/x11-wm/herbstluftwm/herbstluftwm-9999.ebuild b/x11-wm/herbstluftwm/herbstluftwm-9999.ebuild index f374bfa2fc7a..c167e7f353e2 100644 --- a/x11-wm/herbstluftwm/herbstluftwm-9999.ebuild +++ b/x11-wm/herbstluftwm/herbstluftwm-9999.ebuild @@ -21,10 +21,11 @@ fi LICENSE="BSD-2" SLOT="0" -IUSE="+doc python" +IUSE="+doc python test" +RESTRICT="!test? ( test )" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" -DEPEND=" +COMMON_DEPEND=" media-libs/freetype x11-libs/libX11 x11-libs/libXext @@ -32,8 +33,19 @@ DEPEND=" x11-libs/libXinerama x11-libs/libXrandr " +DEPEND=" + ${COMMON_DEPEND} + test? ( + dev-python/ewmh + dev-python/python-xlib + x11-apps/xsetroot + x11-base/xorg-server[xephyr,xvfb] + x11-misc/xdotool + x11-terms/xterm + ) +" RDEPEND=" - ${DEPEND} + ${COMMON_DEPEND} app-shells/bash python? ( ${PYTHON_DEPS} ) " @@ -111,3 +123,11 @@ src_install() { done fi } + +distutils_enable_tests pytest + +src_test() { + ln -s "${BUILD_DIR}/herbstclient" || die "Could not symlink herbstclient" + ln -s "${BUILD_DIR}/herbstluftwm" || die "Could not symlink herbstluftwm" + python_test +} |