From 10ac8a7ee4c312ade7d251cd3bdfd78b08388ef1 Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Sun, 26 Jan 2025 14:25:26 +0100 Subject: [PATCH] app-editors/gedit: add 48.1 Signed-off-by: Pacho Ramos --- app-editors/gedit/Manifest | 1 + app-editors/gedit/gedit-48.1.ebuild | 87 +++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 app-editors/gedit/gedit-48.1.ebuild diff --git a/app-editors/gedit/Manifest b/app-editors/gedit/Manifest index 20d9ffb33ea7f..5ed278f397cb7 100644 --- a/app-editors/gedit/Manifest +++ b/app-editors/gedit/Manifest @@ -1,2 +1,3 @@ DIST gedit-46.2.tar.xz 2756340 BLAKE2B 832694a69562b6e8e0dda03be313ccae936645f19812a8244b0eb1f62b43b838fd5decac6a3f7d958017623a63bc857151d3f02dfe7a3aeeb1a0867f7854cfec SHA512 47aa160172d1af8cbb0f7ba270364ab7fe7527fd07819efea570afe67f3684a6df2e093f4b6fb85802e29c11bbe029a0515422d4ebd6e11ae78ae7359d82497f DIST gedit-48.0.tar.xz 2889116 BLAKE2B 64c982fa67359fe65fb29192b9e1b479b3eb2fa2c15351f7c03db54d25abcd52c9df34a818a8b27c275537728029fef70e2d89dd5b78cc777ef53fd916b17a6f SHA512 c8d8709d2615389b5329c6da2cf99cea74eeb09b6d25043a71261d89416eb31a704309d5bb9958d3133afb457685fec2a294e25934186936039b10e49e6787ef +DIST gedit-48.1.tar.xz 2813580 BLAKE2B bdccd05c131f1bf5baae06f471d89717f9da39281d042c0c542a49549a161285636e6f8cc7d4e2f18274d81bc7935df8675a406a6ccdcc7199e91a07e8cfaafe SHA512 63517f12b986e4ac901432f5875d6de78c8161cf4f55450466e67be60708eb0e0d67d4b434a45820a18094c803c8e0d413e85bf6a971e159f3fc8a7e5c128f2c diff --git a/app-editors/gedit/gedit-48.1.ebuild b/app-editors/gedit/gedit-48.1.ebuild new file mode 100644 index 0000000000000..4995c4bc59df2 --- /dev/null +++ b/app-editors/gedit/gedit-48.1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{10..13} ) + +inherit gnome.org gnome2-utils meson python-single-r1 vala xdg + +DESCRIPTION="A text editor for the GNOME desktop" +HOMEPAGE="https://gedit-text-editor.org/" + +LICENSE="GPL-2+ CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="+python gtk-doc" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +DEPEND=" + >=dev-libs/glib-2.76:2 + >=x11-libs/gtk+-3.22.0:3[introspection] + >=gui-libs/libgedit-amtk-5.6:= + >=gui-libs/libgedit-tepl-6.12 + >=dev-libs/libpeas-1.14.1:0[gtk] + >=dev-libs/gobject-introspection-1.54:= + >=app-text/gspell-0.2.5:0= + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/pycairo[${PYTHON_USEDEP}] + >=dev-python/pygobject-3:3[cairo,${PYTHON_USEDEP}] + dev-libs/libpeas:0[python,${PYTHON_SINGLE_USEDEP}] + ') + ) + + gui-libs/libgedit-gtksourceview:300 +" +RDEPEND="${DEPEND} + x11-themes/adwaita-icon-theme + gnome-base/gsettings-desktop-schemas + gnome-base/gvfs +" +BDEPEND=" + $(vala_depend) + dev-util/glib-utils + gtk-doc? ( >=dev-util/gtk-doc-1 ) + dev-util/itstool + >=sys-devel/gettext-0.18 + virtual/pkgconfig +" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + vala_setup + xdg_environment_reset +} + +src_configure() { + local emesonargs=( + $(meson_use gtk-doc gtk_doc) + -Duser_documentation=true + + ) + meson_src_configure +} + +src_install() { + meson_src_install + if use python; then + python_optimize + python_optimize "${ED}/usr/$(get_libdir)/gedit/plugins/" + fi +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +}