Marker: update to 2023.05.02.

MathJax is now optional dep, Katex is used by default.
This commit is contained in:
icp 2023-05-26 15:56:22 +05:30 committed by classabbyamp
parent a108e61121
commit 04b9b031b5
3 changed files with 23 additions and 40 deletions

View File

@ -1,19 +0,0 @@
diff -ruN Marker/meson.build Marker1/meson.build
--- Marker/meson.build 2019-11-06 14:44:46.000000000 +0200
+++ Marker1/meson.build 2019-12-06 22:39:56.434367811 +0200
@@ -5,13 +5,14 @@
PREFIX = get_option('prefix')
DATA_DIR = join_paths(PREFIX, 'share')
+LIBS_DIR = join_paths(PREFIX, 'lib')
APP_DIR = join_paths(DATA_DIR, 'com.github.fabiocolacio.marker')
ICONS_DIR = join_paths(APP_DIR, 'icons')
STYLES_DIR = join_paths(APP_DIR, 'styles')
COMMON_DIR = join_paths(APP_DIR, 'common')
SCRIPTS_DIR = join_paths(APP_DIR, 'scripts')
HIGHLIGHT_STYLES_DIR = join_paths(join_paths(SCRIPTS_DIR, 'highlight'),'styles')
-WEB_EXTENSIONS_DIRECTORY = join_paths(APP_DIR, 'extensions')
+WEB_EXTENSIONS_DIRECTORY = join_paths(LIBS_DIR, 'Marker.extensions')
APPDATA_DIR = join_paths(DATA_DIR, 'metainfo')
LOCALE_DIR = join_paths(PREFIX, get_option('localedir'))

View File

@ -1,12 +0,0 @@
--- a/src/marker-markdown.c
+++ b/src/marker-markdown.c
@@ -87,8 +87,7 @@ char* html_header(MarkerMathJSMode ma
} else
{
mathjs_css = g_strdup(" ");
- mathjs_script = g_strdup_printf("<script src=\"file://%smathjax/MathJax.js?config=TeX-AMS_HTML\"></script>",
- SCRIPTS_DIR);
+ mathjs_script = g_strdup("<script src=\"file:///usr/share/mathjax/MathJax.js?config=TeX-AMS_HTML\"></script>");
mathjs_auto = g_strdup(" ");
}
break;

View File

@ -1,22 +1,36 @@
# Template file for 'Marker'
pkgname=Marker
version=2020.04.04
revision=3
version=2023.05.02
revision=1
_scidown_commit=a7b7f063de4f272ef0ec12d00b98470888e8cb32
_charter_commit=a25dee1214ea9ba5882325066555cb813efbb489
_tinyexpr_commit=9476568b69de4c384903f1d5f255907b92592f45
build_wrksrc="Marker-${version}"
build_style=meson
hostmakedepends="glib-devel pkg-config itstool gettext"
makedepends="gtksourceview-devel gtkspell3-devel gtk+3-devel libglib-devel
webkit2gtk-devel"
depends="iso-codes mathjax2"
libwebkit2gtk41-devel"
depends="iso-codes"
short_desc="Gtk3 markdown editor"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later, ISC"
license="GPL-3.0-or-later, ISC, Zlib"
homepage="https://fabiocolacio.github.io/Marker/"
distfiles="https://github.com/fabiocolacio/Marker/releases/download/${version}/marker.zip"
checksum=ca493e7e94f171c15f7ffc9f697ce265d3b4fdb20fae157601d091d89dd6fb40
distfiles="https://github.com/fabiocolacio/Marker/archive/refs/tags/${version}.tar.gz
https://github.com/Mandarancio/scidown/archive/${_scidown_commit}.tar.gz
https://github.com/Mandarancio/charter/archive/${_charter_commit}.tar.gz
https://github.com/codeplea/tinyexpr/archive/${_tinyexpr_commit}.tar.gz"
checksum="097a6e3811f0c4c14c574b8aafee27ee62232ae3ad3084e18a35c2dc8a1e93dd
31e63658e2e79b5c5b0497d568e548f177fc89cb1dd9b6d78aba7685f0506ff0
60237a813383b44891e57049ba1f86cc5b89c28eee620b6ee90582a0c7ba6f8a
1c0c9496d9e9b693ae364860f0b66c403b87337db1b5a78275a0c78a07495286"
post_extract() {
# don't include bundled mathjax
rm -rf data/scripts/mathjax
rmdir "${build_wrksrc}/src/scidown"
mv "scidown-${_scidown_commit}" "${build_wrksrc}/src/scidown"
rmdir "${build_wrksrc}/src/scidown/src/charter"
mv "charter-${_charter_commit}" "${build_wrksrc}/src/scidown/src/charter"
rmdir "${build_wrksrc}/src/scidown/src/charter/src/tinyexpr"
mv "tinyexpr-${_tinyexpr_commit}" "${build_wrksrc}/src/scidown/src/charter/src/tinyexpr"
}
post_install() {