dev-util/juliaup - 1.22.2 (guru)

Search

Install

Install this version:

emerge -a =dev-util/juliaup-1.22.2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-util/juliaup-1.22.2

Or alternatively:

emerge --autounmask-write -a =dev-util/juliaup-1.22.2

Package Information

Description:
Julia installer and version multiplexer
Homepage:
https://github.com/JuliaLang/juliaup
License:
MIT Apache-2.0 BSD-2 BSD Boost-1.0 CDLA-Permissive-2.0 ISC MIT MPL-2.0 OFL-1.1 UbuntuFontLicense-1.0 Unicode-3.0 ZLIB

Ebuild Details

Version EAPI Keywords Slot
1.22.2 8 ~amd64 0
View Raw Ebuild
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Autogenerated by pycargoebuild 0.16.0

EAPI=8

CRATES="
"

RUST_MIN_VER="1.95"

inherit cargo shell-completion toolchain-funcs

DESCRIPTION="Julia installer and version multiplexer"
HOMEPAGE="https://github.com/JuliaLang/juliaup"
SRC_URI="
	https://github.com/JuliaLang/juliaup/archive/v${PV}/${P}.tar.gz
	https://github.com/yamader/gentoo-deps/releases/download/${P}/${P}-crates.tar.xz
"

LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
	Apache-2.0 BSD-2 BSD Boost-1.0 CDLA-Permissive-2.0 ISC MIT MPL-2.0
	OFL-1.1 UbuntuFontLicense-1.0 Unicode-3.0 ZLIB
"
SLOT="0"
KEYWORDS="~amd64"

DOCS=( CHANGELOG.md README.md )

QA_FLAGS_IGNORED=".*"

src_test() {
	local mytestargs=(
		# The following tests require network access.
		--skip utils::channel_selection
		--skip utils::auto_install_valid_channel
		--skip utils::end_to_end_manifest_selection
		--skip utils::command_add
		--skip utils::api_getconfig1
		--skip utils::command_default
		--skip utils::command_gc
		--skip utils::command_initial_setup
		--skip utils::command_link
		--skip utils::alias
		--skip utils::command_override
		--skip utils::command_remove
		--skip utils::command_update
	)
	cargo_src_test -- "${mytestargs[@]}"
}

src_install() {
	cargo_src_install
	einstalldocs

	if ! tc-is-cross-compiler; then
		einfo "generating shell completion files"

		"${ED}"/usr/bin/juliaup completions bash > "${T}/${PN}" || die
		sed -i '$s:^:#:' "${T}/${PN}" || die # comment out completion for `julia` command (#974972)
		dobashcomp "${T}/${PN}"

		"${ED}"/usr/bin/juliaup completions zsh > "${T}/_${PN}" || die
		sed -i '$s:^:#:' "${T}/_${PN}" || die
		dozshcomp "${T}/_${PN}"

		"${ED}"/usr/bin/juliaup completions fish > "${T}/${PN}.fish" || die
		sed -i '$s:^:#:' "${T}/${PN}.fish" || die
		dofishcomp "${T}/${PN}.fish"
	else
		ewarn "Shell completion files not installed! Install them manually with '${PN} completions --help'"
	fi
}

Inherited Eclasses

Manifest for 1.22.2

Type File Size Source URLs
DIST juliaup-1.22.2-crates.tar.xz 46838028 bytes https://github.com/yamader/gentoo-deps/releases/download/juliaup-1.22.2/juliaup-1.22.2-crates.tar.xz
DIST juliaup-1.22.2.tar.gz 960418 bytes https://github.com/JuliaLang/juliaup/archive/v1.22.2/juliaup-1.22.2.tar.gz