summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2022-02-01 01:00:00 +0000
committerJakov Smolić <jsmolic@gentoo.org>2022-02-01 19:10:31 +0100
commited112f05668eecfd0064ab564684ad89bf14bc3b (patch)
tree29d6a93a272ce0dd9a880af4756fef45871f66e7 /net-libs/neon
parentnet-libs/neon: Enable "expat" USE flag by default (diff)
downloadgentoo-ed112f05668eecfd0064ab564684ad89bf14bc3b.tar.gz
gentoo-ed112f05668eecfd0064ab564684ad89bf14bc3b.tar.bz2
gentoo-ed112f05668eecfd0064ab564684ad89bf14bc3b.zip
net-libs/neon: Enable test suite
Closes: https://bugs.gentoo.org/691702 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'net-libs/neon')
-rw-r--r--net-libs/neon/neon-0.32.2.ebuild20
1 files 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