dev-lang/odin: add 2026.02

Signed-off-by: Saveliy Boyarchuk <sav.boyar@gmail.com>
This commit is contained in:
Saveliy Boyarchuk
2026-02-08 20:16:32 +03:00
parent 827fe9d47a
commit 229db207ce
2 changed files with 55 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST odin-2026-01.tar.gz 147388145 BLAKE2B 579efc63d4aa91cbe6b6c98f64a504a7f50c0202a6a69c70a15566af32fa912a3d496fbe0d8e6767411cf4aba8de9ba23a0080dee644b10982f9e8452fa9feb7 SHA512 b16eb920643a381af47baba18aa38548eb7decfc276f4ae38323a820eb3ad174872daf9199e432fa805f3e5b897b473e48ecda426b93ff3f9c87c77ea4c5c4e3
DIST odin-2026-02.tar.gz 148130905 BLAKE2B 60463427b224b14a23e4206e249b6d5d7d79aa5b4611ee5ed8fbc0b6888faecba3c497fc6e59168fdb092b29892a974b2a752b7506f244f633354db09ee0ca95 SHA512 7764e567012f067df74a65f1177b3f3f9081b46da4b726047fd2f169eaea8c003990c1dbb4b2568b1ccb17c1a73889b6edde0d601720f87d3fe9d5b9bac71669

View File

@@ -0,0 +1,54 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LLVM_COMPAT=(14 17 18 19 20)
inherit llvm-r1
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 -> ${PN}-${MY_PV}.tar.gz"
# Source directory; the dir where the sources can be found (automatically
# unpacked) inside ${WORKDIR}. The default value for S is ${WORKDIR}/${P}
# If you don't need to change it, leave the S= line out of the ebuild
# to keep it tidy.
S="${WORKDIR}/Odin-dev-${MY_PV}"
KEYWORDS="~amd64"
fi
LICENSE="BSD"
SLOT="0"
RDEPEND="
$(llvm_gen_dep '
llvm-core/clang:${LLVM_SLOT}=
llvm-core/llvm:${LLVM_SLOT}=
')
"
DEPEND="${RDEPEND}"
# build_odin.sh sets its own flags. Some gcc flags cause build failures
CPPFLAGS=""
CXXFLAGS=""
src_compile() {
./build_odin.sh release || die "failed to build odin"
}
src_install() {
insinto usr/lib/odin
exeinto usr/lib/odin
doexe odin
doins -r base core vendor
dosym -r /usr/lib/odin/odin /usr/bin/odin
}