dev-lang/odin - 2026.05 (guru)

Search

Install

Install this version:

emerge -a =dev-lang/odin-2026.05

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

autounmask =dev-lang/odin-2026.05

Or alternatively:

emerge --autounmask-write -a =dev-lang/odin-2026.05

Package Information

Description:
The Data-Oriented Language for Sane Software Development
Homepage:
https://odin-lang.org/
License:
ZLIB

Ebuild Details

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

EAPI=8

LLVM_COMPAT=( {17..21} )
inherit flag-o-matic llvm-r2

DESCRIPTION="The Data-Oriented Language for Sane Software Development"
HOMEPAGE="https://odin-lang.org/"

if [[ $PV == 9999 ]]; then
	EGIT_REPO_URI="https://github.com/odin-lang/Odin.git"
	inherit git-r3
else
	MY_PV="${PV/./-}"
	SRC_URI="https://github.com/odin-lang/Odin/archive/refs/tags/dev-${MY_PV}.tar.gz -> ${P}.tar.gz"
	S="${WORKDIR}/Odin-dev-${MY_PV}"
	KEYWORDS="~amd64"
fi

LICENSE="ZLIB"
SLOT="0"

RDEPEND="
	$(llvm_gen_dep '
		llvm-core/clang:${LLVM_SLOT}=
		llvm-core/llvm:${LLVM_SLOT}=
	')
"

BDEPEND="${RDEPEND}"

src_configure() {
	strip-flags
	default
}

src_compile() {
	./build_odin.sh release || die "failed to build odin"
}

src_install() {
	local install_dir="/usr/$(get_libdir)/${PN}"
	insinto "${install_dir}"
	doins -r base core vendor

	# Odin needs to link against runtime libs. Odin can pick up on those libs
	# via `ODIN_ROOT`, but installing it into the same base dir keeps everything
	# working right out of the box.
	exeinto "${install_dir}"
	doexe odin
	dosym -r "${install_dir}/odin" "/usr/bin/odin"
}

Inherited Eclasses

Dependencies

RDEPEND

	$(llvm_gen_dep '
		llvm-core/clang:${LLVM_SLOT}=
		llvm-core/llvm:${LLVM_SLOT}=
	')

BDEPEND

	$(llvm_gen_dep '
		llvm-core/clang:${LLVM_SLOT}=
		llvm-core/llvm:${LLVM_SLOT}=
	')

Manifest for 2026.05

Type File Size Source URLs
DIST odin-2026.05.tar.gz 149047320 bytes https://github.com/odin-lang/Odin/archive/refs/tags/dev-2026-05.tar.gz