dev-python/aiohttp-socks: Create 3proxy symlink cond. to USE=test
authorMichał Górny <mgorny@gentoo.org>
Fri, 2 Aug 2019 02:35:31 +0000 (04:35 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 2 Aug 2019 02:35:47 +0000 (04:35 +0200)
Closes: https://bugs.gentoo.org/691266
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/aiohttp-socks/aiohttp-socks-0.2.2.ebuild

index 074589380ff7d83c9bc5cb7c69ee47564b65d124..9b27fc1c0416aa970da9fe708c664fe7449394a2 100644 (file)
@@ -29,7 +29,9 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
 
 python_configure_all() {
        rm tests/3proxy/bin/*/* || die
-       ln -s "$(type -P 3proxy)" tests/3proxy/bin/linux/ || die
+       if use test; then
+               ln -s "$(type -P 3proxy)" tests/3proxy/bin/linux/ || die
+       fi
 }
 
 python_test() {