Skip to content

Commit

Permalink
enter-tex: update to 3.47.0, rename from gnome-latex
Browse files Browse the repository at this point in the history
  • Loading branch information
oreo639 committed Sep 16, 2024
1 parent f1416f5 commit 37241bd
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 111 deletions.
File renamed without changes.
36 changes: 36 additions & 0 deletions srcpkgs/enter-tex/patches/fix-actions.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
From c240fd5c1eda2cf697336cc234d66f6af38894e8 Mon Sep 17 00:00:00 2001
From: oreo639 <[email protected]>
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

40 changes: 40 additions & 0 deletions srcpkgs/enter-tex/template
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
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}"
}
1 change: 1 addition & 0 deletions srcpkgs/gnome-latex
85 changes: 0 additions & 85 deletions srcpkgs/gnome-latex/patches/fix-tepl.patch

This file was deleted.

26 changes: 0 additions & 26 deletions srcpkgs/gnome-latex/template

This file was deleted.

0 comments on commit 37241bd

Please sign in to comment.