dev-lang/odin: add 2026.06

Signed-off-by: Itai Ferber <itai@itaiferber.net>
This commit is contained in:
Itai Ferber
2026-06-23 11:13:51 -04:00
parent 009da21cf7
commit 3af1a99302
2 changed files with 55 additions and 0 deletions

View File

@@ -3,3 +3,4 @@ DIST odin-2026.02.tar.gz 148130905 BLAKE2B 60463427b224b14a23e4206e249b6d5d7d79a
DIST odin-2026.03.tar.gz 148137518 BLAKE2B b384ae9962921e33f4bba51cf3a3134806aa23b0308b35068692436d597f5e6a40d374c5d46772b6f267ee383dc0263158ede2856445a1d6f40b83ab6f200a3a SHA512 7733988f83b7ba2af444545d8a20f6efd7bdda3ed95ff94bcd462d9ec93aa113220b12564e2cb63b5df0306b5458e5ce44e62b499a250017882b5f3eedcba4f4
DIST odin-2026.04.tar.gz 148837624 BLAKE2B 08f3c2efa5a2972af979d33fddc541d5582ae4e829c2030e323e8ae8b48056fda2c9c8361cd74354c38a3ce397298873fe2ffca470b951d452ce662ac908c5f2 SHA512 541ec3dd8ad9728be4d7424f8b8365cd5ba8a34635fab61d232ec4438a912ee925f68c3763bd4d35c03857960716a5d7452d3a123a31a6b9936f4b7b619ce55f
DIST odin-2026.05.tar.gz 149047320 BLAKE2B b0a2d983b2c50c795aeeb4b0e1f2b8f532543e5ae5881de9af702efec87571ab0024c04020e89f962f9be76fb2effa38401fb7161c5f5b56b8f2f77a2d41c12b SHA512 afbc9757726539f6df5880f01ea0a4dd879b15f9f0d54f89472ed5d365a546dcc3448ec417c48ecff58ee85b3be6c9476f79876e867a5a1f45e9671e6dec2941
DIST odin-2026.06.tar.gz 149072381 BLAKE2B 534c3e8d917f8ce9d2f4f89d90762d81744bbb2ac3572d688dedbedda2106f3d9514735115979dfbdfb3abab04cb35ee2c6f34fbbec53378e509bdeb662cb8a9 SHA512 4c36b9af4ac5aa47520f5a329499ff07c56dc2684f9034cd6fc09284bc8a985ff90e081239b356fb52e7d9630aee469c311bbf5b611c61f4e9b3607b886c60ff

View File

@@ -0,0 +1,54 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LLVM_COMPAT=( {17..22} )
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"
}