diff options
Diffstat (limited to 'sys-auth/authenticator/authenticator-9999.ebuild')
-rw-r--r-- | sys-auth/authenticator/authenticator-9999.ebuild | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/sys-auth/authenticator/authenticator-9999.ebuild b/sys-auth/authenticator/authenticator-9999.ebuild deleted file mode 100644 index cd26304aacfc..000000000000 --- a/sys-auth/authenticator/authenticator-9999.ebuild +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python3_7 ) -inherit gnome2-utils meson python-single-r1 virtualx xdg-utils - -DESCRIPTION="Two-factor authentication code generator for GNOME" -HOMEPAGE="https://gitlab.gnome.org/World/Authenticator" - -if [[ ${PV} == *9999 ]]; then - inherit git-r3 - SRC_URI="" - EGIT_REPO_URI="https://gitlab.gnome.org/World/Authenticator" -else - SRC_URI="https://gitlab.gnome.org/World/Authenticator/-/archive/${PV}/Authenticator-${PV}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/Authenticator-${PV}" - KEYWORDS="~amd64 ~x86" -fi - -LICENSE="GPL-2+" -SLOT="0" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" -IUSE="test" -RESTRICT="!test? ( test )" -RDEPEND=" - ${PYTHON_DEPS} - app-crypt/libsecret - $(python_gen_cond_dep ' - dev-python/pillow[${PYTHON_MULTI_USEDEP}] - dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] - dev-python/pyotp[${PYTHON_MULTI_USEDEP}] - dev-python/python-gnupg[${PYTHON_MULTI_USEDEP}] - dev-python/pyzbar[${PYTHON_MULTI_USEDEP}] - ') - media-libs/gd - x11-libs/gtk+:3 -" -DEPEND="${RDEPEND} - test? ( x11-apps/xhost )" - -src_prepare() { - default - - sed -i -e "1s:#!/usr/bin/env python3:#!${PYTHON}:" "authenticator.py.in" || die "Could not fix shebang." - - rm -r "subprojects/libgd" || die "Could not remove the subproject libgd folder." -} - -pkg_preinst() { - gnome2_icon_savelist - gnome2_schemas_savelist -} - -src_test() { - xdg_environment_reset - virtx meson_src_test -} - -pkg_postinst() { - gnome2_icon_cache_update - gnome2_schemas_update -} - -pkg_postrm() { - gnome2_icon_cache_update - gnome2_schemas_update -} |