commit: 3c21ef9d1ed718b405014f6c0e51e5e092080b73 Author: Julien Roy <julien <AT> jroy <DOT> ca> AuthorDate: Mon Apr 4 23:26:07 2022 +0000 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> CommitDate: Mon Apr 4 23:26:07 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3c21ef9d
Added -9999 and optfeature logs in postinst Signed-off-by: Julien Roy <julien <AT> jroy.ca> gui-apps/tessen/tessen-2.1.2.ebuild | 20 ++++++++++++++++++-- .../{tessen-2.1.2.ebuild => tessen-9999.ebuild} | 20 ++++++++++++++++++-- 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/gui-apps/tessen/tessen-2.1.2.ebuild b/gui-apps/tessen/tessen-2.1.2.ebuild index c0d5cf2f4..825613281 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-2.1.2.ebuild b/gui-apps/tessen/tessen-9999.ebuild similarity index 53% copy from gui-apps/tessen/tessen-2.1.2.ebuild copy to gui-apps/tessen/tessen-9999.ebuild index c0d5cf2f4..825613281 100644 --- a/gui-apps/tessen/tessen-2.1.2.ebuild +++ b/gui-apps/tessen/tessen-9999.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 +}