From 62c4f8c0a00d5854c667d3851a3477c232ef8e42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 4 Mar 2024 23:44:29 +0700 Subject: [PATCH] pluma: update to 1.28.0. --- srcpkgs/pluma/patches/python-3.12.patch | 41 +++++++++++++++++++++++++ srcpkgs/pluma/template | 12 ++++---- 2 files changed, 47 insertions(+), 6 deletions(-) create mode 100644 srcpkgs/pluma/patches/python-3.12.patch diff --git a/srcpkgs/pluma/patches/python-3.12.patch b/srcpkgs/pluma/patches/python-3.12.patch new file mode 100644 index 00000000000..2f16bb14c45 --- /dev/null +++ b/srcpkgs/pluma/patches/python-3.12.patch @@ -0,0 +1,41 @@ +diff --git a/plugins/externaltools/tools/library.py b/plugins/externaltools/tools/library.py +index ed66e26..0eb4e12 100755 +--- a/plugins/externaltools/tools/library.py ++++ b/plugins/externaltools/tools/library.py +@@ -197,7 +197,7 @@ class ToolDirectory(object): + + + class Tool(object): +- RE_KEY = re.compile('^([a-zA-Z_][a-zA-Z0-9_.\-]*)(\[([a-zA-Z_@]+)\])?$') ++ RE_KEY = re.compile(r'^([a-zA-Z_][a-zA-Z0-9_.\-]*)(\[([a-zA-Z_@]+)\])?$') + + def __init__(self, parent, filename=None): + super(Tool, self).__init__() +diff --git a/plugins/snippets/snippets/Document.py b/plugins/snippets/snippets/Document.py +index 1c2960b..65c4b43 100644 +--- a/plugins/snippets/snippets/Document.py ++++ b/plugins/snippets/snippets/Document.py +@@ -827,8 +827,8 @@ class Document: + return components + + def relative_path(self, first, second, mime): +- prot1 = re.match('(^[a-z]+:\/\/|\/)(.*)', first) +- prot2 = re.match('(^[a-z]+:\/\/|\/)(.*)', second) ++ prot1 = re.match(r'(^[a-z]+:\/\/|\/)(.*)', first) ++ prot2 = re.match(r'(^[a-z]+:\/\/|\/)(.*)', second) + + if not prot1 or not prot2: + return second +diff --git a/plugins/snippets/snippets/SubstitutionParser.py b/plugins/snippets/snippets/SubstitutionParser.py +index e6b4647..a03382b 100644 +--- a/plugins/snippets/snippets/SubstitutionParser.py ++++ b/plugins/snippets/snippets/SubstitutionParser.py +@@ -159,7 +159,7 @@ class SubstitutionParser: + return match.group(1), tokens[match.end():] + + def _condition_value(self, tokens): +- match = re.match('\\\\?%s\s*' % self.REG_GROUP, tokens) ++ match = re.match('\\\\?%s\\s*' % self.REG_GROUP, tokens) + + if not match: + return None, tokens diff --git a/srcpkgs/pluma/template b/srcpkgs/pluma/template index 3c8905b0b43..6a3c237fde6 100644 --- a/srcpkgs/pluma/template +++ b/srcpkgs/pluma/template @@ -1,14 +1,14 @@ # Template file for 'pluma' pkgname=pluma -version=1.26.1 -revision=2 +version=1.28.0 +revision=1 build_style=gnu-configure build_helper=gir pycompile_dirs="usr/lib/pluma/plugins" -hostmakedepends="python3 python3-setuptools gobject-introspection mate-common - automake libtool" +hostmakedepends="python3 python3-setuptools gobject-introspection iso-codes + pkg-config itstool glib-devel gettext perl" makedepends="enchant2-devel gtksourceview4-devel iso-codes libSM-devel - libpeas-devel mate-desktop-devel" + libpeas-devel mate-desktop-devel gtk+3-devel libglib-devel libICE-devel" depends="desktop-file-utils iso-codes zenity mate-desktop" short_desc="Powerful text editor for MATE" maintainer="skmpz " @@ -16,7 +16,7 @@ license="GPL-2.0-or-later" homepage="https://mate-desktop.org" changelog="https://raw.githubusercontent.com/mate-desktop/pluma/master/NEWS" distfiles="https://pub.mate-desktop.org/releases/${version%.*}/pluma-${version}.tar.xz" -checksum=5959ece3d7118e106659f64d202d0ed1763ad10bbbba5d2acd8cbfba2e3994f1 +checksum=aa8adf9589345093a50e30b27ede4a78a2421d1727c27f465fc87c435965a1d4 python_version=3 make_check=no # needs gsettings-schemas and gvfs-mount