diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-18 11:55:01 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-18 11:55:01 +0100 |
commit | 7288c6e5fa05acddbf692a5187d925ef85662b46 (patch) | |
tree | 54bfc06561e59d1ad1e6e7bdbd06b76fc4ba0d06 /sys-auth/oath-toolkit/oath-toolkit-2.6.7-r2.ebuild | |
parent | 5a1fb66df455454109e1de61d38b48f509dc68b8 (diff) |
gentoo auto-resync : 18:04:2023 - 11:55:01
Diffstat (limited to 'sys-auth/oath-toolkit/oath-toolkit-2.6.7-r2.ebuild')
-rw-r--r-- | sys-auth/oath-toolkit/oath-toolkit-2.6.7-r2.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/sys-auth/oath-toolkit/oath-toolkit-2.6.7-r2.ebuild b/sys-auth/oath-toolkit/oath-toolkit-2.6.7-r2.ebuild new file mode 100644 index 000000000000..020037b1bbd1 --- /dev/null +++ b/sys-auth/oath-toolkit/oath-toolkit-2.6.7-r2.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit pam + +DESCRIPTION="Toolkit for using one-time password authentication with HOTP/TOTP algorithms" +HOMEPAGE="https://www.nongnu.org/oath-toolkit/" +SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3 LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ~arm arm64 ~loong ppc64 ~riscv ~x86" +IUSE="pam static-libs test" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-libs/icu:= + dev-libs/libxml2 + <dev-libs/xmlsec-1.3.0:= + pam? ( sys-libs/pam ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-util/gtk-doc-am + test? ( dev-libs/libxml2 ) +" + +PATCHES=( + "${FILESDIR}"/${P}-new-xmlsec-tests.patch +) + +QA_CONFIG_IMPL_DECL_SKIP=( + MIN # glibc fp +) + +src_configure() { + local myeconfargs=( + --enable-pskc + $(use_enable test xmltest) + $(use_enable pam) + $(use_with pam pam-dir $(getpam_mod_dir)) + $(use_enable static-libs static) + ) + + econf "${myeconfargs[@]}" +} + +src_test() { + # Without keep-going, it will bail out after the first testsuite failure, + # skipping the other testsuites. as they are mostly independent, this sucks. + emake --keep-going check + + # Avoid errant QA notice for no tests run on these + rm -f libpskc/gtk-doc/test-suite.log liboath/gtk-doc/test-suite.log || die +} + +src_install() { + default + + find "${ED}" -name '*.la' -type f -delete || die + + if use pam; then + newdoc pam_oath/README README.pam + fi + + doman pskctool/pskctool.1 +} |