diff options
Diffstat (limited to 'gnome-extra')
37 files changed, 1335 insertions, 121 deletions
diff --git a/gnome-extra/authenticator/Manifest b/gnome-extra/authenticator/Manifest deleted file mode 100644 index 957a4c22d..000000000 --- a/gnome-extra/authenticator/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST authenticator-4.0.3.tar.gz 411473 BLAKE2B aebc1bd99ae78050447495ce99a6379a9358c8cd9469561cb30b8d8fd6ce3d98a1f3e7f966a3a6c9ff8ffcb39893571080eaae601a733e8a4a04a484041de529 SHA512 81900b0a31398597bab9f40a79432d3a3c31fe9eea162a9699c10ff01ba6aba210f1a3e1a70e113090f8aea49a12fd32dac005c7b64f1c73a6cfe56303243186 diff --git a/gnome-extra/authenticator/authenticator-4.0.3.ebuild b/gnome-extra/authenticator/authenticator-4.0.3.ebuild deleted file mode 100644 index 13d5e4cf5..000000000 --- a/gnome-extra/authenticator/authenticator-4.0.3.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -VALA_USE_DEPEND="vapigen" - -inherit vala meson gnome2-utils xdg - -DESCRIPTION="Simple application for generating Two-Factor Authentication Codes." -HOMEPAGE="https://gitlab.gnome.org/World/Authenticator" -SRC_URI="https://gitlab.gnome.org/World/Authenticator/-/archive/${PV}/${PN}-${PV}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -#KEYWORDS="~arm64" -IUSE="+introspection +vala" -REQUIRED_USE="vala? ( introspection )" - -DEPEND=" - gnome-base/gnome-common - gui-libs/gtk - x11-libs/libadwaita - x11-libs/gdk-pixbuf - >=media-libs/gstreamer-1.18.0 - " -RDEPEND="${DEPEND}" -BDEPEND=" - vala? ( $(vala_depend) ) - dev-util/meson - dev-libs/gobject-introspection - " - -S="${WORKDIR}/$PN-${PV}" - -src_install() { - meson_src_install -} - -pkg_postinst() { - gnome2_schemas_update -} - -pkg_postrm() { - gnome2_schemas_update -} diff --git a/gnome-extra/authenticator/metadata.xml b/gnome-extra/authenticator/metadata.xml deleted file mode 100644 index d5d190b08..000000000 --- a/gnome-extra/authenticator/metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>gjdijkman@gjdwebserver.nl</email> - <name>Gerben Jan Dijkman</name> - </maintainer> - <upstream> - <doc>https://gitlab.gnome.org/World/Authenticator</doc> - <bugs-to>https://gitlab.gnome.org/World/Authenticator/-/issues</bugs-to> - </upstream> -</pkgmetadata> diff --git a/gnome-extra/commit/Manifest b/gnome-extra/commit/Manifest new file mode 100644 index 000000000..81dbce18f --- /dev/null +++ b/gnome-extra/commit/Manifest @@ -0,0 +1,2 @@ +DIST commit-4.1-troll.gh.tar.gz 474880 BLAKE2B 9ebde0b0d32dd0591f1940add827776938d42121b84b391c478ad7baf82580eec12b084c89bf6cebbf34759aea5b6bdc7ced518fa56ea9a9def7bcc5b5a2c734 SHA512 140eeae1458aeed3ce294fb89c4c1ae84a947f3abf6992d1bcaca23e78595f5f41700934889914c1f152fc0d31543205f62097ee000c7f285edf853be79beb13 +DIST commit-4.1.gh.tar.gz 598633 BLAKE2B 8381d385ca62f351cc61e405e115f81311eb6509ab32f75e42e066ed3ab24156b8f6036c94204c5137ab720e976099a6f80a9b1c21145126857076b520367330 SHA512 0208cbea33d19913ca928e72397ffb5cb40456ab1154f0ccd9a271758eb77491f7197a39c9593c5daad207e35f16de8ac05da8c85aced790a4152564f9e77f76 diff --git a/gnome-extra/commit/commit-4.1-r1.ebuild b/gnome-extra/commit/commit-4.1-r1.ebuild new file mode 100644 index 000000000..af659e1e5 --- /dev/null +++ b/gnome-extra/commit/commit-4.1-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit gnome2-utils meson xdg + +TROLL_COMMIT="e7933a083681d23fce0078b0246fcff244af5ac3" +DESCRIPTION="Commit message editor" +HOMEPAGE=" + https://github.com/sonnyp/Commit + https://apps.gnome.org/Commit/ +" +SRC_URI=" + https://github.com/sonnyp/Commit/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz + https://github.com/sonnyp/troll/archive/${TROLL_COMMIT}.tar.gz -> ${P}-troll.gh.tar.gz +" +S="${WORKDIR}/${PN^}-${PV}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + app-text/libspelling + gui-libs/gtk:4 + gui-libs/libadwaita:1 +" +DEPEND="${RDEPEND}" + +BDEPEND=" + app-alternatives/ninja + dev-libs/appstream-glib + dev-libs/gjs + dev-libs/glib:2= + dev-util/blueprint-compiler + dev-util/desktop-file-utils + sys-devel/gettext + virtual/pkgconfig +" + +PATCHES=( + # This test only validates upstream .xml file + "${FILESDIR}/remove-failing-tests.patch" +) + +src_unpack() { + default + mv "${WORKDIR}"/troll-"${TROLL_COMMIT}"/* "${S}"/troll || die +} + +src_install() { + meson_src_install + dosym -r /usr/bin/re.sonny.Commit /usr/bin/"${PN}" + dodir /usr/share/metainfo + mv "${ED}"/usr/share/appdata/re.sonny.Commit.metainfo.xml "${ED}"/usr/share/metainfo/ || die +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} diff --git a/gnome-extra/commit/files/remove-failing-tests.patch b/gnome-extra/commit/files/remove-failing-tests.patch new file mode 100644 index 000000000..24bb79f0e --- /dev/null +++ b/gnome-extra/commit/files/remove-failing-tests.patch @@ -0,0 +1,18 @@ +diff --git a/data/meson.build b/data/meson.build +index 4629538..8fec511 100644 +--- a/data/meson.build ++++ b/data/meson.build +@@ -22,13 +22,6 @@ appstream_file = i18n.merge_file( + install_dir: join_paths(get_option('datadir'), 'appdata') + ) + +-appstream_util = find_program('appstream-util', required: false) +-if appstream_util.found() +- test('Validate appstream file', appstream_util, +- args: ['validate', appstream_file] +- ) +-endif +- + install_data('re.sonny.Commit.gschema.xml', + install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas') + ) diff --git a/gnome-extra/commit/metadata.xml b/gnome-extra/commit/metadata.xml new file mode 100644 index 000000000..94407373e --- /dev/null +++ b/gnome-extra/commit/metadata.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <name>Julien Roy</name> + <email>julien@jroy.ca</email> + </maintainer> + <longdescription> +Commit is an editor that helps you write better Git and Mercurial commit messages. + +After installing make sure to launch the application and follow the instructions. + +Commit will pop up automatically when you make a commit in one of your projects. To save your commit message, press the Commit button or the Ctrl+Return shortcut. To abort and dismiss Commit, press the Abort button or the Escape key. + +Features: + +Highlights overflow of the commit title +Smart body wrapping +Inserts a blank line between title and body +Spell checking +Comments are read-only and excluded from "Select All" +Displays project folder and branch in window header +Dark mode support +Keyboard navigation and shortcuts +Undo/Redo support +Emoji picker +Supports git commit, merge, tag --annotate, add --patch, rebase --interactive +Supports Mercurial commit +Auto capitalize the commit title +Welcome window with settings and instructions +Highlight syntax for Git, Mercurial and diffs + </longdescription> + <upstream> + <bugs-to>https://github.com/sonnyp/Commit/issues</bugs-to> + <remote-id type="github">sonnyp/Commit</remote-id> + </upstream> +</pkgmetadata> diff --git a/gnome-extra/extension-manager/Manifest b/gnome-extra/extension-manager/Manifest new file mode 100644 index 000000000..e33f88fc3 --- /dev/null +++ b/gnome-extra/extension-manager/Manifest @@ -0,0 +1,2 @@ +DIST extension-manager-0.5.0.tar.gz 2246539 BLAKE2B 650033c0a61d7ee4b3b752c12d8474398990f86cdc66c02681c2a1255b4c3afb12db874e8591df6bb4749bf17f322cd20094b0cce35600f82fa6f2cf4ae3f752 SHA512 975f71c072b12358760439ab9254ed8967cfb9c9c8cd38e93d38db0fb8138e4911a7a63c924f8a62b46fbedc83246e156765f3be9e092096d8647d78a0e7717f +DIST extension-manager-0.5.1.tar.gz 2248071 BLAKE2B 44fbd22961c462d1d3047e790e0054b77508476b927ae83b9677b7ad60df854287901c66a671c9c05d5a1f7857cf2f4dbad662604bed6322e8e02340880fa2d5 SHA512 7f5fc64adda0ea8c0d505c29d2a9037e565a42a66a2c151f5ed21267c715aa1738b94b075704fe4479961356a255c9aea450155b969a60cb78edf40ae448681f diff --git a/gnome-extra/extension-manager/extension-manager-0.5.0.ebuild b/gnome-extra/extension-manager/extension-manager-0.5.0.ebuild new file mode 100644 index 000000000..08c2dc6c9 --- /dev/null +++ b/gnome-extra/extension-manager/extension-manager-0.5.0.ebuild @@ -0,0 +1,87 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit gnome2-utils meson xdg + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/mjakeman/extension-manager.git" +else + SRC_URI="https://github.com/mjakeman/extension-manager/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="A native tool for browsing, installing, and managing GNOME Shell Extensions" +HOMEPAGE="https://mattjakeman.com/apps/extension-manager" + +LICENSE="GPL-3+" +SLOT="0" + +BDEPEND=" + dev-libs/glib:2 + dev-util/blueprint-compiler + sys-devel/gettext + virtual/pkgconfig +" + +RDEPEND=" + dev-libs/glib:2 + dev-libs/json-glib + gui-libs/gtk:4[introspection] + >=gui-libs/libadwaita-1.4.0:1[introspection] + gui-libs/text-engine + net-libs/libsoup:3.0 +" + +DEPEND=" + ${RDEPEND} +" + +PATCHES=( + "${FILESDIR}/${PN}-0.5.0-libadwaita-1.4.patch" +) + +src_configure() { + local emesonargs=( + -Dpackage="ebuild" + -Ddistributor="Gentoo GURU <guru-bugs@gentoo.org>" + + # sys-libs/libbacktrace has been last-rited in ::gentoo + # and is thus unavailable + -Dbacktrace=false + ) + if has live ${PROPERTIES}; then + # Produce a development build for live ebuild + emesonargs+=( -Ddevelopment=true ) + fi + meson_src_configure +} + +# Tests are skipped because as of version 0.3.0, the tests only validate +# resource files and do not verify any functionality of the program. Those +# validations are either already handled by QA checks or not relevant on +# Gentoo. For more information about the rationale, please refer to: +# https://github.com/gentoo/guru/commit/f896bee213fbb62c70e818c1bf503fee2a41919a#comments +# +# If tests are to be executed in the future because the upstream adds +# functionality tests or for other reasons, and should there be no convenient +# way to skip the validations, the following variable values need to be set: +# +# IUSE="test" +# RESTRICT="!test? ( test )" +# BDEPEND="test? ( dev-libs/appstream-glib dev-util/desktop-file-utils )" +src_test() { + : +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} diff --git a/gnome-extra/extension-manager/extension-manager-0.5.1.ebuild b/gnome-extra/extension-manager/extension-manager-0.5.1.ebuild new file mode 100644 index 000000000..771c31ed3 --- /dev/null +++ b/gnome-extra/extension-manager/extension-manager-0.5.1.ebuild @@ -0,0 +1,87 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit gnome2-utils meson xdg + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/mjakeman/extension-manager.git" +else + SRC_URI="https://github.com/mjakeman/extension-manager/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="A native tool for browsing, installing, and managing GNOME Shell Extensions" +HOMEPAGE="https://mattjakeman.com/apps/extension-manager" + +LICENSE="GPL-3+" +SLOT="0" + +BDEPEND=" + dev-libs/glib:2 + dev-util/blueprint-compiler + sys-devel/gettext + virtual/pkgconfig +" + +RDEPEND=" + dev-libs/glib:2 + dev-libs/json-glib + gui-libs/gtk:4[introspection] + >=gui-libs/libadwaita-1.5.0:1[introspection] + gui-libs/text-engine + net-libs/libsoup:3.0 +" + +DEPEND=" + ${RDEPEND} +" + +PATCHES=( + "${FILESDIR}/${PN}-0.5.1-frames_omitted_count.patch" +) + +src_configure() { + local emesonargs=( + -Dpackage="ebuild" + -Ddistributor="Gentoo GURU <guru-bugs@gentoo.org>" + + # sys-libs/libbacktrace has been last-rited in ::gentoo + # and is thus unavailable + -Dbacktrace=false + ) + if has live ${PROPERTIES}; then + # Produce a development build for live ebuild + emesonargs+=( -Ddevelopment=true ) + fi + meson_src_configure +} + +# Tests are skipped because as of version 0.3.0, the tests only validate +# resource files and do not verify any functionality of the program. Those +# validations are either already handled by QA checks or not relevant on +# Gentoo. For more information about the rationale, please refer to: +# https://github.com/gentoo/guru/commit/f896bee213fbb62c70e818c1bf503fee2a41919a#comments +# +# If tests are to be executed in the future because the upstream adds +# functionality tests or for other reasons, and should there be no convenient +# way to skip the validations, the following variable values need to be set: +# +# IUSE="test" +# RESTRICT="!test? ( test )" +# BDEPEND="test? ( dev-libs/appstream-glib dev-util/desktop-file-utils )" +src_test() { + : +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} diff --git a/gnome-extra/extension-manager/extension-manager-9999.ebuild b/gnome-extra/extension-manager/extension-manager-9999.ebuild new file mode 100644 index 000000000..979cd6029 --- /dev/null +++ b/gnome-extra/extension-manager/extension-manager-9999.ebuild @@ -0,0 +1,83 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit gnome2-utils meson xdg + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/mjakeman/extension-manager.git" +else + SRC_URI="https://github.com/mjakeman/extension-manager/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +DESCRIPTION="A native tool for browsing, installing, and managing GNOME Shell Extensions" +HOMEPAGE="https://mattjakeman.com/apps/extension-manager" + +LICENSE="GPL-3+" +SLOT="0" + +BDEPEND=" + dev-libs/glib:2 + dev-util/blueprint-compiler + sys-devel/gettext + virtual/pkgconfig +" + +RDEPEND=" + dev-libs/glib:2 + dev-libs/json-glib + gui-libs/gtk:4[introspection] + >=gui-libs/libadwaita-1.5.0:1[introspection] + gui-libs/text-engine + net-libs/libsoup:3.0 +" + +DEPEND=" + ${RDEPEND} +" + +src_configure() { + local emesonargs=( + -Dpackage="ebuild" + -Ddistributor="Gentoo GURU <guru-bugs@gentoo.org>" + + # sys-libs/libbacktrace has been last-rited in ::gentoo + # and is thus unavailable + -Dbacktrace=false + ) + if has live ${PROPERTIES}; then + # Produce a development build for live ebuild + emesonargs+=( -Ddevelopment=true ) + fi + meson_src_configure +} + +# Tests are skipped because as of version 0.3.0, the tests only validate +# resource files and do not verify any functionality of the program. Those +# validations are either already handled by QA checks or not relevant on +# Gentoo. For more information about the rationale, please refer to: +# https://github.com/gentoo/guru/commit/f896bee213fbb62c70e818c1bf503fee2a41919a#comments +# +# If tests are to be executed in the future because the upstream adds +# functionality tests or for other reasons, and should there be no convenient +# way to skip the validations, the following variable values need to be set: +# +# IUSE="test" +# RESTRICT="!test? ( test )" +# BDEPEND="test? ( dev-libs/appstream-glib dev-util/desktop-file-utils )" +src_test() { + : +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} diff --git a/gnome-extra/extension-manager/files/extension-manager-0.5.0-libadwaita-1.4.patch b/gnome-extra/extension-manager/files/extension-manager-0.5.0-libadwaita-1.4.patch new file mode 100644 index 000000000..f8ecccbf0 --- /dev/null +++ b/gnome-extra/extension-manager/files/extension-manager-0.5.0-libadwaita-1.4.patch @@ -0,0 +1,435 @@ +From 8d03f63f9c825d3f486e55c26eb2efd6a2e57711 Mon Sep 17 00:00:00 2001 +From: Yuan Liao <liaoyuan@gmail.com> +Date: Thu, 14 Mar 2024 10:44:40 -0400 +Subject: [PATCH 1/4] Revert "upgrade-assistant: Port AdwWindow to AdwDialog" + +This reverts commit 9e394c18722d18d4273083f4fd5aa152c20b57b7. + +The reverted commit migrates the application to libadwaita 1.5; this +should not have been done because libadwaita 1.5 has not been released. + +Signed-off-by: Yuan Liao <liaoyuan@gmail.com> +--- + src/exm-upgrade-assistant.blp | 10 +++++----- + src/exm-upgrade-assistant.c | 6 ++++-- + src/exm-upgrade-assistant.h | 2 +- + src/exm-window.c | 4 +++- + 4 files changed, 13 insertions(+), 9 deletions(-) + +diff --git a/src/exm-upgrade-assistant.blp b/src/exm-upgrade-assistant.blp +index a0c1ebe..e822598 100644 +--- a/src/exm-upgrade-assistant.blp ++++ b/src/exm-upgrade-assistant.blp +@@ -1,13 +1,13 @@ + using Gtk 4.0; + using Adw 1; + +-template $ExmUpgradeAssistant : Adw.Dialog { +- content-width: 400; +- content-height: 600; ++template $ExmUpgradeAssistant : Adw.Window { ++ default-width: 400; ++ default-height: 550; + title: _("Upgrade Assistant"); + notify::manager => $on_bind_manager(); + +- child: Adw.ToolbarView { ++ Adw.ToolbarView { + + [top] + Adw.HeaderBar {} +@@ -136,5 +136,5 @@ template $ExmUpgradeAssistant : Adw.Dialog { + }; + } + }; +- }; ++ } + } +diff --git a/src/exm-upgrade-assistant.c b/src/exm-upgrade-assistant.c +index 6eca4c7..a93b5e1 100644 +--- a/src/exm-upgrade-assistant.c ++++ b/src/exm-upgrade-assistant.c +@@ -28,7 +28,7 @@ + + struct _ExmUpgradeAssistant + { +- AdwDialog parent_instance; ++ AdwWindow parent_instance; + + // Auxiliary Classes + ExmManager *manager; +@@ -66,7 +66,7 @@ struct _ExmUpgradeAssistant + GtkButton *copy_details; + }; + +-G_DEFINE_FINAL_TYPE (ExmUpgradeAssistant, exm_upgrade_assistant, ADW_TYPE_DIALOG) ++G_DEFINE_FINAL_TYPE (ExmUpgradeAssistant, exm_upgrade_assistant, ADW_TYPE_WINDOW) + + enum { + PROP_0, +@@ -657,6 +657,8 @@ exm_upgrade_assistant_class_init (ExmUpgradeAssistantClass *klass) + gtk_widget_class_bind_template_callback (widget_class, do_compatibility_check); + gtk_widget_class_bind_template_callback (widget_class, copy_to_clipboard); + gtk_widget_class_bind_template_callback (widget_class, on_bind_manager); ++ ++ gtk_widget_class_add_binding_action (widget_class, GDK_KEY_Escape, 0, "window.close", NULL); + } + + static void +diff --git a/src/exm-upgrade-assistant.h b/src/exm-upgrade-assistant.h +index 11322d5..d0c58ff 100644 +--- a/src/exm-upgrade-assistant.h ++++ b/src/exm-upgrade-assistant.h +@@ -28,7 +28,7 @@ + + #define EXM_TYPE_UPGRADE_ASSISTANT (exm_upgrade_assistant_get_type()) + +- G_DECLARE_FINAL_TYPE (ExmUpgradeAssistant, exm_upgrade_assistant, EXM, UPGRADE_ASSISTANT, AdwDialog) ++ G_DECLARE_FINAL_TYPE (ExmUpgradeAssistant, exm_upgrade_assistant, EXM, UPGRADE_ASSISTANT, AdwWindow) + + ExmUpgradeAssistant *exm_upgrade_assistant_new (ExmManager *manager); + +diff --git a/src/exm-window.c b/src/exm-window.c +index 5c81c82..96c91b9 100644 +--- a/src/exm-window.c ++++ b/src/exm-window.c +@@ -308,7 +308,9 @@ show_upgrade_assistant (GtkWidget *widget, + self = EXM_WINDOW (widget); + + ExmUpgradeAssistant *assistant = exm_upgrade_assistant_new (self->manager); +- adw_dialog_present (ADW_DIALOG (assistant), widget); ++ gtk_window_set_modal (GTK_WINDOW (assistant), TRUE); ++ gtk_window_set_transient_for (GTK_WINDOW (assistant), GTK_WINDOW (self)); ++ gtk_window_present (GTK_WINDOW (assistant)); + } + + static void +-- +2.43.0 + + +From 945c2e3b1b454d16f84a46bcbcb227256886bb68 Mon Sep 17 00:00:00 2001 +From: Yuan Liao <liaoyuan@gmail.com> +Date: Thu, 14 Mar 2024 10:44:51 -0400 +Subject: [PATCH 2/4] Revert "comment-dialog: Port AdwWindow to AdwDialog" + +This reverts commit e79dd0771243646a8062a413fc58f61102d5a4f1. + +The reverted commit migrates the application to libadwaita 1.5; this +should not have been done because libadwaita 1.5 has not been released. + +Signed-off-by: Yuan Liao <liaoyuan@gmail.com> +--- + src/exm-comment-dialog.blp | 10 +++++----- + src/exm-comment-dialog.c | 6 ++++-- + src/exm-comment-dialog.h | 2 +- + src/exm-detail-view.c | 5 ++++- + 4 files changed, 14 insertions(+), 9 deletions(-) + +diff --git a/src/exm-comment-dialog.blp b/src/exm-comment-dialog.blp +index 50853a6..1fbde6b 100644 +--- a/src/exm-comment-dialog.blp ++++ b/src/exm-comment-dialog.blp +@@ -1,14 +1,14 @@ + using Gtk 4.0; + using Adw 1; + +-template $ExmCommentDialog : Adw.Dialog { +- content-width: 600; +- content-height: 600; ++template $ExmCommentDialog : Adw.Window { ++ default-width: 600; ++ default-height: 500; + width-request: 360; + height-request: 294; + title: _("Comments"); + +- child: Adw.ToolbarView { ++ Adw.ToolbarView { + + [top] + Adw.HeaderBar {} +@@ -61,5 +61,5 @@ template $ExmCommentDialog : Adw.Dialog { + } + } + }; +- }; ++ } + } +diff --git a/src/exm-comment-dialog.c b/src/exm-comment-dialog.c +index 3404a2f..621c5f7 100644 +--- a/src/exm-comment-dialog.c ++++ b/src/exm-comment-dialog.c +@@ -7,7 +7,7 @@ + + struct _ExmCommentDialog + { +- AdwDialog parent_instance; ++ AdwWindow parent_instance; + + ExmCommentProvider *comment_provider; + +@@ -17,7 +17,7 @@ struct _ExmCommentDialog + int web_id; + }; + +-G_DEFINE_FINAL_TYPE (ExmCommentDialog, exm_comment_dialog, ADW_TYPE_DIALOG) ++G_DEFINE_FINAL_TYPE (ExmCommentDialog, exm_comment_dialog, ADW_TYPE_WINDOW) + + enum { + PROP_0, +@@ -106,6 +106,8 @@ exm_comment_dialog_class_init (ExmCommentDialogClass *klass) + + gtk_widget_class_bind_template_child (widget_class, ExmCommentDialog, list_box); + gtk_widget_class_bind_template_child (widget_class, ExmCommentDialog, stack); ++ ++ gtk_widget_class_add_binding_action (widget_class, GDK_KEY_Escape, 0, "window.close", NULL); + } + + static GtkWidget * +diff --git a/src/exm-comment-dialog.h b/src/exm-comment-dialog.h +index 1abd584..4d99a35 100644 +--- a/src/exm-comment-dialog.h ++++ b/src/exm-comment-dialog.h +@@ -8,7 +8,7 @@ G_BEGIN_DECLS + + #define EXM_TYPE_COMMENT_DIALOG (exm_comment_dialog_get_type()) + +-G_DECLARE_FINAL_TYPE (ExmCommentDialog, exm_comment_dialog, EXM, COMMENT_DIALOG, AdwDialog) ++G_DECLARE_FINAL_TYPE (ExmCommentDialog, exm_comment_dialog, EXM, COMMENT_DIALOG, AdwWindow) + + ExmCommentDialog *exm_comment_dialog_new (int web_id); + +diff --git a/src/exm-detail-view.c b/src/exm-detail-view.c +index 2c9f4f0..f687fed 100644 +--- a/src/exm-detail-view.c ++++ b/src/exm-detail-view.c +@@ -273,7 +273,10 @@ show_more_comments (GtkButton *button, + dlg = exm_comment_dialog_new (self->pk); + toplevel = gtk_widget_get_root (GTK_WIDGET (self)); + +- adw_dialog_present (ADW_DIALOG (dlg), GTK_WIDGET (toplevel)); ++ gtk_window_set_transient_for (GTK_WINDOW (dlg), GTK_WINDOW (toplevel)); ++ gtk_window_set_modal (GTK_WINDOW (dlg), TRUE); ++ ++ gtk_window_present (GTK_WINDOW (dlg)); + } + + static void +-- +2.43.0 + + +From 27ff5664e5f5f6c7401db436f188edcdf8d46b54 Mon Sep 17 00:00:00 2001 +From: Yuan Liao <liaoyuan@gmail.com> +Date: Thu, 14 Mar 2024 10:44:58 -0400 +Subject: [PATCH 3/4] Revert "window: Port AdwMessageDialog to AdwAlertDialog" + +This reverts commit 3808e70cd75fe410d9a2e06ef54da024a7c29b2c. + +The reverted commit migrates the application to libadwaita 1.5; this +should not have been done because libadwaita 1.5 has not been released. + +Signed-off-by: Yuan Liao <liaoyuan@gmail.com> +--- + src/exm-window.c | 56 +++++++++++++++++++++++++----------------------- + 1 file changed, 29 insertions(+), 27 deletions(-) + +diff --git a/src/exm-window.c b/src/exm-window.c +index 96c91b9..5921247 100644 +--- a/src/exm-window.c ++++ b/src/exm-window.c +@@ -123,11 +123,11 @@ typedef struct + } RemoveDialogData; + + static void +-extension_remove_dialog_response (AdwDialog *dialog, ++extension_remove_dialog_response (GtkDialog *dialog, + const char *response, + RemoveDialogData *data) + { +- adw_dialog_force_close (dialog); ++ gtk_window_destroy (GTK_WINDOW (dialog)); + + if (strcmp(response, "yes") == 0) + { +@@ -153,27 +153,28 @@ extension_remove (GtkWidget *widget, + + extension = exm_manager_get_by_uuid (self->manager, uuid); + +- AdwDialog *dlg; ++ GtkWidget *dlg; + +- dlg = adw_alert_dialog_new (_("Uninstall Extension?"), +- _("The extension's features and functionality will no longer be accessible. Are you sure you want to uninstall?")); ++ dlg = adw_message_dialog_new (GTK_WINDOW (self), ++ _("Uninstall Extension?"), ++ _("The extension's features and functionality will no longer be accessible. Are you sure you want to uninstall?")); + +- adw_alert_dialog_add_responses (ADW_ALERT_DIALOG (dlg), +- "no", _("_No"), +- "yes", _("_Yes"), +- NULL); ++ adw_message_dialog_add_responses (ADW_MESSAGE_DIALOG (dlg), ++ "no", _("_No"), ++ "yes", _("_Yes"), ++ NULL); + +- adw_alert_dialog_set_response_appearance (ADW_ALERT_DIALOG (dlg), "yes", ADW_RESPONSE_DESTRUCTIVE); ++ adw_message_dialog_set_response_appearance (ADW_MESSAGE_DIALOG (dlg), "yes", ADW_RESPONSE_DESTRUCTIVE); + +- adw_alert_dialog_set_default_response (ADW_ALERT_DIALOG (dlg), "no"); +- adw_alert_dialog_set_close_response (ADW_ALERT_DIALOG (dlg), "no"); ++ adw_message_dialog_set_default_response (ADW_MESSAGE_DIALOG (dlg), "no"); ++ adw_message_dialog_set_close_response (ADW_MESSAGE_DIALOG (dlg), "no"); + + RemoveDialogData *data = g_new0 (RemoveDialogData, 1); + data->manager = g_object_ref (self->manager); + data->extension = g_object_ref (extension); + + g_signal_connect (dlg, "response", G_CALLBACK (extension_remove_dialog_response), data); +- adw_dialog_present (dlg, GTK_WIDGET (self)); ++ gtk_window_present (GTK_WINDOW (dlg)); + } + + static void +@@ -195,11 +196,11 @@ typedef struct + } UnsupportedDialogData; + + static void +-extension_unsupported_dialog_response (AdwDialog *dialog, ++extension_unsupported_dialog_response (GtkDialog *dialog, + const char *response, + UnsupportedDialogData *data) + { +- adw_dialog_force_close (dialog); ++ gtk_window_destroy (GTK_WINDOW (dialog)); + + if (strcmp(response, "yes") == 0) + { +@@ -227,28 +228,29 @@ extension_install (GtkWidget *widget, + + if (warn) + { +- AdwDialog *dlg; ++ GtkWidget *dlg; + +- dlg = adw_alert_dialog_new (_("Unsupported Extension"), +- _("This extension does not support your GNOME Shell version. It may cause errors if installed.")); ++ dlg = adw_message_dialog_new (GTK_WINDOW (self), ++ _("Unsupported Extension"), ++ _("This extension does not support your GNOME Shell version. It may cause errors if installed.")); + +- adw_alert_dialog_add_responses (ADW_ALERT_DIALOG (dlg), +- "yes", _("_Install Anyway"), +- "no", _("_Go Back"), +- NULL); ++ adw_message_dialog_add_responses (ADW_MESSAGE_DIALOG (dlg), ++ "yes", _("_Install Anyway"), ++ "no", _("_Go Back"), ++ NULL); + +- adw_alert_dialog_set_response_appearance (ADW_ALERT_DIALOG (dlg), "yes", ADW_RESPONSE_DESTRUCTIVE); +- adw_alert_dialog_set_response_appearance (ADW_ALERT_DIALOG (dlg), "no", ADW_RESPONSE_SUGGESTED); ++ adw_message_dialog_set_response_appearance (ADW_MESSAGE_DIALOG (dlg), "yes", ADW_RESPONSE_DESTRUCTIVE); ++ adw_message_dialog_set_response_appearance (ADW_MESSAGE_DIALOG (dlg), "no", ADW_RESPONSE_SUGGESTED); + +- adw_alert_dialog_set_default_response (ADW_ALERT_DIALOG (dlg), "no"); +- adw_alert_dialog_set_close_response (ADW_ALERT_DIALOG (dlg), "no"); ++ adw_message_dialog_set_default_response (ADW_MESSAGE_DIALOG (dlg), "no"); ++ adw_message_dialog_set_close_response (ADW_MESSAGE_DIALOG (dlg), "no"); + + UnsupportedDialogData *data = g_new0 (UnsupportedDialogData, 1); + data->manager = g_object_ref (self->manager); + data->uuid = g_strdup (uuid); + + g_signal_connect (dlg, "response", G_CALLBACK (extension_unsupported_dialog_response), data); +- adw_dialog_present (dlg, GTK_WIDGET (self)); ++ gtk_window_present (GTK_WINDOW (dlg)); + + return; + } +-- +2.43.0 + + +From e2aedc3f7e8aaa214404d4dacf614186fc07e1be Mon Sep 17 00:00:00 2001 +From: Yuan Liao <liaoyuan@gmail.com> +Date: Thu, 14 Mar 2024 10:45:05 -0400 +Subject: [PATCH 4/4] Revert "application: Port AdwAboutWindow to + AdwAboutDialog" + +This reverts commit 49ecc2b364e532d72fca090ba2b5b7f61f82195f. + +The reverted commit migrates the application to libadwaita 1.5; this +should not have been done because libadwaita 1.5 has not been released. + +Signed-off-by: Yuan Liao <liaoyuan@gmail.com> +--- + src/exm-application.c | 24 +++++++++++++----------- + 1 file changed, 13 insertions(+), 11 deletions(-) + +diff --git a/src/exm-application.c b/src/exm-application.c +index 1cd80b5..03c1995 100644 +--- a/src/exm-application.c ++++ b/src/exm-application.c +@@ -177,43 +177,45 @@ exm_application_show_about (GSimpleAction *action, + GtkWindow *window = NULL; + const gchar *authors[] = {"Matthew Jakeman", NULL}; + +- AdwDialog *about_dialog; ++ GtkWidget *about_window; + + g_return_if_fail (EXM_IS_APPLICATION (self)); + + window = gtk_application_get_active_window (GTK_APPLICATION (self)); + +- about_dialog = adw_about_dialog_new_from_appdata ("/com/mattjakeman/ExtensionManager/com.mattjakeman.ExtensionManager.metainfo.xml", ++ about_window = adw_about_window_new_from_appdata ("/com/mattjakeman/ExtensionManager/com.mattjakeman.ExtensionManager.metainfo.xml", + strstr (APP_ID, ".Devel") == NULL ? APP_VERSION : NULL); ++ gtk_window_set_modal (GTK_WINDOW (about_window), TRUE); ++ gtk_window_set_transient_for (GTK_WINDOW (about_window), window); + +- adw_about_dialog_set_version (ADW_ABOUT_DIALOG (about_dialog), APP_VERSION); +- adw_about_dialog_set_comments (ADW_ABOUT_DIALOG (about_dialog), _("Browse, install, and manage GNOME Shell Extensions.")); +- adw_about_dialog_set_developers (ADW_ABOUT_DIALOG (about_dialog), authors); +- adw_about_dialog_set_translator_credits (ADW_ABOUT_DIALOG (about_dialog), _("translator-credits")); +- adw_about_dialog_set_copyright (ADW_ABOUT_DIALOG (about_dialog), "© 2022 Matthew Jakeman"); ++ adw_about_window_set_version (ADW_ABOUT_WINDOW (about_window), APP_VERSION); ++ adw_about_window_set_comments (ADW_ABOUT_WINDOW (about_window), _("Browse, install, and manage GNOME Shell Extensions.")); ++ adw_about_window_set_developers (ADW_ABOUT_WINDOW (about_window), authors); ++ adw_about_window_set_translator_credits (ADW_ABOUT_WINDOW (about_window), _("translator-credits")); ++ adw_about_window_set_copyright (ADW_ABOUT_WINDOW (about_window), "© 2022 Matthew Jakeman"); + + // Dependency Attribution +- adw_about_dialog_add_legal_section (ADW_ABOUT_DIALOG (about_dialog), ++ adw_about_window_add_legal_section (ADW_ABOUT_WINDOW (about_window), + "text-engine", + "Copyright (C) 2022 Matthew Jakeman", + GTK_LICENSE_MPL_2_0, + NULL); + + #if WITH_BACKTRACE +- adw_about_dialog_add_legal_section (ADW_ABOUT_DIALOG (about_dialog), ++ adw_about_window_add_legal_section (ADW_ABOUT_WINDOW (about_window), + "libbacktrace", + "Copyright (C) 2012-2016 Free Software Foundation, Inc.", + GTK_LICENSE_BSD_3, + NULL); + #endif + +- adw_about_dialog_add_legal_section (ADW_ABOUT_DIALOG (about_dialog), ++ adw_about_window_add_legal_section (ADW_ABOUT_WINDOW (about_window), + "blueprint", + "Copyright (C) 2021 James Westman", + GTK_LICENSE_LGPL_3_0, + NULL); + +- adw_dialog_present (about_dialog, GTK_WIDGET (window)); ++ gtk_window_present (GTK_WINDOW (about_window)); + } + + static void +-- +2.43.0 + diff --git a/gnome-extra/extension-manager/files/extension-manager-0.5.1-frames_omitted_count.patch b/gnome-extra/extension-manager/files/extension-manager-0.5.1-frames_omitted_count.patch new file mode 100644 index 000000000..62b2e2f82 --- /dev/null +++ b/gnome-extra/extension-manager/files/extension-manager-0.5.1-frames_omitted_count.patch @@ -0,0 +1,56 @@ +From f3768fb0227c714d7ed0613a28142613aa4a9c6b Mon Sep 17 00:00:00 2001 +From: Yuan Liao <liaoyuan@gmail.com> +Date: Mon, 29 Apr 2024 13:40:41 -0400 +Subject: [PATCH] backtrace: Define static functions only if `WITH_BACKTRACE` +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The static functions are internal to file exm-backtrace.c and are only +used to facilitate backtrace collection. In build configurations with +backtraces disabled ('meson setup -Dbacktrace=false'), +exm_backtrace_print() will not call the static functions, so they are +unused and thus need not be defined. + +Previously, due to how the preprocessor macros were arranged, the static +variables in this file would not be defined when backtraces are +disabled; if any static functions use them, then builds with backtraces +disabled would fail due to a compiler error like: + + ../extension-manager-0.5.1/src/exm-backtrace.c: In function ‘exm_backtrace_full_cb’: + ../extension-manager-0.5.1/src/exm-backtrace.c:58:9: error: ‘frames_omitted_count’ undeclared (first use in this function) + 58 | frames_omitted_count++; + | + +This commit fixes such errors when backtraces are disabled. + +Fixes: dcc312e (Make libbacktrace an optional dependency, 2023-06-03) +Fixes: d63d301 (backtrace: Collate 'null' messages, 2024-04-01) +Signed-off-by: Yuan Liao <liaoyuan@gmail.com> +--- + src/exm-backtrace.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/exm-backtrace.c b/src/exm-backtrace.c +index b6c3ae3..e7a449a 100644 +--- a/src/exm-backtrace.c ++++ b/src/exm-backtrace.c +@@ -33,7 +33,6 @@ + #if WITH_BACKTRACE + static struct backtrace_state *state = NULL; + static int frames_omitted_count = 0; +-#endif + + static void + exm_backtrace_error_cb (void *data, +@@ -71,6 +70,7 @@ exm_backtrace_full_cb (GString *string_builder, + + return 0; + } ++#endif + + void + exm_backtrace_init (char *filename) +-- +2.43.2 + diff --git a/gnome-extra/extension-manager/metadata.xml b/gnome-extra/extension-manager/metadata.xml new file mode 100644 index 000000000..28b7fe5dd --- /dev/null +++ b/gnome-extra/extension-manager/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>liaoyuan@gmail.com</email> + <name>Yuan Liao</name> + </maintainer> + <upstream> + <remote-id type="github">mjakeman/extension-manager</remote-id> + </upstream> +</pkgmetadata> diff --git a/gnome-extra/iio-sensor-proxy/Manifest b/gnome-extra/iio-sensor-proxy/Manifest index 86adb40c6..545d7134a 100644 --- a/gnome-extra/iio-sensor-proxy/Manifest +++ b/gnome-extra/iio-sensor-proxy/Manifest @@ -1 +1,2 @@ -DIST iio-sensor-proxy-3.1.tar.gz 63372 BLAKE2B 2ecae89796e72184d19c00f88cd2f2cde18307d47ed17e4c836fdd02604847c165fcc56250ecf85fddba99c8ff72b1bb2209fa2a16a4fbc4dbe9d021761524a3 SHA512 cd5891db3929dc1487c3da7d64ba62d4106c09889ba73a100fe4b5cda15470e00ece71a61042a6bdd1f9896a78a8460acff5bcd8fc794401aa1013481cf47fb1 +DIST iio-sensor-proxy-3.3.tar.gz 64225 BLAKE2B 25608bd615dcd2c027ed157eed3030064bfb517250dee0fc7cb18625930508bfe0871a496457fe3d04821a803c2e5500d319a978f8279d766f6a8230d365513a SHA512 f5c5e60e888be54ace4f0f2bb941fccce21b122c0755050f91aebe8dfa9e2c126e6de57dd80873ea7148fc2dfc087b23823f29d73a223c68d531502d06438ee3 +DIST iio-sensor-proxy-3.5.tar.bz2 60157 BLAKE2B e6b70e5d99a1a1e0935f86ecbed614b3859757a573897e03d0112509b166cb5ac4a80f31531c81f740efd22c937d921c2c05ec201f381c39efd9aa40855ecb26 SHA512 96fbbf163053689c61488181db474c1ff8e66090b3f9c2710b1c7fbfa92ec0bfb25088c7af74bcda568b397cd5c5c9350851d005463398bdf91e13f52e5fb88f diff --git a/gnome-extra/iio-sensor-proxy/files/iio-sensor-proxy b/gnome-extra/iio-sensor-proxy/files/iio-sensor-proxy new file mode 100755 index 000000000..b32f9b76f --- /dev/null +++ b/gnome-extra/iio-sensor-proxy/files/iio-sensor-proxy @@ -0,0 +1,9 @@ +#!/sbin/openrc-run + +command=/usr/libexec/iio-sensor-proxy +command_background=yes +pidfile=/run/iio-sensor-proxy.pid + +depend() { + need dbus localmount +} diff --git a/gnome-extra/iio-sensor-proxy/files/no-systemd.patch b/gnome-extra/iio-sensor-proxy/files/no-systemd.patch new file mode 100644 index 000000000..ff533f8b4 --- /dev/null +++ b/gnome-extra/iio-sensor-proxy/files/no-systemd.patch @@ -0,0 +1,32 @@ +--- iio-sensor-proxy-${PV}/meson.build ++++ iio-sensor-proxy-${PV}/meson.build +@@ -34,11 +34,7 @@ + udev_dep = dependency('udev') + udev_rules_dir = udev_dep.get_pkgconfig_variable('udevdir') + '/rules.d' + endif +-systemd_system_unit_dir = get_option('systemdsystemunitdir') +-if systemd_system_unit_dir == 'auto' +- systemd_dep = dependency('systemd') +- systemd_system_unit_dir = systemd_dep.get_pkgconfig_variable('systemdsystemunitdir') +-endif ++systemd_system_unit_dir = '/lib/systemd/system' + if get_option('gtk-tests') + gtk_dep = dependency('gtk+-3.0', required: false) + endif + +--- iio-sensor-proxy-${PV}/data/meson.build ++++ iio-sensor-proxy-${PV}/data/meson.build +@@ -8,13 +8,6 @@ + data_conf.set('geoclue_user', get_option('geoclue-user')) + + configure_file( +- input: 'iio-sensor-proxy.service.in', +- output: 'iio-sensor-proxy.service', +- configuration: data_conf, +- install_dir: systemd_system_unit_dir, +-) +- +-configure_file( + input: 'net.hadess.SensorProxy.conf.in', + output: 'net.hadess.SensorProxy.conf', + configuration: data_conf, diff --git a/gnome-extra/iio-sensor-proxy/iio-sensor-proxy-3.1.ebuild b/gnome-extra/iio-sensor-proxy/iio-sensor-proxy-3.3.ebuild index d713e9dbb..b28336f77 100644 --- a/gnome-extra/iio-sensor-proxy/iio-sensor-proxy-3.1.ebuild +++ b/gnome-extra/iio-sensor-proxy/iio-sensor-proxy-3.3.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit gnome2-utils meson systemd udev +inherit xdg gnome2-utils meson DESCRIPTION="IIO sensors to D-Bus proxy" HOMEPAGE="https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/" @@ -12,13 +12,13 @@ SRC_URI="https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/archive/${PV}/ LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~arm64" -RESTRICT="test" IUSE="+systemd" +RESTRICT="test" RDEPEND=" dev-libs/glib:* gnome-base/gnome-common - dev-libs/libgudev + >=dev-libs/libgudev-237 systemd? ( !sys-apps/openrc sys-apps/systemd @@ -28,7 +28,7 @@ RDEPEND=" DEPEND=" ${RDEPEND} - dev-util/gtk-doc-am + dev-build/gtk-doc-am virtual/pkgconfig " diff --git a/gnome-extra/iio-sensor-proxy/iio-sensor-proxy-3.5.ebuild b/gnome-extra/iio-sensor-proxy/iio-sensor-proxy-3.5.ebuild new file mode 100644 index 000000000..8a766c811 --- /dev/null +++ b/gnome-extra/iio-sensor-proxy/iio-sensor-proxy-3.5.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit xdg gnome2-utils meson + +DESCRIPTION="IIO sensors to D-Bus proxy" +HOMEPAGE="https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/" +SRC_URI="https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/archive/${PV}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="systemd" + +RDEPEND=" + dev-libs/glib:* + gnome-base/gnome-common + >=sys-auth/polkit-0.91 + >=dev-libs/libgudev-237 + systemd? ( + !sys-apps/openrc + sys-apps/systemd + ) + virtual/udev +" + +DEPEND=" + ${RDEPEND} + dev-build/gtk-doc-am + virtual/pkgconfig +" + +src_prepare() { + if use !systemd ; then + echo "patching out systemd" + # patch out call of systemd directory + eapply "${FILESDIR}/no-systemd.patch" + # eapply "${FILESDIR}/open_rc_service.patch" + fi + eapply_user +} + +src_install() { + meson_src_install + doinitd ${FILESDIR}/iio-sensor-proxy +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} diff --git a/gnome-extra/iio-sensor-proxy/metadata.xml b/gnome-extra/iio-sensor-proxy/metadata.xml index b372191c7..dc5f0f789 100644 --- a/gnome-extra/iio-sensor-proxy/metadata.xml +++ b/gnome-extra/iio-sensor-proxy/metadata.xml @@ -1,5 +1,8 @@ -<?xml version='1.0' encoding='UTF-8'?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <!-- maintainer-needed --> + <upstream> + <remote-id type="freedesktop-gitlab">hadess/iio-sensor-proxy</remote-id> + </upstream> </pkgmetadata> diff --git a/gnome-extra/junction/Manifest b/gnome-extra/junction/Manifest new file mode 100644 index 000000000..eb93090f9 --- /dev/null +++ b/gnome-extra/junction/Manifest @@ -0,0 +1,2 @@ +DIST junction-1.7.tar.gz 1883600 BLAKE2B 261a94864f5cba08d15ce688b23edab75840dbb273d9a897e6c28ce5b828fabf17ea27ee801232a5efd03b18f8c75a37aac3c2c8de01ef253f8b8626e08cd0c0 SHA512 82bc0bb7d9a0c0c5bf3151c27727673c0bbf998cdc8f6a87a15087d3fbfca320420e5b929816481a12a1c6d1cf75a7a5b8d2b717aadc60a2e3b0c6a3328acc16 +DIST troll-junction-1.7.tar.gz 474867 BLAKE2B f934616326e288e8b35109c2b001fd02af4bd9a2349b4fe4989ceed01909cf2e95344e556977513c39c66cd862157150d92cddb237f1b4414725c7c07ec9ad85 SHA512 0788b314f49111cfa7d3c6f9c67189b60e61de8bf1adbd6f974f94ca45343a6d0127e9621eafb0f732e5cb46b1a0f0e26059eb65b35c44a7e3e7c67f31429c80 diff --git a/gnome-extra/junction/junction-1.7-r1.ebuild b/gnome-extra/junction/junction-1.7-r1.ebuild new file mode 100644 index 000000000..8b941c733 --- /dev/null +++ b/gnome-extra/junction/junction-1.7-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit gnome2-utils meson + +TROLL_COMMIT="94ced56f1b08e6955f6c8325a04c74736d39b823" + +DESCRIPTION="Application/browser chooser" +HOMEPAGE=" + https://apps.gnome.org/app/re.sonny.Junction/ + https://github.com/sonnyp/Junction +" +SRC_URI=" + https://github.com/sonnyp/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/sonnyp/troll/archive/${TROLL_COMMIT}.tar.gz -> troll-${P}.tar.gz +" + +S="${WORKDIR}/${PN^}-${PV}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + dev-libs/gjs + dev-libs/glib:2 +" +RDEPEND="${DEPEND} + dev-libs/gobject-introspection + dev-libs/libportal[introspection,gtk] + gui-libs/gtk:4[introspection] + gui-libs/libadwaita:1[introspection] + net-libs/libsoup:3.0[introspection] +" +BDEPEND=" + dev-util/blueprint-compiler + sys-devel/gettext +" + +src_prepare() { + default + + rmdir "${S}"/troll || die + mv "${WORKDIR}"/troll-${TROLL_COMMIT} "${S}"/troll || die + + # https://github.com/sonnyp/Junction/issues/115 + sed \ + 's#XDG_DATA_DIRS=\(.*\) gjs#XDG_DATA_DIRS=\1:/usr/local/share/:/usr/share/ gjs#' \ + -i src/bin.js || die +} + +# only data files validators, skip them +src_test() { + : +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update + gnome2_schemas_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update + gnome2_schemas_update +} diff --git a/gnome-extra/junction/metadata.xml b/gnome-extra/junction/metadata.xml new file mode 100644 index 000000000..0de5a0a4e --- /dev/null +++ b/gnome-extra/junction/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>ran.dall@icloud.com</email> + <name>Randall Vasquez</name> + </maintainer> + <upstream> + <remote-id type="github">sonnyp/Junction</remote-id> + </upstream> +</pkgmetadata> diff --git a/gnome-extra/portfolio/Manifest b/gnome-extra/portfolio/Manifest index 2a18786f6..1092f1d39 100644 --- a/gnome-extra/portfolio/Manifest +++ b/gnome-extra/portfolio/Manifest @@ -1,2 +1 @@ -DIST portfolio-0.9.10.tar.gz 406682 BLAKE2B 988619fc37d7215e923959a3155c2268e6d61c93d7b1e3ece9f3ce1ea1afa45930f44ad4cd85cba71c018c18939f7585a48ab84e908359efdf378fdb646dd02c SHA512 5182c88bc5d00f8f307cf6c23f636a1e4d9fdd79e662cd6a1cb90c80380b9108df0fe5f07f6dd79df40fa14a57dbeeafb324a83961e399d07b5c6bef0007558d -DIST portfolio-0.9.12.tar.gz 435111 BLAKE2B 0094dc94ab091f7355d68233ed80dc300348fe135a916247e20408e3e516633e433323040c6531cb599321673bc84c1c7e19a53cef7dac3cfab197ac5ff05e4c SHA512 a86f1f4d730f3ef374a70715783103e1221653d2c39e420a9803c59afa67f159ae4d1680f260571566fbd95566542898b2d13adf55d897c949f43ad5d395d3e2 +DIST portfolio-0.9.14.tar.gz 440629 BLAKE2B 17e6fa353e314fecf8c1e08f18d8619eda0a800b9f0a805426af85da7e0c934a8fbde84d5f47c987297ebddf6f3e9474e957432460f317b703009d908c1dd0dd SHA512 d69b12751647006841c1025e752befc505238ffca856a0cb5fd771052ded6cdea021c2ff7c629bdfd6b7c550fb93adb0224b0a9d7449ada54068eea23f60ca8f diff --git a/gnome-extra/portfolio/metadata.xml b/gnome-extra/portfolio/metadata.xml index dfca8c508..9d79053ff 100644 --- a/gnome-extra/portfolio/metadata.xml +++ b/gnome-extra/portfolio/metadata.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> <email>gjdijkman@gjdwebserver.nl</email> @@ -8,5 +8,6 @@ <upstream> <doc>https://github.com/tchx84/Portfolio</doc> <bugs-to>https://github.com/tchx84/Portfolio/issues</bugs-to> + <remote-id type="github">tchx84/Portfolio</remote-id> </upstream> </pkgmetadata> diff --git a/gnome-extra/portfolio/portfolio-0.9.12.ebuild b/gnome-extra/portfolio/portfolio-0.9.12.ebuild deleted file mode 100644 index 9ba475669..000000000 --- a/gnome-extra/portfolio/portfolio-0.9.12.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{8..10} ) - -inherit gnome2-utils meson python-single-r1 xdg - -DESCRIPTION="A minimalist file manager for those who want to use Linux mobile devices" -HOMEPAGE="https://github.com/tchx84/Portfolio" -SRC_URI="https://github.com/tchx84/Portfolio/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~arm64" -RESTRICT="test" - -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND=" - ${PYTHON_DEPS} - gui-libs/libhandy - x11-libs/gtk+ -" - -S="${WORKDIR}"/Portfolio-"${PV}" - -src_prepare() { - default - # shebang fixing craziness - sed -i -e 's|\@PYTHON\@|/usr/bin/python|' src/dev.tchx84.Portfolio.in -} - -src_install() { - meson_src_install - python_optimize "${ED}"/usr/lib/ -} - -pkg_postinst() { - xdg_pkg_postinst - gnome2_schemas_update -} - -pkg_postrm() { - xdg_pkg_postrm - gnome2_schemas_update -} diff --git a/gnome-extra/portfolio/portfolio-0.9.10.ebuild b/gnome-extra/portfolio/portfolio-0.9.14.ebuild index 9ba475669..24a3683fd 100644 --- a/gnome-extra/portfolio/portfolio-0.9.10.ebuild +++ b/gnome-extra/portfolio/portfolio-0.9.14.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit gnome2-utils meson python-single-r1 xdg @@ -11,6 +11,8 @@ DESCRIPTION="A minimalist file manager for those who want to use Linux mobile de HOMEPAGE="https://github.com/tchx84/Portfolio" SRC_URI="https://github.com/tchx84/Portfolio/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/Portfolio-"${PV}" + LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~arm64" @@ -24,8 +26,6 @@ RDEPEND=" x11-libs/gtk+ " -S="${WORKDIR}"/Portfolio-"${PV}" - src_prepare() { default # shebang fixing craziness diff --git a/gnome-extra/vvmplayer/Manifest b/gnome-extra/vvmplayer/Manifest new file mode 100644 index 000000000..f3cdb6fde --- /dev/null +++ b/gnome-extra/vvmplayer/Manifest @@ -0,0 +1 @@ +DIST vvmplayer-1.4.tar.gz 302738 BLAKE2B b33a1974507885e8d127e8fee4b9457ae761099b22b1a4109189def834823828d85476a7e248badda7f830349b6e8ef8199c9647dba2c69a3544bc867fd2948d SHA512 98d61756ad5de388dfa8c3a305e69b901fd86a3412519371074b269677f6a4ec5e83db6c1a84125e609ed5787d1aa867be14edb4df1c22e9c4166a3781c0f8c5 diff --git a/gnome-extra/vvmplayer/metadata.xml b/gnome-extra/vvmplayer/metadata.xml new file mode 100644 index 000000000..657cee8d3 --- /dev/null +++ b/gnome-extra/vvmplayer/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>gjdijkman@gjdwebserver.nl</email> + <name>Gerben Jan Dijkman</name> + </maintainer> + <upstream> + <doc>https://gitlab.com/kop316/vvmplayer/</doc> + <bugs-to>https://gitlab.com/kop316/vvmplayer/-/issues</bugs-to> + <remote-id type="gitlab">kop316/vvmplayer</remote-id> + </upstream> +</pkgmetadata> diff --git a/gnome-extra/vvmplayer/vvmplayer-1.4.ebuild b/gnome-extra/vvmplayer/vvmplayer-1.4.ebuild new file mode 100644 index 000000000..72e9924a6 --- /dev/null +++ b/gnome-extra/vvmplayer/vvmplayer-1.4.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit gnome2-utils meson xdg + +DESCRIPTION="Visual Voicemail Player" +HOMEPAGE="https://gitlab.com/kop316/vvmplayer" +SRC_URI="https://gitlab.com/kop316/vvmplayer/-/archive/${PV}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +RDEPEND=" + >=dev-libs/glib-2.50 + >=x11-libs/gtk+-3.22.0 + >=gui-libs/libhandy-1.0 + >=media-libs/gstreamer-1.16.0 + gnome-extra/evolution-data-server + media-sound/callaudiod + net-voip/vvmd +" +DEPEND="${RDEPEND}" + +src_install() { + meson_src_install +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} diff --git a/gnome-extra/wike/Manifest b/gnome-extra/wike/Manifest new file mode 100644 index 000000000..b766c451a --- /dev/null +++ b/gnome-extra/wike/Manifest @@ -0,0 +1,2 @@ +DIST wike-3.0.0.gh.tar.gz 4322817 BLAKE2B 4a62be67c3edc46b0e732cf4b0d405c4a715ae371e304399c00b17f2f80b061e14867ae630cb71aa3137884408fe15a571ae7caa56dd2bc0f23399ac958b6e57 SHA512 7e5c268135fee05d225c8e281c56c70b157c5c395f0b0bca2b8e68f585261d6573b118a4fc6eee55997d9ec2ab12a3c61b5e0649c896610a39adb1e065ffc30c +DIST wike-3.0.1.gh.tar.gz 4324025 BLAKE2B 2d0ca8f1e5e7256117b1242115c049ba9387556ab8abe783be650ddcd88887764a6811e1bbd81d6af283bca8555d48df19c5504abd1909a6003f6841796e7250 SHA512 f31e0dff2b1d2f2dbceef63e0c0b59d850791624301bd5ec9e1c9e015ca1503cff03701a8b2867c1a4783fffccb7fecb2517252535a640a3ff3d25f7acf9ea93 diff --git a/gnome-extra/wike/metadata.xml b/gnome-extra/wike/metadata.xml new file mode 100644 index 000000000..6e5f3f58b --- /dev/null +++ b/gnome-extra/wike/metadata.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <name>Julien Roy</name> + <email>julien@jroy.ca</email> + </maintainer> + <longdescription> +Wike is a Wikipedia reader for the GNOME Desktop. Provides access to all the content of this online encyclopedia in a native application, with a simpler and distraction-free view of articles. + +Features + +Open multiple articles in tabs +More than 300 languages +Search suggestions +Bookmarks management +History of recent articles +Table of contents +Text search in articles +Print articles +Light, dark and sepia themes +Desktop and mobile layouts +GNOME Shell search integration + </longdescription> + <upstream> + <maintainer> + <name>Hugo Olabera</name> + <email>hugolabe@gmail.com</email> + </maintainer> + <bugs-to>https://github.com/hugolabe/Wike/issues</bugs-to> + <doc>https://hugolabe.github.io/Wike/</doc> + <remote-id type="github">hugolabe/wike</remote-id> + </upstream> +</pkgmetadata> diff --git a/gnome-extra/wike/wike-3.0.0.ebuild b/gnome-extra/wike/wike-3.0.0.ebuild new file mode 100644 index 000000000..7151e4417 --- /dev/null +++ b/gnome-extra/wike/wike-3.0.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..12} ) +inherit gnome2-utils meson python-single-r1 xdg + +MY_PN="Wike" +DESCRIPTION="Wikipedia Reader for the GNOME Desktop" +HOMEPAGE="https://github.com/hugolabe/Wike" +SRC_URI="https://github.com/hugolabe/${MY_PN}/archive/${PV}/${P}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}/${MY_PN}-${PV}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + dev-python/pygobject + dev-python/requests + gui-libs/gtk + gui-libs/libadwaita + net-libs/libsoup:3.0 + net-libs/webkit-gtk:6 + x11-libs/pango + x11-themes/hicolor-icon-theme +" +BDEPEND=" + dev-libs/appstream-glib + dev-libs/glib:2 + sys-devel/gettext +" + +src_install() { + meson_src_install + python_fix_shebang "${D}/usr/bin/${PN}" +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update + xdg_icon_cache_update +} diff --git a/gnome-extra/wike/wike-3.0.1.ebuild b/gnome-extra/wike/wike-3.0.1.ebuild new file mode 100644 index 000000000..58acc7f55 --- /dev/null +++ b/gnome-extra/wike/wike-3.0.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..12} ) +inherit gnome2-utils meson python-single-r1 xdg + +MY_PN="Wike" +DESCRIPTION="Wikipedia Reader for the GNOME Desktop" +HOMEPAGE="https://github.com/hugolabe/Wike" +SRC_URI="https://github.com/hugolabe/${MY_PN}/archive/${PV}/${P}.tar.gz -> ${P}.gh.tar.gz" +S="${WORKDIR}/${MY_PN}-${PV}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + dev-python/pygobject + dev-python/requests + gui-libs/gtk + gui-libs/libadwaita + net-libs/libsoup:3.0 + net-libs/webkit-gtk:6 + x11-libs/pango + x11-themes/hicolor-icon-theme +" +BDEPEND=" + dev-libs/appstream-glib + dev-libs/glib:2 + sys-devel/gettext +" + +src_install() { + meson_src_install + python_fix_shebang "${D}/usr/bin/${PN}" +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} diff --git a/gnome-extra/yad/Manifest b/gnome-extra/yad/Manifest new file mode 100644 index 000000000..0a63ccc3f --- /dev/null +++ b/gnome-extra/yad/Manifest @@ -0,0 +1 @@ +DIST yad-13.0.tar.xz 298092 BLAKE2B b07e796109daf27471ad74dae91637a297b6a830a7ea5f5386f7c9c4c4effdbc794b92e7e747adb5f0df80540b2fe75ae87856f695d4f578aa5cfbd6ea4b42ab SHA512 89f438a49722b9aa63ec942a200b4684f88e0e2b489b77b909c03208af644c46d22601a072bcbad1c36707013ee308417d73ce08f2494b8962bce9bf06d58a16 diff --git a/gnome-extra/yad/metadata.xml b/gnome-extra/yad/metadata.xml new file mode 100644 index 000000000..13856c99f --- /dev/null +++ b/gnome-extra/yad/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <description>new maintainers welcome</description> + <name>Peter Levine</name> + <email>plevine457@gmail.com</email> + </maintainer> + <upstream> + <maintainer> + <name>Victor Ananjevsky</name> + <email>victor@sanana.kiev.ua</email> + </maintainer> + <bugs-to>https://github.com/v1cont/yad/issues</bugs-to> + <remote-id type="github">v1cont/yad</remote-id> + </upstream> + <use> + <flag name="sourceview">Enable GtkSourceView support with <pkg>x11-libs/gtksourceview</pkg></flag> + <flag name="spell">Enable spell check support with <pkg>app-text/gspell</pkg></flag> + </use> +</pkgmetadata> diff --git a/gnome-extra/yad/yad-13.0.ebuild b/gnome-extra/yad/yad-13.0.ebuild new file mode 100644 index 000000000..35a88eb3c --- /dev/null +++ b/gnome-extra/yad/yad-13.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit gnome2 + +DESCRIPTION="Display GTK+ dialog boxes from command line or shell scripts" +HOMEPAGE="https://github.com/v1cont/yad" +SRC_URI="https://github.com/v1cont/${PN}/releases/download/v${PV}/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="nls sourceview spell webkit" + +DEPEND=" + >=x11-libs/gtk+-3.22.0:3 + sourceview? ( x11-libs/gtksourceview:3.0= ) + spell? ( app-text/gspell:= ) + webkit? ( net-libs/webkit-gtk:4= ) +" +RDEPEND="${DEPEND}" +BDEPEND=">=dev-util/intltool-0.40" + +src_configure() { + gnome2_src_configure \ + $(use_enable nls) \ + $(use_enable sourceview) \ + $(use_enable spell) \ + $(use_enable webkit html) \ + --disable-standalone \ + --enable-icon-browser \ + --enable-tools \ + --enable-tray +} |