commit:     f639e5bfbbd2eae0a5eed22e4af32287bc57f039
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  4 20:55:44 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Sep  4 20:56:31 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f639e5bf

net-libs/tox: minor style changes

Package-Manager: Portage-3.0.4, Repoman-2.3.23
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-libs/tox/tox-0.2.12.ebuild | 11 ++++++++---
 net-libs/tox/tox-9999.ebuild   | 14 +++++++++-----
 2 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/net-libs/tox/tox-0.2.12.ebuild b/net-libs/tox/tox-0.2.12.ebuild
index 3723ccda4d6..76511a2fe70 100644
--- a/net-libs/tox/tox-0.2.12.ebuild
+++ b/net-libs/tox/tox-0.2.12.ebuild
@@ -38,7 +38,9 @@ S="${WORKDIR}/${MY_P}"
 
 src_prepare() {
        cmake_src_prepare
-       #remove faulty tests
+
+       # Remove faulty tests
+       local testname=
        for testname in lan_discovery save_compatibility; do
                sed -i -e "/^auto_test(${testname})$/d" CMakeLists.txt || die
        done
@@ -53,11 +55,14 @@ src_configure() {
                -DDHT_BOOTSTRAP=$(usex dht-node)
                -DENABLE_SHARED=ON
                -DENABLE_STATIC=$(usex static-libs)
-               -DMUST_BUILD_TOXAV=$(usex av))
+               -DMUST_BUILD_TOXAV=$(usex av)
+       )
+
        if use test; then
                mycmakeargs+=(
                        -DTEST_TIMEOUT_SECONDS=120
-                       -DUSE_IPV6=$(usex ipv6))
+                       -DUSE_IPV6=$(usex ipv6)
+               )
        else
                mycmakeargs+=(-DUSE_IPV6=OFF)
        fi

diff --git a/net-libs/tox/tox-9999.ebuild b/net-libs/tox/tox-9999.ebuild
index 23e322bf207..6e0181ca0d8 100644
--- a/net-libs/tox/tox-9999.ebuild
+++ b/net-libs/tox/tox-9999.ebuild
@@ -35,8 +35,10 @@ RDEPEND="
 
 src_prepare() {
        cmake_src_prepare
-       #remove faulty tests
+
+       # Remove faulty tests
        local faultytest=(lan_discovery save_compatibility)
+       local testname=
        for testname in "${faultytest[@]}"; do
                sed -i -e "/^auto_test(${testname})$/d" CMakeLists.txt || die
        done
@@ -51,14 +53,16 @@ src_configure() {
                -DDHT_BOOTSTRAP=$(usex dht-node)
                -DENABLE_SHARED=ON
                -DENABLE_STATIC=$(usex static-libs)
-               -DMUST_BUILD_TOXAV=$(usex av))
+               -DMUST_BUILD_TOXAV=$(usex av)
+       )
+
        if use test; then
                mycmakeargs+=(
                        -DTEST_TIMEOUT_SECONDS=120
-                       -DUSE_IPV6=$(usex ipv6))
+                       -DUSE_IPV6=$(usex ipv6)
+               )
        else
-               mycmakeargs+=(
-                       -DUSE_IPV6=OFF)
+               mycmakeargs+=(-DUSE_IPV6=OFF)
        fi
 
        if use log-trace; then

Reply via email to