Skip to content

Commit 150491f

Browse files
lang/lfortran: upgrade to v0.21.5
Releases notes at <https://github.com/lfortran/lfortran/releases>. WIP: add the documentation.
1 parent d26cd48 commit 150491f

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

‎lang/lfortran/Makefile‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PORTNAME= lfortran
22
DISTVERSIONPREFIX= v
3-
DISTVERSION= 0.21.2
3+
DISTVERSION= 0.21.5
44
CATEGORIES= lang
55

66
MAINTAINER= fortran@FreeBSD.org
@@ -34,7 +34,17 @@ USE_LDCONFIG= yes
3434

3535
LLVM_VERSION= 15 # 16 is supported too
3636

37-
OPTIONS_DEFINE= EXAMPLES
37+
OPTIONS_DEFINE= EXAMPLES # NB
38+
# NB is broken ATM
39+
NB_DESC= Documentation as a Jupyter notebook
40+
NB_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx@${PY_FLAVOR} \
41+
sphinx-intl:textproc/py-sphinx@${PY_FLAVOR} \
42+
myst-inv:textproc/py-myst-parser@${PY_FLAVOR} \
43+
jupyter:devel/py-jupyter-core@${PY_FLAVOR} \
44+
${PYTHON_PKGNAMEPREFIX}nbsphinx>0:textproc/py-nbsphinx@${PY_FLAVOR} \
45+
${PYTHON_PKGNAMEPREFIX}sphinx_material>0:textproc/py-sphinx-material@${PY_FLAVOR} \
46+
${PYTHON_PKGNAMEPREFIX}sphinx-copybutton>0:textproc/py-sphinx-copybutton@${PY_FLAVOR} \
47+
3848
PORTEXAMPLES= *
3949

4050
# Xeus: version 3.0.5 is required and xeus-zmq 1.0.2
@@ -58,6 +68,9 @@ PLIST_SUB= VER=${PORTVERSION}
5868
pre-configure:
5969
${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/version
6070

71+
do-build-NB-on:
72+
(cd ${WRKSRC}/doc && ${PYTHON_CMD} build.py)
73+
6174
post-install-EXAMPLES-on:
6275
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
6376
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})

‎lang/lfortran/distinfo‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
TIMESTAMP = 1696771504
2-
SHA256 (lfortran-lfortran-v0.21.2_GH0.tar.gz) = 3aa390cb552e1a2467b7e8811d3b8a4daeb28d375613d3f245e8111e784fe72c
3-
SIZE (lfortran-lfortran-v0.21.2_GH0.tar.gz) = 2391176
1+
TIMESTAMP = 1697045083
2+
SHA256 (lfortran-lfortran-v0.21.5_GH0.tar.gz) = 58cd43ba9b351d394cc6db8699038932d73018fdca948f13d28714de23e6d110
3+
SIZE (lfortran-lfortran-v0.21.5_GH0.tar.gz) = 2395607

0 commit comments

Comments
 (0)