mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-lang/odin: clean up ebuilds
Signed-off-by: Itai Ferber <itai@itaiferber.net>
This commit is contained in:
@@ -7,7 +7,6 @@ LLVM_COMPAT=( {17..21} )
|
||||
inherit llvm-r2
|
||||
|
||||
DESCRIPTION="The Data-Oriented Language for Sane Software Development."
|
||||
|
||||
HOMEPAGE="https://odin-lang.org/"
|
||||
|
||||
if [[ $PV == 9999 ]]; then
|
||||
@@ -16,16 +15,11 @@ if [[ $PV == 9999 ]]; then
|
||||
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="ZLIB"
|
||||
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
@@ -35,7 +29,7 @@ RDEPEND="
|
||||
')
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="${RDEPEND}"
|
||||
|
||||
# build_odin.sh sets its own flags. Some gcc flags cause build failures
|
||||
CPPFLAGS=""
|
||||
@@ -45,10 +39,14 @@ src_compile() {
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto usr/lib/odin
|
||||
exeinto usr/lib/odin
|
||||
|
||||
doexe odin
|
||||
local install_dir="/usr/$(get_libdir)/${PN}"
|
||||
insinto "${install_dir}"
|
||||
doins -r base core vendor
|
||||
dosym -r /usr/lib/odin/odin /usr/bin/odin
|
||||
|
||||
# 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"
|
||||
}
|
||||
|
||||
@@ -3,11 +3,10 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
LLVM_COMPAT=(14 17 18 19 20)
|
||||
inherit llvm-r1
|
||||
LLVM_COMPAT=( {17..21} )
|
||||
inherit llvm-r2
|
||||
|
||||
DESCRIPTION="The Data-Oriented Language for Sane Software Development."
|
||||
|
||||
HOMEPAGE="https://odin-lang.org/"
|
||||
|
||||
if [[ $PV == 9999 ]]; then
|
||||
@@ -15,27 +14,22 @@ if [[ $PV == 9999 ]]; then
|
||||
inherit git-r3
|
||||
else
|
||||
MY_PV="${PV/./-}"
|
||||
SRC_URI="https://github.com/odin-lang/Odin/archive/refs/tags/dev-${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.
|
||||
SRC_URI="https://github.com/odin-lang/Odin/archive/refs/tags/dev-${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz"
|
||||
S="${WORKDIR}/Odin-dev-${MY_PV}"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="BSD"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
$(llvm_gen_dep '
|
||||
llvm-core/clang:${LLVM_SLOT}=
|
||||
llvm-core/llvm:${LLVM_SLOT}=
|
||||
')
|
||||
$(llvm_gen_dep '
|
||||
llvm-core/clang:${LLVM_SLOT}=
|
||||
llvm-core/llvm:${LLVM_SLOT}=
|
||||
')
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="${RDEPEND}"
|
||||
|
||||
# build_odin.sh sets its own flags. Some gcc flags cause build failures
|
||||
CPPFLAGS=""
|
||||
@@ -45,10 +39,14 @@ src_compile() {
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto usr/lib/odin
|
||||
exeinto usr/lib/odin
|
||||
|
||||
doexe odin
|
||||
local install_dir="/usr/$(get_libdir)/${PN}"
|
||||
insinto "${install_dir}"
|
||||
doins -r base core vendor
|
||||
dosym -r /usr/lib/odin/odin /usr/bin/odin
|
||||
|
||||
# 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