commit:     11e7e99ea634c63e2eb84141537d815f174e5fc5
Author:     Oz N Tiram <oz.tiram <AT> gmail <DOT> com>
AuthorDate: Fri Sep  4 07:46:51 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Sep 29 20:37:13 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11e7e99e

net-ftp/uftpd: fix failing tests

Now that tftp-hpa is split to and client server, one can install
only the client to run the tests.

Package-Manager: Portage-3.0.4, Repoman-2.3.23
Signed-off-by: Oz Tiram <oz.tiram <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-ftp/uftpd/uftpd-2.13.ebuild | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

diff --git a/net-ftp/uftpd/uftpd-2.13.ebuild b/net-ftp/uftpd/uftpd-2.13.ebuild
index fc850368530..d2c9e2b701b 100644
--- a/net-ftp/uftpd/uftpd-2.13.ebuild
+++ b/net-ftp/uftpd/uftpd-2.13.ebuild
@@ -9,14 +9,26 @@ 
SRC_URI="https://github.com/troglobit/${PN}/releases/download/v${PV}/${P}.tar.xz
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
 
-DEPEND="
+RDEPEND="
        >=dev-libs/libite-1.5
        >=dev-libs/libuev-2.2"
 
-RDEPEND="
-       ${DEPEND}
+DEPEND="
+       ${RDEPEND}
        !net-misc/uftp
-       !net-ftp/atftp"
+       !net-ftp/atftp
+       !net-ftp/tftp-hpa[server]
+       test? (
+               net-ftp/ftp
+               net-ftp/tnftp
+               net-ftp/tftp-hpa[client]
+       )"
+
+src_test() {
+       # can't run the tests in parallel since the order matters
+       emake -j 1 check
+}

Reply via email to