From 3c21ef9d1ed718b405014f6c0e51e5e092080b73 Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Mon, 4 Apr 2022 19:26:07 -0400 Subject: [PATCH] Added -9999 and optfeature logs in postinst Signed-off-by: Julien Roy --- gui-apps/tessen/tessen-2.1.2.ebuild | 20 ++++++++++++-- gui-apps/tessen/tessen-9999.ebuild | 42 +++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 gui-apps/tessen/tessen-9999.ebuild diff --git a/gui-apps/tessen/tessen-2.1.2.ebuild b/gui-apps/tessen/tessen-2.1.2.ebuild index c0d5cf2f4d..8256132813 100644 --- a/gui-apps/tessen/tessen-2.1.2.ebuild +++ b/gui-apps/tessen/tessen-2.1.2.ebuild @@ -3,13 +3,21 @@ EAPI=8 +inherit optfeature + DESCRIPTION="an interactive menu to autotype and copy pass and gopass data" HOMEPAGE="https://github.com/ayushnix/tessen" -SRC_URI="https://github.com/ayushnix/tessen/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +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" -KEYWORDS="~amd64" IUSE="+pass gopass dmenu bemenu wofi rofi" REQUIRED_USE="|| ( pass gopass ) @@ -24,3 +32,11 @@ RDEPEND="${DEPEND} pass? ( app-admin/pass ) gopass? ( app-admin/gopass )" BDEPEND="" + +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 +} diff --git a/gui-apps/tessen/tessen-9999.ebuild b/gui-apps/tessen/tessen-9999.ebuild new file mode 100644 index 0000000000..8256132813 --- /dev/null +++ b/gui-apps/tessen/tessen-9999.ebuild @@ -0,0 +1,42 @@ +# Copyright 2022 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" +IUSE="+pass gopass dmenu bemenu wofi rofi" + +REQUIRED_USE="|| ( pass gopass ) + || ( dmenu bemenu wofi rofi )" + +DEPEND="" +RDEPEND="${DEPEND} + dmenu? ( x11-misc/dmenu ) + bemenu? ( dev-libs/bemenu ) + wofi? ( gui-apps/wofi ) + rofi? ( x11-misc/rofi ) + pass? ( app-admin/pass ) + gopass? ( app-admin/gopass )" +BDEPEND="" + +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 +}