mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-lang/odin: add 2026.01, 2026.02
Signed-off-by: Itai Ferber <itai@itaiferber.net>
This commit is contained in:
@@ -1 +1,3 @@
|
||||
DIST odin-2026.01.tar.gz 147388145 BLAKE2B 579efc63d4aa91cbe6b6c98f64a504a7f50c0202a6a69c70a15566af32fa912a3d496fbe0d8e6767411cf4aba8de9ba23a0080dee644b10982f9e8452fa9feb7 SHA512 b16eb920643a381af47baba18aa38548eb7decfc276f4ae38323a820eb3ad174872daf9199e432fa805f3e5b897b473e48ecda426b93ff3f9c87c77ea4c5c4e3
|
||||
DIST odin-2026.02.tar.gz 148130905 BLAKE2B 60463427b224b14a23e4206e249b6d5d7d79aa5b4611ee5ed8fbc0b6888faecba3c497fc6e59168fdb092b29892a974b2a752b7506f244f633354db09ee0ca95 SHA512 7764e567012f067df74a65f1177b3f3f9081b46da4b726047fd2f169eaea8c003990c1dbb4b2568b1ccb17c1a73889b6edde0d601720f87d3fe9d5b9bac71669
|
||||
DIST odin-2026.03.tar.gz 148137518 BLAKE2B b384ae9962921e33f4bba51cf3a3134806aa23b0308b35068692436d597f5e6a40d374c5d46772b6f267ee383dc0263158ede2856445a1d6f40b83ab6f200a3a SHA512 7733988f83b7ba2af444545d8a20f6efd7bdda3ed95ff94bcd462d9ec93aa113220b12564e2cb63b5df0306b5458e5ce44e62b499a250017882b5f3eedcba4f4
|
||||
|
||||
54
dev-lang/odin/odin-2026.01.ebuild
Normal file
54
dev-lang/odin/odin-2026.01.ebuild
Normal 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=( {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"
|
||||
}
|
||||
54
dev-lang/odin/odin-2026.02.ebuild
Normal file
54
dev-lang/odin/odin-2026.02.ebuild
Normal 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=( {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"
|
||||
}
|
||||
Reference in New Issue
Block a user