From 875186950e07e898dad5cc97a811a91104a8c559 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Tue, 5 Mar 2024 08:20:11 +0100 Subject: added py3-cson as runtime dep for xasy. optionally compile and include asy after TL has been built --- README.md | 1 + tl-build.sh | 21 +++++++++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fd04b6e..9fd5c4c 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,7 @@ Building the sources - freeglut - readline - eigen3 + - py3-cson (run dependency for `xasy`) ### Getting the sources ```sh diff --git a/tl-build.sh b/tl-build.sh index 8458a0d..1d47095 100755 --- a/tl-build.sh +++ b/tl-build.sh @@ -127,11 +127,21 @@ if [[ ${with_asymptote} == "y" ]];then ./configure --prefix=/tmp/asyinst --enable-texlive-build \ --enable-static CXXFLAGS=-std=c++11 \ --disable-curl --disable-lsp --disable-gsl --disable-fftw - sed -i -e 's/^LIBS = /LIBS = -static /' Makefile + sed -i.bak -e 's/^LIBS = /LIBS = -static /' Makefile gmake strip asy fi +function include_asymptote { + cd ${tl_sourcedir} + if [[ -d ${tl_sourcedir}/inst/bin ]];then + tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin` + cp utils/asymptote/asy ${tl_bindir} + cd ${tl_bindir} + ln -s ../../texmf-dist/asymptote/GUI/xasy.py xasy + fi +} + # Now build TL if [[ ${build_tl} == "y" ]]; then cd ${tl_sourcedir} @@ -141,16 +151,15 @@ if [[ ${build_tl} == "y" ]]; then include_context fi if [[ ${with_asymptote} == "y" ]];then - cd ${tl_sourcedir} - tl_bindir=${tl_sourcedir}/inst/bin/`ls ${tl_sourcedir}/inst/bin` - cp utils/asymptote/asy ${tl_bindir} - cd ${tl_bindir} - ln -s ../../texmf-dist/asymptote/GUI/xasy.py xasy + include_asymptote fi else if [[ ${with_context} == "y" ]]; then include_context fi + if [[ ${with_asymptote} == "y" ]];then + include_asymptote + fi fi cd ${this_dir} -- cgit v1.2.3