dev-lang/fuzion: bump to 0.092

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć 2025-03-07 10:51:42 +01:00
parent 3034983122
commit e4f6e8f703
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
3 changed files with 125 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST fuzion-0.090.tar.gz 1271502 BLAKE2B 88d97759fb1213cdb2a428b6fdb4b3f2a662295530a07765b10b1308608d63d8e75ca001d10f07d92a05c0e6c8d6df491edc9f8a981727255df8cba5ca0f4ca7 SHA512 4f49c2673bfa36321688ce7b5d26f74b57b84b1b95dc5e67c9c3c526a92e6cdd6fc7777e3814117982b29198e5de500250000fa58387d91085f602fe037cf948
DIST fuzion-0.092.gh.tar.gz 1385098 BLAKE2B 627bb676ccf1a26630c390d6539290591f2949683a2fb8ebd1c70922417a099371785584aa16879a4a67d7e54324722e44e1dbd1fd6f7404670873b82a6d01be SHA512 aae9c57b121275a07fa819d8ce84efb26f6068460f907353b1f3c1b9f15c844a943ff7f8db5707f6609d6b9f4f3833616e765e025da7732b5285f0a764400be5

View File

@ -0,0 +1,28 @@
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,9 @@ FZJAVA = $(BUILD_DIR)/bin/fzjava
CLASSES_DIR = $(BUILD_DIR)/classes
CLASSES_DIR_LOGO = $(BUILD_DIR)/classes_logo
FUZION_BIN_SH = /bin/sh
+CC :=
+CFLAGS :=
+LDFLAGS :=
ifeq ($(FUZION_DEBUG_SYMBOLS),true)
JAVAC += -g
@@ -1438,11 +1441,12 @@ ifeq ($(OS),Windows_NT)
-lMswsock -lAdvApi32 -lWs2_32
touch $(FUZION_RT)
else
- clang -Wall -Werror -O3 -shared -fPIC \
+ $(CC) -Wall -Werror -shared -fPIC \
-DFUZION_ENABLE_THREADS \
- -fno-trigraphs -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -std=c11 \
+ -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -std=c11 \
+ $(CFLAGS) $(LDFLAGS) \
$(BUILD_DIR)/include/posix.c $(BUILD_DIR)/include/shared.c -o $(BUILD_DIR)/lib/libfuzion.so
- cp $(BUILD_DIR)/lib/libfuzion.so $(BUILD_DIR)/lib/libfuzion.dylib
+# cp $(BUILD_DIR)/lib/libfuzion.so $(BUILD_DIR)/lib/libfuzion.dylib
touch $(FUZION_RT)
endif
# NYI: eventuall link libgc

View File

@ -0,0 +1,96 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit java-pkg-2 toolchain-funcs
DESCRIPTION="A language with a focus on simplicity, safety and correctness"
HOMEPAGE="https://fuzion-lang.dev/
https://github.com/tokiwa-software/fuzion/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/tokiwa-software/${PN}"
else
SRC_URI="https://github.com/tokiwa-software/${PN}/archive/refs/tags/v${PV}.tar.gz
-> ${P}.gh.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-3"
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
>=virtual/jre-21:*
dev-libs/boehm-gc
"
DEPEND="
virtual/jdk:21
"
BDEPEND="
test? (
llvm-core/clang:*
)
"
PATCHES=( "${FILESDIR}/fuzion-0.092-Makefile.patch" )
DOCS=( README.md release_notes.md )
src_prepare() {
default #780585
java-pkg-2_src_prepare
# Remove bad tests.
local -a bad_tests=(
catch_postcondition
nom
onesCount
process
)
local bad_test=""
for bad_test in "${bad_tests[@]}" ; do
rm -r "${S}/tests/${bad_test}" \
|| die "failed to remove test ${bad_tests}"
done
rm -rf "${S}/tests/"{compile_,reg_issue,mod_,sockets}* || die
}
src_compile() {
emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}
src_test() {
emake -j1 run_tests_jvm
}
src_install() {
# Remove unnecessary files from build directory. bug #893450
local toremove=""
local toremove_path=""
for toremove in tests run_tests.{failures,results} ; do
toremove_path="${S}/build/${toremove}"
if [[ -e "${toremove_path}" ]] ; then
rm -r "${toremove_path}" \
|| die "failed to remove ${toremove_path}"
fi
done
insinto "/usr/share/${PN}"
doins -r build/.
insopts -m755
doins -r build/bin
local exe=""
for exe in fz fzjava ; do
dosym -r "/usr/share/${PN}/bin/${exe}" "/usr/bin/${exe}"
done
einstalldocs
}