This commit is contained in:
blshkv 2021-01-18 16:44:09 +08:00
parent c0d57ae077
commit 43debc0657
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
4 changed files with 6 additions and 79 deletions

View file

@ -1,2 +1 @@
DIST yubioath-desktop-5.0.3.tar.gz 5823662 BLAKE2B f8ba37f3fe29f3cfff5d80ed994c2ed789043f5e414786a1b4a9867f3ab8879eb3e22343fac95480e1e953728869901b69cf270b9f6a809aee91c684ea6f3542 SHA512 f99fd8882c19dd153aa5179c01c8a45bc5d33816dabc4fe1322508214a80698801796be1d390ddd9e30cc981282d6c62c5be6fdc48a5ac4767475c055a062447
DIST yubioath-desktop-5.0.4.tar.gz 5657338 BLAKE2B 7fc3ebbd371c3342b0b6c01b795bcb673bafcc9f2228bbc3d4f644962177f5e3c321b88be20cd1de15d385a8cb8908b185648207483845bab39fedd59f31a406 SHA512 a10c7f4fb137683183ed5aaca0e996193686857edc2a6a2b86e7bc4257971a747b48aa19cfd72162ea9557d375d080bae0ed26bdfa33c07ed60f8b67572f10a3

View file

@ -1,72 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7} )
inherit eutils desktop python-single-r1 qmake-utils xdg-utils
DESCRIPTION="Library and tool for personalization of Yubico's YubiKey NEO"
HOMEPAGE="https://developers.yubico.com/yubioath-desktop/ https://github.com/Yubico/yubioath-desktop"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/Yubico/yubioath-desktop"
else
SRC_URI="https://github.com/Yubico/yubioath-desktop/archive/${P}.tar.gz"
KEYWORDS="~amd64"
S="${WORKDIR}/${PN}-${P}"
fi
SLOT="0"
LICENSE="BSD-2"
DEPEND="
dev-qt/qtcore:5
dev-qt/qtquickcontrols2:5
dev-qt/qtdeclarative:5
dev-qt/qtwidgets:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
x11-libs/libdrm"
RDEPEND="${DEPEND}
$(python_gen_cond_dep '>=app-crypt/yubikey-manager-2.1.1[${PYTHON_MULTI_USEDEP}]')
dev-python/pyotherside[${PYTHON_SINGLE_USEDEP}]"
pkg_setup() {
python-single-r1_pkg_setup
}
src_prepare() {
sed -i \
-e "s:python build_qrc.py:${PYTHON} build_qrc.py:" \
$(qmake-utils_find_pro_file) || die
python_fix_shebang "${S}"
default
}
src_configure() {
eqmake5 $(qmake-utils_find_pro_file)
}
src_install() {
emake INSTALL_ROOT="${D}" install
domenu resources/com.yubico.yubioath.desktop
doicon resources/icons/com.yubico.yubioath.png
doicon -s scalable resources/icons/com.yubico.yubioath.svg
}
pkg_postinst() {
xdg_icon_cache_update
xdg_desktop_database_update
}
pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
}

View file

@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7} )
PYTHON_COMPAT=( python3_{7..8} )
inherit eutils desktop python-single-r1 qmake-utils xdg-utils
@ -43,14 +43,14 @@ pkg_setup() {
src_prepare() {
sed -i \
-e "s:python build_qrc.py:${PYTHON} build_qrc.py:" \
$(qmake-utils_find_pro_file) || die
yubioath-desktop.pro || die
python_fix_shebang "${S}"
default
}
src_configure() {
eqmake5 $(qmake-utils_find_pro_file)
eqmake5 yubioath-desktop.pro
}
src_install() {

View file

@ -42,9 +42,9 @@ DEPEND="${RDEPEND}
src_prepare() {
default
sed -e "s|^QMAKE_CXXFLAGS_RELEASE += -O3 -ggdb||" \
-i $(qmake-utils_find_pro_file) || die
-i guymager.pro || die
lrelease $(qmake-utils_find_pro_file)
lrelease guymager.pro
}
src_configure() {