commit:     ed112f05668eecfd0064ab564684ad89bf14bc3b
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Tue Feb  1 01:00:00 2022 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Tue Feb  1 18:10:31 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed112f05

net-libs/neon: Enable test suite

Closes: https://bugs.gentoo.org/691702
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org>
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>

 net-libs/neon/neon-0.32.2.ebuild | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/net-libs/neon/neon-0.32.2.ebuild b/net-libs/neon/neon-0.32.2.ebuild
index 0f096d2be00d..58382270c67f 100644
--- a/net-libs/neon/neon-0.32.2.ebuild
+++ b/net-libs/neon/neon-0.32.2.ebuild
@@ -12,10 +12,16 @@ SRC_URI="https://notroj.github.io/neon/${P}.tar.gz";
 LICENSE="GPL-2"
 SLOT="0/27"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="doc +expat gnutls kerberos libproxy nls pkcs11 ssl static-libs zlib"
-RESTRICT="test"
-
-BDEPEND="virtual/pkgconfig"
+IUSE="doc +expat gnutls kerberos libproxy nls pkcs11 ssl static-libs test zlib"
+RESTRICT="!test? ( test )"
+
+BDEPEND="virtual/pkgconfig
+       test? (
+               ssl? (
+                       dev-libs/openssl:0
+                       pkcs11? ( dev-libs/nss )
+               )
+       )"
 DEPEND="expat? ( dev-libs/expat:0=[${MULTILIB_USEDEP}] )
        !expat? ( dev-libs/libxml2:2=[${MULTILIB_USEDEP}] )
        kerberos? ( virtual/krb5:0=[${MULTILIB_USEDEP}] )
@@ -39,6 +45,12 @@ MULTILIB_CHOST_TOOLS=(
 DOCS=( AUTHORS BUGS NEWS README.md THANKS TODO )
 
 src_prepare() {
+       if use gnutls; then
+               # Ignore failure of test pkcs11.
+               # https://github.com/notroj/neon/issues/72
+               sed -e "s/T(pkcs11)/T_XFAIL(pkcs11)/" -i test/ssl.c || die
+       fi
+
        eapply_user
 
        AT_M4DIR="macros" eautoreconf

Reply via email to