commit:     243beb1a3226a2edd4517da7807045fd2d59c429
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 15 15:03:18 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Mon Dec 15 15:26:49 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=243beb1a

app-admin/gopass: add 1.16.1

Closes: https://bugs.gentoo.org/891219
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-admin/gopass/Manifest             |  2 ++
 app-admin/gopass/gopass-1.16.1.ebuild | 62 +++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/app-admin/gopass/Manifest b/app-admin/gopass/Manifest
index b7f7044fe5b5..242874abdd9b 100644
--- a/app-admin/gopass/Manifest
+++ b/app-admin/gopass/Manifest
@@ -1,2 +1,4 @@
 DIST gopass-1.15.15-deps.tar.xz 132123176 BLAKE2B 
9ae5d2fe422162cedfa2b0e031885efe8f2fdc03de4d9d8698033554bbbb99eb7602834f7f1e107677b054264151cf62f8ff8349713e49e55d2489c2275d47d6
 SHA512 
33d0d60e9f020edccffd8c2bb71d2f038dd0d5ddca012a19ab47a4efc172660ae13d77283bc2103cf7466353d52a461a15b84309f1e1781ecd00b35db4bb5b25
 DIST gopass-1.15.15.tar.gz 2335086 BLAKE2B 
a871decc50024cee032ed2d494da05ea6443de500138a0067120fd070c7797e03e81676edbeb71301a503a13644cc1878c702ffa72a970a835f59543941b75b0
 SHA512 
f5949d0e21ce7e9de9ae8d89e2371ed4fe0c2ffbb112f9529b8e6361a327c2692e1355b50f8f962c333e2ce397ba024b5ac90b4239851905c67baf3e363b1737
+DIST gopass-1.16.1-vendor.tar.xz 3518212 BLAKE2B 
de90973473f376e21d4f58b78bab9802827d32c0eee842d4ebf8b01d6b627018c384d3f9b024711b30b0d1fe445423985a1c7531146b949c6204e45553f2d370
 SHA512 
a3d84a1866bfb39c64480756460ba3da0804aad0d22c4560b6bf1ac37dd6a6e7f8eb13e323bbe68ad1b808a4d5d689239dce589f95cee2545f48d2b889637dba
+DIST gopass-1.16.1.tar.gz 2932178 BLAKE2B 
6a9ddbae78977f11056549bcbcdea79dfe01dcb035068fd0095b475612a552315086c97c8d298f30d76e5e8fcc8738bcca2d3a270fea76189a29f2c1117971d1
 SHA512 
d3bcbc3b2dea57a0a876dd873fee07a8452a3a9b877c8328dac94ba0e9c6fce23b4116a2758c1e66b8cd17ce8305b9521a9900d83b2a508e4c464467f4b61aec

diff --git a/app-admin/gopass/gopass-1.16.1.ebuild 
b/app-admin/gopass/gopass-1.16.1.ebuild
new file mode 100644
index 000000000000..9383ab72329c
--- /dev/null
+++ b/app-admin/gopass/gopass-1.16.1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module optfeature
+
+DESCRIPTION="a simple but powerful password manager for the terminal"
+HOMEPAGE="https://www.gopass.pw/";
+SRC_URI="https://github.com/gopasspw/gopass/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+SRC_URI+=" 
https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-vendor.tar.xz";
+
+LICENSE="MIT"
+# Dependent licenses
+LICENSE+=" Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+
+RDEPEND="
+       dev-vcs/git
+       >=app-crypt/gnupg-2
+"
+BDEPEND="
+       >=dev-lang/go-1.24.1
+       sys-apps/which
+"
+
+src_prepare() {
+       default
+
+       # remove stripping from Makefile
+       sed -e '/ldflags/s/-s //g' -i Makefile || die
+
+       # Broken on dates other than 2023-01-07
+       sed -e 's/TestHTML/_&/' -i internal/audit/output_test.go || die
+       # Trying to use gpg-agent fails in Portage tests
+       sed -e 's/TestCloneCheckDecryptionKeys/_&/' -i 
internal/action/clone_test.go || die
+       # Broken with portage env vars
+       sed -e 's/TestEnvVarsInDocs/_&/' -i internal/config/docs_test.go || die
+       # Flaky test (bug #891219)
+       sed -e 's/TestSet/_&/' -i internal/store/leaf/write_test.go || die
+}
+
+src_test() {
+       # 
https://github.com/gopasspw/gopass/blob/v1.15.3/.github/workflows/build.yml#L38
+       git config --global user.name nobody || die
+       git config --global user.email [email protected] || die
+
+       default
+}
+
+src_install() {
+       emake install DESTDIR="${ED}/usr"
+       einstalldocs
+}
+
+pkg_postinst() {
+       optfeature "browser integration" app-admin/gopass-jsonapi
+       optfeature "git credentials helper" app-admin/git-credential-gopass
+       optfeature "haveibeenpwnd.com integration" app-admin/gopass-hibp
+       optfeature "summon secrets helper" app-admin/gopass-summon-provider
+}

Reply via email to