summaryrefslogtreecommitdiff
path: root/dev-util/mise
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/mise')
-rw-r--r--dev-util/mise/Manifest2
-rw-r--r--dev-util/mise/files/config.toml2
-rw-r--r--dev-util/mise/files/mise-self-update-instructions.toml1
-rw-r--r--dev-util/mise/mise-2026.2.19.ebuild63
4 files changed, 68 insertions, 0 deletions
diff --git a/dev-util/mise/Manifest b/dev-util/mise/Manifest
new file mode 100644
index 0000000..5ef9d32
--- /dev/null
+++ b/dev-util/mise/Manifest
@@ -0,0 +1,2 @@
+DIST mise-2026.2.19-vendor.tar.xz 92759108 BLAKE2B ad7631a0fb161b2586663e33cff9c737f1101cceaf145ae65a754ae23b214215524e853b3bdf6e30ccda6a5e84d31f799d4623121ed7ef7c700fd71a9137b08b SHA512 61ca74cdb92f96ef2154334db6ead8ff1bfbf50fadfc2c7a9f3cd9a1d91ae0547bd7f3e0cf4bb47f4ff648c244cbaa7473b45a202e118b1e92b3d5fe1651b1a9
+DIST mise-2026.2.19.tar.gz 6378769 BLAKE2B fb486b00e113a1ec395624006dad901a6ec1e5539e7bcfba83c20adea8e051f7ceae33168ec4e1425080c7ab82944b4d9f599a70fb121bde6834cf24d290d4da SHA512 265e28f28199f187daebf522235ca94f995ca60ac90b8623d66ebe34f09200aa758df2c8a46f06bcd7627897bfa0cfae5e075b2013ce3b20b5aca50ee4d9e66a
diff --git a/dev-util/mise/files/config.toml b/dev-util/mise/files/config.toml
new file mode 100644
index 0000000..df71758
--- /dev/null
+++ b/dev-util/mise/files/config.toml
@@ -0,0 +1,2 @@
+[settings]
+paranoid = true
diff --git a/dev-util/mise/files/mise-self-update-instructions.toml b/dev-util/mise/files/mise-self-update-instructions.toml
new file mode 100644
index 0000000..40be02b
--- /dev/null
+++ b/dev-util/mise/files/mise-self-update-instructions.toml
@@ -0,0 +1 @@
+message = "To update mise from GURU overlay, run:\n\n\tsudo emerge --sync && sudo emerge -au dev-util/mise\n"
diff --git a/dev-util/mise/mise-2026.2.19.ebuild b/dev-util/mise/mise-2026.2.19.ebuild
new file mode 100644
index 0000000..63cd62a
--- /dev/null
+++ b/dev-util/mise/mise-2026.2.19.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES=" "
+RUST_MIN_VER="1.89.0"
+inherit cargo greadme
+
+DESCRIPTION="The front-end to your dev env"
+HOMEPAGE="https://mise.jdx.dev"
+SRC_URI="https://github.com/jdx/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://share.terinstock.com/${P}-vendor.tar.xz "
+
+LICENSE="MIT"
+# Dependent crate licenses
+LICENSE+="
+ Apache-2.0 BSD-2 BSD CDLA-Permissive-2.0 ISC MIT MPL-2.0 openssl
+ Unicode-3.0 ZLIB BZIP2
+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-libs/openssl:=
+"
+DEPEND="${RDEPEND}"
+
+src_compile() {
+ cargo_src_compile
+
+ mkdir shell-init || die
+ local -x PATH="$(cargo_target_dir):${PATH}"
+ for shell in bash zsh fish elvish pwsh; do
+ mise activate ${shell} > "shell-init/${shell}" || die
+ done
+}
+
+src_install() {
+ cargo_src_install
+
+ doman man/man1/mise.1
+
+ # Disable self-update functionality
+ insinto /usr/lib/mise
+ doins "${FILESDIR}"/mise-self-update-instructions.toml
+
+ # Enable paranoid mode system-wide
+ insinto /etc/mise
+ doins "${FILESDIR}"/config.toml
+
+ insinto "/usr/share/${PN}"
+ doins -r shell-init
+
+ greadme_stdin <<-EOF
+ Gentoo installs mise's shell-init code under
+ /usr/share/mise/shell-init/
+ Therefore, instead of using, e.g. 'eval \"\$(mise activate)\"' in
+ your .zshrc you can put \"source /usr/share/mise/shell-init/zsh\"
+ there, which avoids the cost of forking a process. Although mise
+ does that a lot anyways.
+EOF
+}