1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit pam eutils autotools
7 DESCRIPTION="Toolkit for using one-time password authentication with HOTP/TOTP algorithms"
8 HOMEPAGE="http://www.nongnu.org/oath-toolkit/"
9 SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz"
10 LICENSE="GPL-3 LGPL-2.1"
13 KEYWORDS="~amd64 ~x86"
15 RESTRICT="!test? ( test )"
19 pskc? ( dev-libs/xmlsec )"
21 test? ( dev-libs/libxml2 )
25 # These tests need git/cvs and don't reflect anything in the final app
27 -e '/TESTS/s,test-vc-list-files-(git|cvs).sh,,g' \
29 # disable portability warnings, caused by gtk-doc.make
31 -e '/AM_INIT_AUTOMAKE/ s:-Wall:\0 -Wno-portability:' \
32 {liboath,libpskc}/configure.ac
39 $(use_enable test xmltest ) \
41 $(use_with pam pam-dir $(getpam_mod_dir)) \
48 newdoc pam_oath/README README.pam
51 doman pskctool/pskctool.1
56 # without keep-going, it will bail out after the first testsuite failure,
57 # skipping the other testsuites. as they are mostly independant, this sucks.
58 emake --keep-going check
59 [ $? -ne 0 ] && die "At least one testsuite failed"