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

Search

Install

Install this version:

emerge -a =app-crypt/cotp-1.9.10

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

autounmask =app-crypt/cotp-1.9.10

Or alternatively:

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

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.9.10 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/huaji2369/ebuild-crate-dist-replydev-cotp/releases/download/v${PV}/${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.9.10

Type File Size Source URLs
DIST cotp-1.9.10-crates.tar.xz 22380876 bytes https://github.com/huaji2369/ebuild-crate-dist-replydev-cotp/releases/download/v1.9.10/cotp-1.9.10-crates.tar.xz
DIST cotp-1.9.10.tar.gz 2284576 bytes https://github.com/replydev/cotp/archive/refs/tags/v1.9.10.tar.gz