aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-portage/puppy/puppy-9999.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/app-portage/puppy/puppy-9999.ebuild b/app-portage/puppy/puppy-9999.ebuild
index e3f8e69..3031320 100644
--- a/app-portage/puppy/puppy-9999.ebuild
+++ b/app-portage/puppy/puppy-9999.ebuild
@@ -12,6 +12,7 @@ HOMEPAGE="https://gitlab.com/doasu/puppy"
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://gitlab.com/doasu/${PN}.git"
+ EGIT_BRANCH="unittest"
inherit git-r3
else
SRC_URI="https://gitlab.com/doasu/${PN}/-/archive/${PV}/${P}.tar.bz2"
@@ -20,18 +21,25 @@ fi
LICENSE="AGPL-3"
SLOT="0"
-IUSE="+client +server"
+IUSE="+client +server test"
REQUIRED_USE="
|| ( client server )
${PYTHON_REQUIRED_USE}
"
+RESTRICT="!test? ( test )"
RDEPEND="
sys-apps/portage
${PYTHON_DEPS}
+
+ test? ( dev-python/unittest-or-fail[${PYTHON_SINGLE_USEDEP}] )
"
DEPEND="${RDEPEND}"
+src_test() {
+ eunittest
+}
+
src_install() {
python_domodule _common.py
python_domodule _request.py