mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 20:13:01 -04:00
gui-libs/xdg-desktop-portal-hyprland: add 1.1.0, update 9999
Signed-off-by: Remigiusz Micielski <rmicielski@purelymail.com>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST xdg-desktop-hyprland-0.4.0.tar.gz 50645 BLAKE2B 7f4e2d3102e848c15dfa6eeefa3d1375ea5b7dc34ae9c3b7fb42caded4090bf877a4d1eef1dfb42be37b7b9374487297b2b9366b619bb7f6700676222d218d81 SHA512 3b6955f15ae86a7552d39bf107cfd153fe0fff68cc4b87b277b8010f40a267446cc9c8f51975197f2fc4333b854e2e2a549e03cbdde63675a51dd12b0ce185f3
|
||||
DIST xdg-desktop-hyprland-0.5.0.tar.gz 50608 BLAKE2B 7e2c7098f4be1a35c9093b1454c828467dfd52057dc30948ff1824c506115e0a1df8c037d7e85d79c0b845f682285c0fbf6786708537126cc3c94cd05e819a4a SHA512 1efbd3378e9d84f47189264b1b98e65cc73aeea916e31f085ba4503b9e4e25f8121894433adf21d0174ceae3588048a6a83c440cb57e8d2e62301629e93f8c91
|
||||
DIST xdg-desktop-hyprland-1.1.0.tar.gz 42732 BLAKE2B aa78b9f3a5812988e8324b71cc265c4b2ca23d0b12239c3ac13d068a46200504685da0fb57093f0689101fc2235cb7825646a4669bfe1894928d57a3259df9e3 SHA512 e02fa5bb19ca20cdee9a2e6ad0beb507d96118e095b1e5a1836cc16a35492a9ba5db36b06e5be561adcbf16d8716c38cbb1ed373965416696c69448fbd020c10
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit meson toolchain-funcs
|
||||
|
||||
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
|
||||
KEYWORDS="~amd64"
|
||||
SRC_URI="https://github.com/hyprwm/xdg-desktop-portal-hyprland/archive/refs/tags/v${PV}.tar.gz \
|
||||
-> xdg-desktop-hyprland-${PV}.tar.gz"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/9999"
|
||||
IUSE="elogind systemd"
|
||||
REQUIRED_USE="?? ( elogind systemd )"
|
||||
|
||||
DEPEND="
|
||||
>=media-video/pipewire-0.3.41:=
|
||||
dev-cpp/sdbus-c++
|
||||
dev-libs/inih
|
||||
dev-libs/wayland
|
||||
dev-qt/qtbase
|
||||
dev-qt/qtcore
|
||||
dev-qt/qtgui
|
||||
dev-qt/qtwayland:6
|
||||
dev-qt/qtwidgets
|
||||
media-libs/mesa
|
||||
sys-apps/util-linux
|
||||
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
|
||||
dev-libs/hyprland-protocols
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} == binary ]] && return
|
||||
|
||||
if tc-is-gcc; then
|
||||
STDLIBVER=$(echo '#include <string>' | $(tc-getCXX) -x c++ -dM -E - | \
|
||||
grep GLIBCXX_RELEASE | sed 's/.*\([1-9][0-9]\)/\1/')
|
||||
|
||||
if [[ ${STDLIBVER} -lt 13 ]]; then
|
||||
die "XDPH requires >=sys-devel/gcc-13.0.0 to build"
|
||||
fi
|
||||
else
|
||||
die "XDPH 1.1.0 won't build with clang.\
|
||||
See: https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/81";
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
meson_src_compile
|
||||
emake -C hyprland-share-picker all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
dobin "${S}/hyprland-share-picker/build/hyprland-share-picker"
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit meson
|
||||
inherit meson toolchain-funcs
|
||||
|
||||
DESCRIPTION="xdg-desktop-portal backend for hyprland"
|
||||
HOMEPAGE="https://github.com/hyprwm/xdg-desktop-portal-hyprland"
|
||||
@@ -24,6 +24,7 @@ REQUIRED_USE="?? ( elogind systemd )"
|
||||
|
||||
DEPEND="
|
||||
>=media-video/pipewire-0.3.41:=
|
||||
dev-cpp/sdbus-c++
|
||||
dev-libs/inih
|
||||
dev-libs/wayland
|
||||
dev-qt/qtbase
|
||||
@@ -50,16 +51,20 @@ BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=()
|
||||
if use systemd; then
|
||||
emesonargs+=(-Dsd-bus-provider=libsystemd)
|
||||
elif use elogind; then
|
||||
emesonargs+=(-Dsd-bus-provider=libelogind)
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} == binary ]] && return
|
||||
|
||||
if tc-is-gcc; then
|
||||
STDLIBVER=$(echo '#include <string>' | $(tc-getCXX) -x c++ -dM -E - | \
|
||||
grep GLIBCXX_RELEASE | sed 's/.*\([1-9][0-9]\)/\1/')
|
||||
|
||||
if [[ ${STDLIBVER} -lt 13 ]]; then
|
||||
die "XDPH requires >=sys-devel/gcc-13.0.0 to build"
|
||||
fi
|
||||
else
|
||||
emesonargs+=(-Dsd-bus-provider=basu)
|
||||
die "XDPH 1.1.0 won't build with clang.\
|
||||
See: https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/81";
|
||||
fi
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
|
||||
Reference in New Issue
Block a user