diff --git a/lang/lfortran/Makefile b/lang/lfortran/Makefile index 359d32d94bcb..d3ce57975979 100644 --- a/lang/lfortran/Makefile +++ b/lang/lfortran/Makefile @@ -1,81 +1,80 @@ PORTNAME= lfortran DISTVERSIONPREFIX= v -DISTVERSION= 0.36.1 -PORTREVISION= 2 +DISTVERSION= 0.44.0 CATEGORIES= lang MAINTAINER= fortran@FreeBSD.org COMMENT= Modern interactive Fortran compiler built on top of LLVM WWW= https://lfortran.org/ LICENSE= BSD3CLAUSE BROKEN_i386= sizeof(YYSTYPE) != sizeof(Vec) BUILD_DEPENDS= bash:shells/bash \ re2c>0:devel/re2c \ dwarfdump:devel/dwarfdump \ pandoc:textproc/hs-pandoc \ rapidjson>0:devel/rapidjson LIB_DEPENDS= libfmt.so:devel/libfmt \ libzstd.so:archivers/zstd \ libunwind.so:devel/libunwind \ libkokkoscore.so:devel/kokkos \ libLLVM-${LLVM_VERSION}.so:devel/llvm${LLVM_VERSION} RUN_DEPENDS= dwarfdump:devel/dwarfdump USE_GITHUB= yes USES= bison cmake:testing compiler:c++17-lang pkgconfig \ python:build ssl shebangfix SHEBANG_GLOB= *.py *.sh BINARY_ALIAS= python=${PYTHON_CMD} CMAKE_ON= LFORTRAN_BUILD_ALL WITH_DWARFDUMP WITH_FMT WITH_JSON \ WITH_KOKKOS WITH_LINKH WITH_LLVM WITH_STACKTRACE WITH_UNWIND USE_LDCONFIG= yes LLVM_VERSION= 15 # 16 is supported too OPTIONS_DEFINE= EXAMPLES # NB # NB is broken ATM NB_DESC= Documentation as a Jupyter notebook NB_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx@${PY_FLAVOR} \ sphinx-intl:textproc/py-sphinx@${PY_FLAVOR} \ myst-inv:textproc/py-myst-parser@${PY_FLAVOR} \ jupyter:devel/py-jupyter-core@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}nbsphinx>0:textproc/py-nbsphinx@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sphinx_material>0:textproc/py-sphinx-material@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sphinx-copybutton>0:textproc/py-sphinx-copybutton@${PY_FLAVOR} \ PORTEXAMPLES= * # Xeus: version 3.0.5 is required and xeus-zmq 1.0.2 # + xtl-quant-stack + cppzmq + nlohmann_json + LibUUID + libzmq4 # See https://github.com/lfortran/lfortran/issues/1255 #BUILD_DEPENDS+= xtl-quant-stack>=0.7:devel/xtl-quant-stack \ # nlohmann-json>0:devel/nlohmann-json \ # cppzmq>=4.8.1:net/cppzmq #LIB_DEPENDS+= libxeus.so:devel/xeus \ # libzmq.so:net/libzmq4 \ # libxeus-zmq.so:devel/xeus-zmq \ # libuuid.so:misc/e2fsprogs-libuuid CMAKE_OFF+= WITH_XEUS # BFD: USE_BINUTILS= yes CMAKE_ON+= WITH_BFD LIB_DEPENDS+= libbfd.so:devel/binutils PLIST_SUB= VER=${PORTVERSION} pre-configure: ${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/version do-build-NB-on: (cd ${WRKSRC}/doc && ${PYTHON_CMD} build.py) post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) .include diff --git a/lang/lfortran/distinfo b/lang/lfortran/distinfo index 287b79b0669f..79c938d184ba 100644 --- a/lang/lfortran/distinfo +++ b/lang/lfortran/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1718905363 -SHA256 (lfortran-lfortran-v0.36.1_GH0.tar.gz) = fe440ed3c2628268da946f561fb3f0da6ae5e22fa596595ed53d9e32104a8635 -SIZE (lfortran-lfortran-v0.36.1_GH0.tar.gz) = 2722409 +TIMESTAMP = 1737140387 +SHA256 (lfortran-lfortran-v0.44.0_GH0.tar.gz) = 6592623fed2dedbff086f74bbf5264fcd48d5f4938c4b8dcb0ba2ea02b4ab59f +SIZE (lfortran-lfortran-v0.44.0_GH0.tar.gz) = 2927724 diff --git a/lang/lfortran/files/patch-build0.sh b/lang/lfortran/files/patch-build0.sh index 1e3c454231e4..55b89e4e998c 100644 --- a/lang/lfortran/files/patch-build0.sh +++ b/lang/lfortran/files/patch-build0.sh @@ -1,20 +1,20 @@ ---- build0.sh.orig 2024-01-28 14:28:08 UTC +--- build0.sh.orig 2025-01-17 18:59:54 UTC +++ build0.sh -@@ -4,7 +4,7 @@ set -x - set -x +@@ -7,7 +7,7 @@ BISON=${BISON:-bison} + BISON=${BISON:-bison} # Generate the `version` file -ci/version.sh +#ci/version.sh # Generate a Fortran AST from AST.asdl (C++) python src/libasr/asdl_cpp.py grammar/AST.asdl src/lfortran/ast.h -@@ -18,7 +18,7 @@ python src/libasr/intrinsic_func_registry_util_gen.py +@@ -21,7 +21,7 @@ python src/libasr/intrinsic_func_registry_util_gen.py # Generate the tokenizer and parser - (cd src/lfortran && re2c -W -b parser/tokenizer.re -o parser/tokenizer.cpp) - (cd src/lfortran && re2c -W -b parser/preprocessor.re -o parser/preprocessor.cpp) --(cd src/lfortran/parser && bison -Wall -d -r all parser.yy) -+(cd src/lfortran/parser && bison -Wall -d -v -r all parser.yy) + (cd src/lfortran && ${RE2C} -W -b parser/tokenizer.re -o parser/tokenizer.cpp) + (cd src/lfortran && ${RE2C} -W -b parser/preprocessor.re -o parser/preprocessor.cpp) +-(cd src/lfortran/parser && ${BISON} -Wall -d -r all parser.yy) ++(cd src/lfortran/parser && ${BISON} -Wall -d -v -r all parser.yy) grep -n "'" src/lfortran/parser/parser.yy && echo "Single quote not allowed" && exit 1 echo "OK" diff --git a/lang/lfortran/pkg-plist b/lang/lfortran/pkg-plist index 7c55a60bb777..c791b63407d2 100644 --- a/lang/lfortran/pkg-plist +++ b/lang/lfortran/pkg-plist @@ -1,17 +1,14 @@ bin/lfortran include/lfortran/impure/lfortran_intrinsics.h -lib/lfortran_intrinsic_builtin.mod lib/lfortran_intrinsic_custom.mod lib/lfortran_intrinsic_ieee_arithmetic.mod lib/lfortran_intrinsic_iso_c_binding.mod lib/lfortran_intrinsic_iso_fortran_env.mod -lib/lfortran_intrinsic_math.mod -lib/lfortran_intrinsic_string.mod lib/liblfortran_runtime.so lib/liblfortran_runtime.so.0 lib/liblfortran_runtime.so.%%VER%% lib/liblfortran_runtime_static.a lib/omp_lib.mod %%DATADIR%%/dat_convert.py %%DATADIR%%/dwarf_convert.py share/man/man1/lfortran.1.gz