commit: 8cc8f50ff2c99995c6e0b708dc7d6cc00361027b Author: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail <DOT> com> AuthorDate: Sat Jul 19 10:34:43 2025 +0000 Commit: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail <DOT> com> CommitDate: Sat Jul 19 17:21:39 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8cc8f50f
app-crypt/nitrokey-app2: new package, add 2.3.3 Signed-off-by: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail.com> app-crypt/nitrokey-app2/Manifest | 1 + app-crypt/nitrokey-app2/metadata.xml | 23 +++++++++++ app-crypt/nitrokey-app2/nitrokey-app2-2.3.3.ebuild | 48 ++++++++++++++++++++++ 3 files changed, 72 insertions(+) diff --git a/app-crypt/nitrokey-app2/Manifest b/app-crypt/nitrokey-app2/Manifest new file mode 100644 index 0000000000..62560bbec8 --- /dev/null +++ b/app-crypt/nitrokey-app2/Manifest @@ -0,0 +1 @@ +DIST nitrokey-app2-2.3.3.gh.tar.gz 998172 BLAKE2B eb371f9069c29905141017ccbdacfba145223e961aee870c57d4f60364ac1837f0772c56bd0ea34303bc6e2aeccd4803ead11109046d9a6f7d571d27376eadb9 SHA512 c30ac11b50ae6a1a62d55b9731e2c899801abf26d7c7349d14435c9a1ea51fdfc0378e89ec29575fac73eefe43714b187c0f098f702581a4d1d74a377a05b866 diff --git a/app-crypt/nitrokey-app2/metadata.xml b/app-crypt/nitrokey-app2/metadata.xml new file mode 100644 index 0000000000..1ff9579021 --- /dev/null +++ b/app-crypt/nitrokey-app2/metadata.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Mattéo Rossillol‑‑Laruelle</name> + </maintainer> + + <stabilize-allarches/> + + <upstream> + <maintainer status="active"> + <name>Nitrokey</name> + <email>[email protected]</email> + </maintainer> + + <bugs-to>https://github.com/Nitrokey/nitrokey-app2/issues</bugs-to> + + <remote-id type="github">Nitrokey/nitrokey-app2</remote-id> + <remote-id type="pypi">nitrokeyapp</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-crypt/nitrokey-app2/nitrokey-app2-2.3.3.ebuild b/app-crypt/nitrokey-app2/nitrokey-app2-2.3.3.ebuild new file mode 100644 index 0000000000..bef5fae274 --- /dev/null +++ b/app-crypt/nitrokey-app2/nitrokey-app2-2.3.3.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_SINGLE_IMPL=true +DISTUTILS_USE_PEP517=poetry + +PYTHON_COMPAT=( python3_{12..13} ) + +inherit desktop distutils-r1 xdg + +DESCRIPTION="Graphical application to manage and use Nitrokey 3 devices" +HOMEPAGE="https://github.com/Nitrokey/nitrokey-app2 https://pypi.org/project/nitrokeyapp/" +SRC_URI="https://github.com/Nitrokey/nitrokey-app2/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + $(python_gen_cond_dep ' + >=dev-python/nitrokey-0.2.3[${PYTHON_USEDEP}] + <dev-python/nitrokey-0.3.2[${PYTHON_USEDEP}] + >=dev-python/pyside-6.6.0:6=[core,gui,svg,tools,uitools,widgets,${PYTHON_USEDEP}] + >=dev-python/usb-monitor-1.21[${PYTHON_USEDEP}] + ') +" + +src_prepare() { + distutils-r1_src_prepare + + rm nitrokeyapp/VERSION || die + rm nitrokeyapp/ui/i18n/*.ts || die + rm nitrokeyapp/ui/i18n/CMakeLists.txt || die + + rm -r nitrokeyapp/ui/{LICENSES,3RDPARTY.txt} || die +} + +src_install() { + distutils-r1_src_install + + domenu meta/com.nitrokey.nitrokey-app2.desktop + newicon -s scalable meta/nk-app2.svg com.nitrokey.nitrokey-app2.svg + newicon -s 128 meta/nk-app2.png com.nitrokey.nitrokey-app2.png + + insinto /usr/share/metainfo + doins meta/com.nitrokey.nitrokey-app2.metainfo.xml +}
