diff options
author | Maciej Barć <xgqt@gentoo.org> | 2023-02-06 04:05:36 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2023-02-06 18:23:17 +0100 |
commit | 5f28770ea9502cb65c82e18a55593ffaf40d0285 (patch) | |
tree | f0046648bdee5600cb5e629507b87068abf3fded /dev-lang/fuzion/fuzion-0.080.ebuild | |
parent | dev-python/openapi-spec-validator: Bump to 0.5.5 (diff) | |
download | gentoo-5f28770ea9502cb65c82e18a55593ffaf40d0285.tar.gz gentoo-5f28770ea9502cb65c82e18a55593ffaf40d0285.tar.bz2 gentoo-5f28770ea9502cb65c82e18a55593ffaf40d0285.zip |
dev-lang/fuzion: new package; add 0.080
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-lang/fuzion/fuzion-0.080.ebuild')
-rw-r--r-- | dev-lang/fuzion/fuzion-0.080.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-lang/fuzion/fuzion-0.080.ebuild b/dev-lang/fuzion/fuzion-0.080.ebuild new file mode 100644 index 000000000000..85dd0ea40aab --- /dev/null +++ b/dev-lang/fuzion/fuzion-0.080.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A language with a focus on simplicity, safety and correctness" +HOMEPAGE="https://flang.dev/ + https://github.com/tokiwa-software/fuzion/" +SRC_URI="https://github.com/tokiwa-software/${PN}/archive/v${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=">=virtual/jre-17:*" +DEPEND=">=virtual/jdk-17:*" +BDEPEND="test? ( sys-devel/clang:* )" + +DOCS=( README.md release_notes.md ) + +src_compile () { + emake -j1 +} + +src_test() { + unset _JAVA_OPTIONS # Setting _JAVA_OPTIONS causes testsuite failures. + emake -j1 run_tests_parallel +} + +src_install() { + rm -r "${S}"/build/tests || die + + insinto /usr/share/${PN} + doins -r build/. + insopts -m755 + doins -r build/bin + + local bin + for bin in fz fzjava ; do + dosym -r /usr/share/${PN}/bin/${bin} /usr/bin/${bin} + done + + einstalldocs +} |