app-crypt/cotp - 1.10.0 (gentoo-zh)

Search

Install

Install this version:

emerge -a =app-crypt/cotp-1.10.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-crypt/cotp-1.10.0

Or alternatively:

emerge --autounmask-write -a =app-crypt/cotp-1.10.0

Package Information

Description:
command-line TOTP/HOTP authenticator app
Homepage:
https://github.com/replydev/cotp
License:
GPL-3 Apache-2.0 BSD-2 BSD Boost-1.0 ISC MIT MPL-2.0 Unicode-3.0 Unicode-DFS-2016 WTFPL-2 ZLIB

Ebuild Details

Version EAPI Keywords Slot
1.10.0 8 ~amd64 ~arm64 0
View Raw Ebuild
EAPI=8

CRATES=""
RUST_MIN_VER="1.88.0"

inherit cargo

DESCRIPTION="command-line TOTP/HOTP authenticator app"
HOMEPAGE="https://github.com/replydev/cotp"

if [[ ${PV} == 9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/replydev/cotp.git"
else
	SRC_URI="
		https://github.com/replydev/cotp/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
		https://github.com/gentoo-zh/gentoo-deps/releases/download/${P}/${P}-crates.tar.xz
		${CARGO_CRATE_URIS}
	"
	KEYWORDS="~amd64 ~arm64"
fi
LICENSE="GPL-3"
# Dependent crate licenses
LICENSE+="
	Apache-2.0
	BSD-2
	BSD
	Boost-1.0
	ISC
	MIT
	MPL-2.0
	Unicode-3.0
	Unicode-DFS-2016
	WTFPL-2
	ZLIB
"
SLOT="0"
IUSE="converter"
RDEPEND="
	x11-libs/libxcb
	x11-libs/libxkbcommon
"
DEPEND="${RDEPEND}"

src_unpack() {
	if [[ ${PV} == 9999 ]]; then
		git-r3_src_unpack
		cargo_live_src_unpack
	else
		cargo_src_unpack
	fi
}

src_install() {
	cargo_src_install
	use converter && (
		insinto "/usr/share/${P}/converters/"
		doins -r converters/
	)
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-crypt/cotp | euse -E <flag> -p app-crypt/cotp | euse -D <flag> -p app-crypt/cotp

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	x11-libs/libxcb
	x11-libs/libxkbcommon

RDEPEND

	x11-libs/libxcb
	x11-libs/libxkbcommon

Manifest for 1.10.0

Type File Size Source URLs
DIST cotp-1.10.0-crates.tar.xz 22202664 bytes https://github.com/gentoo-zh/gentoo-deps/releases/download/cotp-1.10.0/cotp-1.10.0-crates.tar.xz
DIST cotp-1.10.0.tar.gz 2289456 bytes https://github.com/replydev/cotp/archive/refs/tags/v1.10.0.tar.gz