From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3762915ACFB for ; Mon, 10 Apr 2023 20:45:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 622A4E075F; Mon, 10 Apr 2023 20:45:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3C4D5E075F for ; Mon, 10 Apr 2023 20:45:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3A5C0335D50 for ; Mon, 10 Apr 2023 20:45:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B56D8920 for ; Mon, 10 Apr 2023 20:45:51 +0000 (UTC) From: "Remigiusz Micielski" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Remigiusz Micielski" Message-ID: <1681159419.fbaa7456ef9a7a407bcb71ecef7e7e25483476ed.remigiusz.micielski@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: gui-libs/xdg-desktop-portal-hyprland/ X-VCS-Repository: repo/proj/guru X-VCS-Files: gui-libs/xdg-desktop-portal-hyprland/Manifest gui-libs/xdg-desktop-portal-hyprland/metadata.xml gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-0.1.0.ebuild gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-9999.ebuild X-VCS-Directories: gui-libs/xdg-desktop-portal-hyprland/ X-VCS-Committer: remigiusz.micielski X-VCS-Committer-Name: Remigiusz Micielski X-VCS-Revision: fbaa7456ef9a7a407bcb71ecef7e7e25483476ed X-VCS-Branch: dev Date: Mon, 10 Apr 2023 20:45:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4773d234-3d3a-4c76-84fe-a573af24e871 X-Archives-Hash: f854f25976af52586edcc769ff3a3e43 commit: fbaa7456ef9a7a407bcb71ecef7e7e25483476ed Author: Remigiusz Micielski gmail com> AuthorDate: Mon Apr 10 20:39:03 2023 +0000 Commit: Remigiusz Micielski gmail com> CommitDate: Mon Apr 10 20:43:39 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fbaa7456 gui-libs/xdg-desktop-portal-hyprland: new package, add 0.1.0, 9999 Signed-off-by: Remigiusz Micielski gmail.com> gui-libs/xdg-desktop-portal-hyprland/Manifest | 1 + gui-libs/xdg-desktop-portal-hyprland/metadata.xml | 26 ++++++++ .../xdg-desktop-portal-hyprland-0.1.0.ebuild | 70 ++++++++++++++++++++++ .../xdg-desktop-portal-hyprland-9999.ebuild | 70 ++++++++++++++++++++++ 4 files changed, 167 insertions(+) diff --git a/gui-libs/xdg-desktop-portal-hyprland/Manifest b/gui-libs/xdg-desktop-portal-hyprland/Manifest new file mode 100644 index 000000000..65ece206d --- /dev/null +++ b/gui-libs/xdg-desktop-portal-hyprland/Manifest @@ -0,0 +1 @@ +DIST xdg-desktop-hyprland-0.1.0.tar.gz 45350 BLAKE2B 7b0349f3d0ff4708df3068d71deecb675109c905e0cea6fa0724a2645267a70038a54e2a9eb536e6dbc0d0a138071ceb91527e0df91c83cda0b57e3cf3b519d2 SHA512 b8cfda484d5d50c7fae33eb020c101990ceb244bdfebac46c9820267697eae76bb1e6261c1b03d8fb0148eb81c64f01c59eb94171cb87407541d20117fa48f18 diff --git a/gui-libs/xdg-desktop-portal-hyprland/metadata.xml b/gui-libs/xdg-desktop-portal-hyprland/metadata.xml new file mode 100644 index 000000000..861c8f883 --- /dev/null +++ b/gui-libs/xdg-desktop-portal-hyprland/metadata.xml @@ -0,0 +1,26 @@ + + + + + remigiusz.micielski@gmail.com + Remigiusz Micielski + + + https://wiki.hyprland.org/hyprland-wiki/pages/Useful-Utilities/Hyprland-desktop-portal/ + hyprwm/xdg-desktop-portal-hyprland + https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues + + + An XDG Desktop Portal (later called XDP) is a program that lets + other applications communicate swiftly with the compositor through + D-Bus. It's used for stuff like e.g. opening file pickers, screen sharing. + On Wayland, it also requires an implementation. For Hyprland, you'd usually + use xdg-desktop-portal-wlr (later called XDPW). Unfortunately, due to various + reasons the -wlr portal is inferior to the KDE or Gnome ones. In order to + bridge the gap, Hyprland has its own fork of XDPW that has more features, + called xdg-desktop-portal-hyprland. + + + Enable support for rootless session via elogind + + diff --git a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-0.1.0.ebuild b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-0.1.0.ebuild new file mode 100644 index 000000000..159404539 --- /dev/null +++ b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-0.1.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson + +DESCRIPTION="xdg-desktop-portal backend for hyprland" +HOMEPAGE="https://github.com/hyprwm/xdg-desktop-portal-hyprland" + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland.git" + inherit git-r3 +else + SRC_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland/archive/refs/tags/v${PV}.tar.gz -> xdg-desktop-hyprland-${PV}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="MIT" +SLOT="0/9999" +IUSE="elogind systemd" +REQUIRED_USE="?? ( elogind systemd )" + +DEPEND=" + dev-libs/inih + dev-libs/wayland + dev-qt/qtcore + dev-qt/qtwidgets + dev-qt/qtgui + media-libs/mesa + >=media-video/pipewire-0.3.41:= + x11-libs/libdrm + || ( + systemd? ( >=sys-apps/systemd-237 ) + elogind? ( >=sys-auth/elogind-237 ) + sys-libs/basu + ) +" +RDEPEND=" + ${DEPEND} + sys-apps/xdg-desktop-portal +" +BDEPEND=" + >=dev-libs/wayland-protocols-1.24 + virtual/pkgconfig +" + +src_configure() { + local emasonargs=() + if use systemd; then + emasonargs+=(-Dsd-bus-provider=libsystemd) + elif use elogind; then + emasonargs+=(-Dsd-bus-provider=libelogind) + else + emasonargs+=(-Dsd-bus-provider=basu) + fi + meson_src_configure +} + +src_compile() { + cd hyprland-share-picker || die + make all || die "Couldn't compile hyprland-share-picker" + cd .. || die + meson_src_compile +} + +src_install() { + meson_src_install + dobin "${WORKDIR}"/xdg-desktop-portal-hyprland-${PV}/hyprland-share-picker/build/hyprland-share-picker +} diff --git a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-9999.ebuild b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-9999.ebuild new file mode 100644 index 000000000..159404539 --- /dev/null +++ b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-9999.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson + +DESCRIPTION="xdg-desktop-portal backend for hyprland" +HOMEPAGE="https://github.com/hyprwm/xdg-desktop-portal-hyprland" + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland.git" + inherit git-r3 +else + SRC_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland/archive/refs/tags/v${PV}.tar.gz -> xdg-desktop-hyprland-${PV}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="MIT" +SLOT="0/9999" +IUSE="elogind systemd" +REQUIRED_USE="?? ( elogind systemd )" + +DEPEND=" + dev-libs/inih + dev-libs/wayland + dev-qt/qtcore + dev-qt/qtwidgets + dev-qt/qtgui + media-libs/mesa + >=media-video/pipewire-0.3.41:= + x11-libs/libdrm + || ( + systemd? ( >=sys-apps/systemd-237 ) + elogind? ( >=sys-auth/elogind-237 ) + sys-libs/basu + ) +" +RDEPEND=" + ${DEPEND} + sys-apps/xdg-desktop-portal +" +BDEPEND=" + >=dev-libs/wayland-protocols-1.24 + virtual/pkgconfig +" + +src_configure() { + local emasonargs=() + if use systemd; then + emasonargs+=(-Dsd-bus-provider=libsystemd) + elif use elogind; then + emasonargs+=(-Dsd-bus-provider=libelogind) + else + emasonargs+=(-Dsd-bus-provider=basu) + fi + meson_src_configure +} + +src_compile() { + cd hyprland-share-picker || die + make all || die "Couldn't compile hyprland-share-picker" + cd .. || die + meson_src_compile +} + +src_install() { + meson_src_install + dobin "${WORKDIR}"/xdg-desktop-portal-hyprland-${PV}/hyprland-share-picker/build/hyprland-share-picker +}