Update to TeXmacs-1.99.12
Changelog: https://texmacs.org/tmweb/about/changes.en.html This update also includes improvements and fixes for plug-ins, and documents how to activate them if additional packages are needed. Tested plug-ins: dratex, graph, graphviz, python, sympy, gnuplot, maxima, octave and pari. The python plugin is usable by default. from Nam Nguyen (maintainer)
This commit is contained in:
parent
178a565180
commit
89334849fc
@ -1,14 +1,14 @@
|
||||
# $OpenBSD: Makefile,v 1.14 2019/07/12 20:46:04 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.15 2020/02/27 14:29:46 jca Exp $
|
||||
|
||||
COMMENT= wysiwyw (what you see is what you want) editing platform
|
||||
|
||||
DISTNAME= TeXmacs-1.99.9-src
|
||||
DISTNAME= TeXmacs-1.99.12-src
|
||||
PKGNAME= ${DISTNAME:S/-src//}
|
||||
CATEGORIES= editors print x11
|
||||
|
||||
HOMEPAGE= http://texmacs.org/
|
||||
HOMEPAGE= https://texmacs.org/
|
||||
|
||||
MAINTAINER = Nam Nguyen <namn@berkeley.edu>
|
||||
MAINTAINER= Nam Nguyen <namn@berkeley.edu>
|
||||
|
||||
MASTER_SITES= http://texmacs.org/Download/ftp/tmftp/source/
|
||||
|
||||
@ -20,8 +20,13 @@ WANTLIB += c execinfo freetype gmp guile jpeg ltdl m png sqlite3
|
||||
WANTLIB += util z
|
||||
|
||||
MODULES= devel/cmake \
|
||||
lang/python \
|
||||
x11/qt5
|
||||
|
||||
MODPY_VERSION= ${MODPY_DEFAULT_VERSION_3}
|
||||
MODPY_ADJ_FILES= plugins/tmpy/*.py \
|
||||
plugins/tmpy/{graph,session}/*.py
|
||||
|
||||
BUILD_DEPENDS= print/ghostscript/gnu
|
||||
|
||||
RUN_DEPENDS= devel/desktop-file-utils \
|
||||
@ -35,11 +40,18 @@ LIB_DEPENDS= databases/sqlite3 \
|
||||
graphics/png \
|
||||
lang/guile
|
||||
|
||||
CONFIGURE_ARGS= -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
|
||||
|
||||
CXXFLAGS+= -Wno-deprecated-register
|
||||
|
||||
post-extract:
|
||||
rm -f ${WRKDIST}/plugins/mathematica/bin/realpath.py
|
||||
# change python interpreter per plugins/python/README.md
|
||||
sed -i 's,\(string-append.*\)python,\1python${MODPY_VERSION},' \
|
||||
${WRKSRC}/plugins/python/progs/init-python.scm
|
||||
sed -i 's,\(require.*\)python,\1python${MODPY_VERSION},' \
|
||||
${WRKSRC}/plugins/python/progs/init-python.scm
|
||||
.for l in asymptote dratex gnuplot graph graphviz sympy xypic
|
||||
find ${WRKSRC}/plugins/$l -name '*.scm' \
|
||||
-exec sed -i 's,python,python${MODPY_VERSION},' {} \;
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (TeXmacs-1.99.9-src.tar.gz) = KfDNFBrIGmL9bR3QSlO1AAg97sqXpeFQ6+9i5JPTJUU=
|
||||
SIZE (TeXmacs-1.99.9-src.tar.gz) = 30109108
|
||||
SHA256 (TeXmacs-1.99.12-src.tar.gz) = 5D2oSdXDdw99T3rZrGNnq0F0od+D8336QfjwDx628UI=
|
||||
SIZE (TeXmacs-1.99.12-src.tar.gz) = 35119781
|
||||
|
@ -1,9 +1,9 @@
|
||||
$OpenBSD: patch-CMakeLists_txt,v 1.1 2019/05/12 15:43:45 rsadowski Exp $
|
||||
$OpenBSD: patch-CMakeLists_txt,v 1.2 2020/02/27 14:29:46 jca Exp $
|
||||
|
||||
Index: CMakeLists.txt
|
||||
--- CMakeLists.txt.orig
|
||||
+++ CMakeLists.txt
|
||||
@@ -562,7 +562,7 @@ if (TEXMACS_GUI MATCHES "Qt.*")
|
||||
@@ -572,7 +572,7 @@ if (TEXMACS_GUI MATCHES "Qt.*")
|
||||
|
||||
set (TeXmacs_All_SRCS ${TeXmacs_All_SRCS} ${TeXmacs_Qt_SRCS} ${TeXmacs_Qt_Moc_HDRS})
|
||||
set (TeXmacs_Include_Dirs ${TeXmacs_Include_Dirs} ${QT_INCLUDES})
|
||||
|
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-plugins_octave_octave_tm-start_m,v 1.1 2020/02/27 14:29:46 jca Exp $
|
||||
|
||||
octave session does not start because tmrepl undefined
|
||||
https://github.com/texmacs/plugins/issues/11
|
||||
|
||||
Index: plugins/octave/octave/tm-start.m
|
||||
--- plugins/octave/octave/tm-start.m.orig
|
||||
+++ plugins/octave/octave/tm-start.m
|
||||
@@ -1,4 +1,5 @@
|
||||
d=getenv("TEXMACS_PATH");
|
||||
if (length(d) > 0)
|
||||
+ addpath("tm")
|
||||
tmrepl
|
||||
endif
|
29
editors/TeXmacs/patches/patch-plugins_r_src_tm_r_c
Normal file
29
editors/TeXmacs/patches/patch-plugins_r_src_tm_r_c
Normal file
@ -0,0 +1,29 @@
|
||||
$OpenBSD: patch-plugins_r_src_tm_r_c,v 1.1 2020/02/27 14:29:46 jca Exp $
|
||||
|
||||
do not build TeXmacs-R interface at runtime. attempting to do so
|
||||
prevents interface from starting.
|
||||
|
||||
Index: plugins/r/src/tm_r.c
|
||||
--- plugins/r/src/tm_r.c.orig
|
||||
+++ plugins/r/src/tm_r.c
|
||||
@@ -101,7 +101,7 @@ jmp_buf error_return_env ;
|
||||
|
||||
int N_data_begins = 0 ;
|
||||
|
||||
-char *DEFAULT_TEXMACS_SEND = "source(paste(Sys.getenv(\"TEXMACS_PATH\"),\"/plugins/r/texmacs.r\",sep=\"\"))\n";
|
||||
+char *DEFAULT_TEXMACS_SEND = "";
|
||||
|
||||
|
||||
// Add one more DATA_BEGIN, i.e. open bracket.
|
||||
@@ -850,11 +850,6 @@ int main(int argc, char *argv[])
|
||||
snprintf( TEXMACS_HOME_PATH, 4096, "%s/.TeXmacs",HOME) ;
|
||||
}
|
||||
|
||||
- /* Lazy installing the TeXmacs package */
|
||||
- TEXMACS_LIB = (char *)malloc(4096);
|
||||
- snprintf(TEXMACS_LIB,4096,"%s/plugins/r/r",TEXMACS_HOME_PATH);
|
||||
- if (stat(TEXMACS_LIB,&stat_buf))
|
||||
- system("r_install");
|
||||
|
||||
setenv( "TERM", "dumb", 1) ;
|
||||
|
@ -1,8 +1,8 @@
|
||||
$OpenBSD: patch-src_Plugins_Qt_qt_gui_cpp,v 1.2 2019/05/12 15:43:45 rsadowski Exp $
|
||||
$OpenBSD: patch-src_Plugins_Qt_qt_gui_cpp,v 1.3 2020/02/27 14:29:46 jca Exp $
|
||||
Index: src/Plugins/Qt/qt_gui.cpp
|
||||
--- src/Plugins/Qt/qt_gui.cpp.orig
|
||||
+++ src/Plugins/Qt/qt_gui.cpp
|
||||
@@ -810,7 +810,7 @@ qt_gui_rep::update () {
|
||||
@@ -815,7 +815,7 @@ qt_gui_rep::update () {
|
||||
|
||||
time_t delay = delayed_commands.lapse - texmacs_time();
|
||||
if (needing_update) delay = 0;
|
||||
|
File diff suppressed because it is too large
Load Diff
36
editors/TeXmacs/pkg/README
Normal file
36
editors/TeXmacs/pkg/README
Normal file
@ -0,0 +1,36 @@
|
||||
$OpenBSD: README,v 1.1 2020/02/27 14:29:46 jca Exp $
|
||||
|
||||
+-------------------------------------------------------------------------------
|
||||
| Running ${PKGSTEM} on OpenBSD
|
||||
+-------------------------------------------------------------------------------
|
||||
|
||||
Plug-ins
|
||||
========
|
||||
|
||||
Many plug-ins for external software exist for GNU TeXmacs. Install the
|
||||
corresponding packages to use these plug-ins (e.g., `pkg_add gnuplot').
|
||||
|
||||
dratex: texlive_base
|
||||
gnuplot: gnuplot
|
||||
graphviz: graphviz
|
||||
lisp: clisp
|
||||
maxima: maxima
|
||||
octave: octave
|
||||
pari: pari
|
||||
R: R
|
||||
sympy: py3-sympy
|
||||
|
||||
Usage
|
||||
-----
|
||||
Once an external package has been installed, it should be listed in the
|
||||
following menus.
|
||||
|
||||
Interactive session: Insert > Session
|
||||
|
||||
Executable folded environment: Insert > Fold > Executable
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
Inside TeXmacs: Help > Plug-ins
|
||||
${TRUEPREFIX}/share/TeXmacs/plugins/*/doc
|
||||
https://www.texmacs.org/tmweb/plugins/plugins.en.html
|
Loading…
x
Reference in New Issue
Block a user