commit:     0f18362d00cc2a0c5764c9170c3a9f805df928b9
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 30 20:25:03 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Sep 30 20:40:54 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f18362d

app-editors/pluma: add 1.26.0, EAPI=6->7, enable tests

- enable tests (skip the one failing test)
- enable py3.11, drop py3.6 and py3.7
- organize the declarations
- bump versions for dependencies

Closes: https://bugs.gentoo.org/866911
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-editors/pluma/Manifest            |  1 +
 app-editors/pluma/pluma-1.26.0.ebuild | 79 +++++++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)

diff --git a/app-editors/pluma/Manifest b/app-editors/pluma/Manifest
index c481a1b9a671..eb90445d2fa3 100644
--- a/app-editors/pluma/Manifest
+++ b/app-editors/pluma/Manifest
@@ -1 +1,2 @@
 DIST pluma-1.24.2.tar.xz 3745160 BLAKE2B 
ed855b19f1ab80cb6ef9bc175eea3c2af386b1e45123bc0e3ad93d1964efb4822fe1b3d7490308357fcff96557bb6189f081a467f41a6907e76a1961de8f23d3
 SHA512 
588640744f8a0bec08d0c51c0309380a57cb6319c98124885e30d05e7dd8488ba7bd5acec1bf21fb0d6832626ae8925b24cd241202265af1a631a91313cdad2b
+DIST pluma-1.26.0.tar.xz 3765056 BLAKE2B 
4a3107df7c4ba906d405b5ef3ea6dd9ca0e372a7b00224213fc8a60d1dc26663d1363aa7f0569b0242407f5b5d850386308fae9192c4a33f577295bb55ef5a16
 SHA512 
a6c0cee7110f4863e44af51b19bb528f0f3570eab8db98038152bf142eedde97ac13b896deff7051b941a0f43c6fe14e316a97eba40fe5d4854d76038450245f

diff --git a/app-editors/pluma/pluma-1.26.0.ebuild 
b/app-editors/pluma/pluma-1.26.0.ebuild
new file mode 100644
index 000000000000..cae48f8c333e
--- /dev/null
+++ b/app-editors/pluma/pluma-1.26.0.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MATE_LA_PUNT="yes"
+PYTHON_COMPAT=( python3_{8..11} )
+inherit mate python-single-r1 virtualx
+
+DESCRIPTION="Pluma text editor for the MATE desktop"
+
+LICENSE="FDL-1.1+ GPL-2+ LGPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
+IUSE="+introspection spell test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
+
+COMMON_DEPEND="
+       dev-libs/atk
+       >=dev-libs/glib-2.50:2
+       >=dev-libs/libpeas-1.2.0[gtk]
+       >=dev-libs/libxml2-2.5:2
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf:2
+       >=x11-libs/gtk+-3.22:3[introspection?]
+       >=x11-libs/gtksourceview-4.0.2:4
+       x11-libs/libICE
+       x11-libs/libX11
+       >=x11-libs/libSM-1.0
+       x11-libs/pango
+       introspection? ( >=dev-libs/gobject-introspection-0.9.3:= )
+       spell? (
+               >=app-text/enchant-1.6:=
+               >=app-text/iso-codes-0.35
+       )
+       !!app-editors/mate-text-editor
+"
+RDEPEND="${COMMON_DEPEND}
+       ${PYTHON_DEPS}
+       >=mate-base/mate-desktop-1.9[introspection?]
+       virtual/libintl
+"
+DEPEND="${COMMON_DEPEND}
+       ~app-text/docbook-xml-dtd-4.1.2
+       app-text/yelp-tools
+       dev-util/glib-utils
+       dev-util/gtk-doc
+       dev-util/gtk-doc-am
+       >=sys-devel/libtool-2.2.6:2
+       >=sys-devel/gettext-0.19.8
+       virtual/pkgconfig
+"
+
+MATE_FORCE_AUTORECONF=true
+
+src_prepare() {
+       # Test require gvfs sftp fs mounted and schema's installed. Skip this 
one.
+       # https://github.com/mate-desktop/mate-text-editor/issues/33
+       sed -e '/+= document-saver/d' -i tests/Makefile.am || die
+
+       mate_src_prepare
+}
+
+src_configure() {
+       mate_src_configure \
+               $(use_enable introspection) \
+               $(use_enable spell) \
+               $(use_enable test tests)
+}
+
+src_test() {
+       # FIXME: This should be handled at eclass level.
+       "${EPREFIX}/${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/data" || die
+
+       unset DBUS_SESSION_BUS_ADDRESS
+       local -x GSETTINGS_SCHEMA_DIR="${S}/data"
+       virtx emake check
+}

Reply via email to