forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfuzion-0.081.ebuild
55 lines (43 loc) · 1.14 KB
/
fuzion-0.081.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit java-pkg-2
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() {
emake -j1 run_tests_parallel
}
src_install() {
# Remove unnecessary files from build directory. bug #893450
local torm torm_path
for torm in tests run_tests.{failures,results} ; do
torm_path="${S}"/build/${torm}
if [[ -e "${torm_path}" ]] ; then
rm -r "${torm_path}" || die "failed to remove ${toremove_path}"
fi
done
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
}