app-backup/buttersink: dev-python/flake8 only required for tests
authorautomorphism88 <adebeus@gmail.com>
Sun, 28 May 2017 01:04:48 +0000 (18:04 -0700)
committerMichał Górny <mgorny@gentoo.org>
Sun, 4 Jun 2017 17:20:47 +0000 (19:20 +0200)
Closes: https://github.com/gentoo/gentoo/pull/4783

app-backup/buttersink/buttersink-0.6.8.ebuild
app-backup/buttersink/buttersink-9999.ebuild

index 44802d17a6e96c7f0cb42dea3ec6e9f1adb5dd2f..998f4d7a31d82737458fb33c1b4c888def3f9752 100644 (file)
@@ -11,6 +11,7 @@ HOMEPAGE="https://github.com/AmesCornish/buttersink"
 
 LICENSE="GPL-3"
 SLOT=0
+IUSE="test"
 
 # local tests would require root and cause sandbox issues with btrfs subvolume
 # operations, and network tests would require an SSH server with root login to
@@ -30,10 +31,10 @@ fi
 RDEPEND="${PYTHON_DEPS}
        dev-python/boto[${PYTHON_USEDEP}]
        dev-python/crcmod[${PYTHON_USEDEP}]
-       dev-python/flake8[${PYTHON_USEDEP}]
        dev-python/psutil[${PYTHON_USEDEP}]
        sys-fs/btrfs-progs"
-DEPEND="${RDEPEND}"
+DEPEND="${RDEPEND}
+       test? ( dev-python/flake8[${PYTHON_USEDEP}] )"
 
 python_prepare_all() {
        if [[ ${PV} == 9999 ]] ; then
index 44802d17a6e96c7f0cb42dea3ec6e9f1adb5dd2f..998f4d7a31d82737458fb33c1b4c888def3f9752 100644 (file)
@@ -11,6 +11,7 @@ HOMEPAGE="https://github.com/AmesCornish/buttersink"
 
 LICENSE="GPL-3"
 SLOT=0
+IUSE="test"
 
 # local tests would require root and cause sandbox issues with btrfs subvolume
 # operations, and network tests would require an SSH server with root login to
@@ -30,10 +31,10 @@ fi
 RDEPEND="${PYTHON_DEPS}
        dev-python/boto[${PYTHON_USEDEP}]
        dev-python/crcmod[${PYTHON_USEDEP}]
-       dev-python/flake8[${PYTHON_USEDEP}]
        dev-python/psutil[${PYTHON_USEDEP}]
        sys-fs/btrfs-progs"
-DEPEND="${RDEPEND}"
+DEPEND="${RDEPEND}
+       test? ( dev-python/flake8[${PYTHON_USEDEP}] )"
 
 python_prepare_all() {
        if [[ ${PV} == 9999 ]] ; then