commit:     089bd1485bbe8134b801188c4b3c79972b958bfa
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Fri Apr 14 21:08:36 2023 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Fri Apr 14 21:08:36 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=089bd148

gui-apps/tessen: add 2.2.1-r1

Restrict tests due to missing dependency

Closes: https://bugs.gentoo.org/904303
Signed-off-by: Julien Roy <julien <AT> jroy.ca>

 gui-apps/tessen/metadata.xml           |  7 -------
 gui-apps/tessen/tessen-2.2.1-r1.ebuild | 37 ++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+), 7 deletions(-)

diff --git a/gui-apps/tessen/metadata.xml b/gui-apps/tessen/metadata.xml
index 82dc1df22..e97e3a8d8 100644
--- a/gui-apps/tessen/metadata.xml
+++ b/gui-apps/tessen/metadata.xml
@@ -14,11 +14,4 @@
                <bugs-to>https://github.com/ayushnix/tessen/issues</bugs-to>
                <remote-id type="github">ayushnix/tessen</remote-id>
        </upstream>
-       <use>
-               <flag name="bemenu">Enable bemenu backend</flag>
-               <flag name="rofi">Enable rofi backend</flag>
-               <flag name="wofi">Enable wofi backend</flag>
-               <flag name="pass">Enable pass support</flag>
-               <flag name="gopass">Enable gopass support</flag>
-       </use>
 </pkgmetadata>

diff --git a/gui-apps/tessen/tessen-2.2.1-r1.ebuild 
b/gui-apps/tessen/tessen-2.2.1-r1.ebuild
new file mode 100644
index 000000000..2ec38b4aa
--- /dev/null
+++ b/gui-apps/tessen/tessen-2.2.1-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit optfeature
+
+DESCRIPTION="an interactive menu to autotype and copy pass and gopass data"
+HOMEPAGE="https://github.com/ayushnix/tessen";
+
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/ayushnix/${PN}.git";
+else
+       SRC_URI="https://github.com/ayushnix/tessen/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+# Requires shfmt (https://github.com/mvdan/sh) which is not packaged
+RESTRICT="test"
+
+DEPEND="app-text/scdoc"
+RDEPEND="${DEPEND}
+       || ( app-admin/pass
+                app-admin/gopass
+       )
+"
+
+pkg_postinst() {
+       optfeature "autotype support" gui-apps/wtype
+       optfeature "clipboard support" gui-apps/wl-clipboard
+       optfeature "URL opening support" x11-misc/xdg-utils
+       optfeature "OTP support" app-admin/pass-otp
+       optfeature "notifications support" x11-libs/libnotify
+}

Reply via email to