From a136e5ee3955e5ee7122950dd91bc71e79aa1c1d Mon Sep 17 00:00:00 2001 From: Terin Stock Date: Wed, 26 Nov 2025 00:02:43 +0100 Subject: app-shells/direnv: add 2.37.1, drop 2.34.0-r0 --- app-shells/direnv/Manifest | 4 +-- app-shells/direnv/direnv-2.34.0-r0.ebuild | 48 ------------------------------- app-shells/direnv/direnv-2.37.1.ebuild | 48 +++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 50 deletions(-) delete mode 100644 app-shells/direnv/direnv-2.34.0-r0.ebuild create mode 100644 app-shells/direnv/direnv-2.37.1.ebuild diff --git a/app-shells/direnv/Manifest b/app-shells/direnv/Manifest index aa445e9..8337456 100644 --- a/app-shells/direnv/Manifest +++ b/app-shells/direnv/Manifest @@ -1,2 +1,2 @@ -DIST direnv-2.34.0-vendor.tar.xz 327916 BLAKE2B 40a13b288139a3657189f00d6ac120364f8856a39d7b27c459dca116226fd2ba1800f4318e570a1f2f6e461ffb2038b22988bec60f0fdc5e5c2e6681801a6bfc SHA512 811c236a0470dcc4778ca29f012763dbe1baec5af7b04da43625ba6d0157ee1e58db0472387385e7e67ceddd5398c7021c1cca1f48b8406d8f8f04d928096006 -DIST direnv-2.34.0.tar.gz 94449 BLAKE2B fc040ca3f572f1e2a2a2e7baa04179b471a369219b7286e89c7f3a1dd943a7124b8e559b2512edf5e51aa9464fbc6809cb9855638bfba3d1c4ad608b5e2dff39 SHA512 daf1b1fcb48ede8b7c25e303c5f9e92508ee46c360618560f740b66f82e64f87c4270777de77fe3dd9e6791e51be423e265f3fcd74b41c0b9893221efad65d0a +DIST direnv-2.37.1-vendor.tar.xz 351736 BLAKE2B a025a0c8c61d0b6f8d43bce417eb7a8f8f506bd059107495c731747d57b1642125eb8a914d9171fec2e2a20da7ffbb2602300ad9ce7234392a04cdc7109e2486 SHA512 2b7b7716d383e92e819fa7383e9af9b79e6f66b2c662b8e524924dc630b28e014f327d218cb2c3ebfd6e52a586d60c0c897ae60d6439535c0ed4a9a29c651899 +DIST direnv-2.37.1.tar.gz 102836 BLAKE2B 094eb32f1a3870b100a943929e53353ed9ee396b8190fa0d688e0c24929e4dc1b5df4fff367ae217cbbd29780b3a97970493cab64d3cc0c2490bf717c07a0fe3 SHA512 dbb9e50c4fbe5c9757d5bc39fd9b415c144d0ab02f51f25f6f3d51db4954ae13c400061fd2b3c6175c12a533c5d5b486bedf63cfc43e61c0131d2616c304f959 diff --git a/app-shells/direnv/direnv-2.34.0-r0.ebuild b/app-shells/direnv/direnv-2.34.0-r0.ebuild deleted file mode 100644 index e34d8f7..0000000 --- a/app-shells/direnv/direnv-2.34.0-r0.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit go-module greadme - -DESCRIPTION="Environment variable manager for shell" -HOMEPAGE="https://github.com/direnv/direnv" -SRC_URI="https://github.com/direnv/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" -SRC_URI+=" https://share.terinstock.com/${P}-vendor.tar.xz" - -LICENSE="MIT" -LICENSE+=" BSD" -SLOT="0" -KEYWORDS="~amd64" -RESTRICT="test" # fails - -src_prepare() { - default - sed -i -e "/selfPath, err/cselfPath := \"${EPREFIX}/usr/bin/direnv\"" internal/cmd/cmd_hook.go || die -} - -src_compile() { - emake all - - mkdir shell-init || die - for shell in bash zsh fish elvish pwsh tcsh; do - ./direnv hook ${shell} > shell-init/${shell} || die - done -} - -src_install() { - einstalldocs - emake DESTDIR="${ED}" PREFIX="/usr" install - - insinto "/usr/share/${PN}" - doins -r shell-init - - greadme_stdin <<-EOF - Gentoo installs direnv's shell-init code under - /usr/share/direnv/shell-init/ - Therefore, instead of using, e.g. 'eval \"\$(direnv hook zsh)\"' in - your .zshrc you can put \"source /usr/share/direnv/shell-init/zsh\" - there, which avoids the cost of forking a process. Although direnv - does that a lot anyways. -EOF -} diff --git a/app-shells/direnv/direnv-2.37.1.ebuild b/app-shells/direnv/direnv-2.37.1.ebuild new file mode 100644 index 0000000..e34d8f7 --- /dev/null +++ b/app-shells/direnv/direnv-2.37.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module greadme + +DESCRIPTION="Environment variable manager for shell" +HOMEPAGE="https://github.com/direnv/direnv" +SRC_URI="https://github.com/direnv/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://share.terinstock.com/${P}-vendor.tar.xz" + +LICENSE="MIT" +LICENSE+=" BSD" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="test" # fails + +src_prepare() { + default + sed -i -e "/selfPath, err/cselfPath := \"${EPREFIX}/usr/bin/direnv\"" internal/cmd/cmd_hook.go || die +} + +src_compile() { + emake all + + mkdir shell-init || die + for shell in bash zsh fish elvish pwsh tcsh; do + ./direnv hook ${shell} > shell-init/${shell} || die + done +} + +src_install() { + einstalldocs + emake DESTDIR="${ED}" PREFIX="/usr" install + + insinto "/usr/share/${PN}" + doins -r shell-init + + greadme_stdin <<-EOF + Gentoo installs direnv's shell-init code under + /usr/share/direnv/shell-init/ + Therefore, instead of using, e.g. 'eval \"\$(direnv hook zsh)\"' in + your .zshrc you can put \"source /usr/share/direnv/shell-init/zsh\" + there, which avoids the cost of forking a process. Although direnv + does that a lot anyways. +EOF +} -- cgit v1.2.3