summaryrefslogtreecommitdiff
path: root/sys-apps/xdg-desktop-portal-termfilechooser
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-08-15 23:43:15 +0300
committerawy <awy@awy.one>2025-08-15 23:43:15 +0300
commit2e889002041596ea5b022ec6fc814fae42e12c54 (patch)
tree3aa390e67c3bf021ceb2817831c9bcb871669807 /sys-apps/xdg-desktop-portal-termfilechooser
parent357d06f9916e0c2b8b6e2e6a42ed446298531404 (diff)
sys-apps/xdg-desktop-portal-termfilechooser: New package
Diffstat (limited to 'sys-apps/xdg-desktop-portal-termfilechooser')
-rw-r--r--sys-apps/xdg-desktop-portal-termfilechooser/Manifest1
-rw-r--r--sys-apps/xdg-desktop-portal-termfilechooser/xdg-desktop-portal-termfilechooser-9999.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/sys-apps/xdg-desktop-portal-termfilechooser/Manifest b/sys-apps/xdg-desktop-portal-termfilechooser/Manifest
new file mode 100644
index 0000000..6f90e48
--- /dev/null
+++ b/sys-apps/xdg-desktop-portal-termfilechooser/Manifest
@@ -0,0 +1 @@
+EBUILD xdg-desktop-portal-termfilechooser-9999.ebuild 778 BLAKE2B b8cbac6979af44056788133cfd1fd335df3982d0bd540fbf70f431752cb875f97d57b53d054eda398e93d5e666166eeaf8c34578cd8b83897b69adc68ab47232 SHA512 c067a7a37fd3ae2a9d3dd8c90c62c0deadf2fc92fd95f56bb9233a2dc1bdf5003bbbf98eef599d94efde723c68ab2fdbfcd875459677946e3b640d762f563463
diff --git a/sys-apps/xdg-desktop-portal-termfilechooser/xdg-desktop-portal-termfilechooser-9999.ebuild b/sys-apps/xdg-desktop-portal-termfilechooser/xdg-desktop-portal-termfilechooser-9999.ebuild
new file mode 100644
index 0000000..1246a59
--- /dev/null
+++ b/sys-apps/xdg-desktop-portal-termfilechooser/xdg-desktop-portal-termfilechooser-9999.ebuild
@@ -0,0 +1,43 @@
+EAPI=8
+
+inherit meson
+
+DESCRIPTION="xdg-desktop-portal backend (termfilechooser)"
+HOMEPAGE="https://github.com/hunkyburrito/xdg-desktop-portal-termfilechooser"
+
+inherit git-r3
+EGIT_REPO_URI="https://github.com/hunkyburrito/xdg-desktop-portal-termfilechooser"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="elogind systemd"
+REQUIRED_USE="?? ( elogind systemd )"
+
+RDEPEND="
+ || (
+ systemd? ( >=sys-apps/systemd-237 )
+ elogind? ( >=sys-auth/elogind-237 )
+ sys-libs/basu
+ )
+"
+DEPEND="
+ ${RDEPEND}
+"
+BDEPEND="
+"
+
+src_configure() {
+ local emesonargs=(
+ $(meson_feature systemd)
+ )
+
+ if use systemd; then
+ emesonargs+=('-Dsd-bus-provider=libsystemd')
+ elif use elogind; then
+ emesonargs+=('-Dsd-bus-provider=libelogind')
+ else
+ emesonargs+=('-Dsd-bus-provider=basu')
+ fi
+
+ meson_src_configure
+}