diff --git a/srcpkgs/gnome-latex/files/README.voidlinux b/srcpkgs/enter-tex/files/README.voidlinux similarity index 100% rename from srcpkgs/gnome-latex/files/README.voidlinux rename to srcpkgs/enter-tex/files/README.voidlinux diff --git a/srcpkgs/enter-tex/patches/fix-actions.patch b/srcpkgs/enter-tex/patches/fix-actions.patch new file mode 100644 index 00000000000..18bc2696e78 --- /dev/null +++ b/srcpkgs/enter-tex/patches/fix-actions.patch @@ -0,0 +1,36 @@ +From c240fd5c1eda2cf697336cc234d66f6af38894e8 Mon Sep 17 00:00:00 2001 +From: oreo639 +Date: Sun, 15 Sep 2024 02:16:20 -0700 +Subject: [PATCH] GlatexApp: implement new-window action + +--- + src/glatex_app.vala | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/src/glatex_app.vala b/src/glatex_app.vala +index 3d93c8bd..4e913212 100644 +--- a/src/glatex_app.vala ++++ b/src/glatex_app.vala +@@ -8,6 +8,7 @@ public class GlatexApp : Gtex.App + { + private const GLib.ActionEntry[] _app_actions = + { ++ { "new-window", new_window_cb }, + { "new-document", new_document_cb }, + { "manage-build-tools", manage_build_tools_cb }, + { "quit", quit_cb } +@@ -52,6 +53,11 @@ public class GlatexApp : Gtex.App + release (); + } + ++ private void new_window_cb () ++ { ++ MainWindow? window = create_window (); ++ } ++ + private void new_document_cb () + { + MainWindow? window = get_active_main_window (); +-- +GitLab + diff --git a/srcpkgs/enter-tex/template b/srcpkgs/enter-tex/template new file mode 100644 index 00000000000..a304a0d9965 --- /dev/null +++ b/srcpkgs/enter-tex/template @@ -0,0 +1,40 @@ +# Template file for 'enter-tex' +pkgname=enter-tex +version=3.47.0 +revision=1 +build_helper="gir" +build_style=meson +configure_args="-Ddconf_migration=false $(vopt_bool gtk_doc gtk_doc)" +hostmakedepends="glib-devel gettext itstool pkg-config vala + gobject-introspection $(vopt_if gtk_doc gtk-doc) desktop-file-utils gtk-update-icon-cache" +makedepends="gsettings-desktop-schemas-devel gspell-devel libgedit-gtksourceview-devel + gtk+3-devel libgee-devel libglib-devel libgedit-tepl-devel" +short_desc="LaTeX editor for the GNOME desktop" +maintainer="Enno Boland " +license="GPL-3.0-or-later" +homepage="https://gitlab.gnome.org/swilmet/enter-tex" +changelog="https://gitlab.gnome.org/swilmet/enter-tex/-/raw/main/NEWS" +distfiles="${GNOME_SITE}/enter-tex/${version%.*}/enter-tex-${version}.tar.xz" +checksum=a08caec9275c0abb9535674df5b9c16b92b14968cd21916d6ffc2fa0cb9dd76a + +build_options="gtk_doc" +build_options_default=" " + +if [ -z "$CROSS_BUILD" ]; then + build_options_default+=" gtk_doc" +fi + +post_install() { + vdoc "${FILESDIR}/README.voidlinux" +} + +pre_build() { + # https://gitlab.gnome.org/swilmet/enter-tex/-/blob/main/docs/more-information.md + ninja -C build src/gtex/Gtex-1.gir +} + +gnome-latex_package() { + build_style=meta + short_desc+=" - transitional dummy package" + depends="${sourcepkg}>=${version}_${revision}" +} diff --git a/srcpkgs/gnome-latex b/srcpkgs/gnome-latex new file mode 120000 index 00000000000..a57cd45377a --- /dev/null +++ b/srcpkgs/gnome-latex @@ -0,0 +1 @@ +enter-tex \ No newline at end of file diff --git a/srcpkgs/gnome-latex/patches/fix-tepl.patch b/srcpkgs/gnome-latex/patches/fix-tepl.patch deleted file mode 100644 index e82a44d925a..00000000000 --- a/srcpkgs/gnome-latex/patches/fix-tepl.patch +++ /dev/null @@ -1,85 +0,0 @@ -diff --git a/configure b/configure -index a58dc5629..e01a8f4ec 100755 ---- a/configure -+++ b/configure -@@ -14305,7 +14305,7 @@ if test -n "$DEP_CFLAGS"; then - gtk+-3.0 >= 3.22 - gspell-1 >= 1.8 - libgedit-amtk-5 -- tepl-6 >= 6.8 -+ libgedit-tepl-6 >= 6.8 - gee-0.8 >= 0.10 - gsettings-desktop-schemas - \""; } >&5 -@@ -14314,7 +14314,7 @@ if test -n "$DEP_CFLAGS"; then - gtk+-3.0 >= 3.22 - gspell-1 >= 1.8 - libgedit-amtk-5 -- tepl-6 >= 6.8 -+ libgedit-tepl-6 >= 6.8 - gee-0.8 >= 0.10 - gsettings-desktop-schemas - ") 2>&5 -@@ -14326,7 +14326,7 @@ if test -n "$DEP_CFLAGS"; then - gtk+-3.0 >= 3.22 - gspell-1 >= 1.8 - libgedit-amtk-5 -- tepl-6 >= 6.8 -+ libgedit-tepl-6 >= 6.8 - gee-0.8 >= 0.10 - gsettings-desktop-schemas - " 2>/dev/null` -@@ -14346,7 +14346,7 @@ if test -n "$DEP_LIBS"; then - gtk+-3.0 >= 3.22 - gspell-1 >= 1.8 - libgedit-amtk-5 -- tepl-6 >= 6.8 -+ libgedit-tepl-6 >= 6.8 - gee-0.8 >= 0.10 - gsettings-desktop-schemas - \""; } >&5 -@@ -14355,7 +14355,7 @@ if test -n "$DEP_LIBS"; then - gtk+-3.0 >= 3.22 - gspell-1 >= 1.8 - libgedit-amtk-5 -- tepl-6 >= 6.8 -+ libgedit-tepl-6 >= 6.8 - gee-0.8 >= 0.10 - gsettings-desktop-schemas - ") 2>&5 -@@ -14367,7 +14367,7 @@ if test -n "$DEP_LIBS"; then - gtk+-3.0 >= 3.22 - gspell-1 >= 1.8 - libgedit-amtk-5 -- tepl-6 >= 6.8 -+ libgedit-tepl-6 >= 6.8 - gee-0.8 >= 0.10 - gsettings-desktop-schemas - " 2>/dev/null` -@@ -14396,7 +14396,7 @@ fi - gtk+-3.0 >= 3.22 - gspell-1 >= 1.8 - libgedit-amtk-5 -- tepl-6 >= 6.8 -+ libgedit-tepl-6 >= 6.8 - gee-0.8 >= 0.10 - gsettings-desktop-schemas - " 2>&1` -@@ -14406,7 +14406,7 @@ fi - gtk+-3.0 >= 3.22 - gspell-1 >= 1.8 - libgedit-amtk-5 -- tepl-6 >= 6.8 -+ libgedit-tepl-6 >= 6.8 - gee-0.8 >= 0.10 - gsettings-desktop-schemas - " 2>&1` -@@ -14419,7 +14419,7 @@ fi - gtk+-3.0 >= 3.22 - gspell-1 >= 1.8 - libgedit-amtk-5 -- tepl-6 >= 6.8 -+ libgedit-tepl-6 >= 6.8 - gee-0.8 >= 0.10 - gsettings-desktop-schemas - ) were not met: diff --git a/srcpkgs/gnome-latex/template b/srcpkgs/gnome-latex/template deleted file mode 100644 index 10675875a75..00000000000 --- a/srcpkgs/gnome-latex/template +++ /dev/null @@ -1,26 +0,0 @@ -# Template file for 'gnome-latex' -pkgname=gnome-latex -version=3.46.0 -revision=2 -build_helper="gir" -build_style=gnu-configure -configure_args="--disable-appstream-util --disable-dconf-migration - $(vopt_enable gir introspection)" -hostmakedepends="glib-devel gettext itstool pkg-config vala - $(vopt_if gir gobject-introspection) gtk-doc" -makedepends="gsettings-desktop-schemas-devel gspell-devel libgedit-gtksourceview-devel - gtk+3-devel libgee-devel libglib-devel libgedit-tepl-devel" -short_desc="LaTeX editor for the GNOME desktop" -maintainer="Enno Boland " -license="GPL-3.0-or-later" -homepage="https://wiki.gnome.org/Apps/GNOME-LaTeX" -changelog="https://gitlab.gnome.org/swilmet/gnome-latex/-/raw/main/NEWS" -distfiles="${GNOME_SITE}/gnome-latex/${version%.*}/gnome-latex-${version}.tar.xz" -checksum=d67555639b2a15a8aebd54f335354e44fe3433143ae3cb3cca7a8e26f8112ada - -build_options="gir" -build_options_default="gir" - -post_install() { - vdoc "${FILESDIR}/README.voidlinux" -}