mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-18 23:39:00 -04:00
gui-apps/hyprlock: add 0.6.0
Closes: https://bugs.gentoo.org/947781 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
parent
fbb04299ff
commit
f5d2477431
@ -1 +1,2 @@
|
|||||||
DIST hyprlock-0.5.0.tar.gz 67016 BLAKE2B c15491e00c0b3ea04e9d99c399d6803271849f75432ed34b516cbe059582371de357e67077e356eb7d71a7490e010ff2a5333444410023a73598d5ee185f2346 SHA512 c9fc30e20889dc694294ad9ec03c39c7e47fada4972139822b9f9275d04f2de6a9105918eca1369a4c6a3e4f5c6a956675beebbbab688f0d8f13bffccedb5a03
|
DIST hyprlock-0.5.0.tar.gz 67016 BLAKE2B c15491e00c0b3ea04e9d99c399d6803271849f75432ed34b516cbe059582371de357e67077e356eb7d71a7490e010ff2a5333444410023a73598d5ee185f2346 SHA512 c9fc30e20889dc694294ad9ec03c39c7e47fada4972139822b9f9275d04f2de6a9105918eca1369a4c6a3e4f5c6a956675beebbbab688f0d8f13bffccedb5a03
|
||||||
|
DIST hyprlock-0.6.0.tar.gz 71344 BLAKE2B 77dbe7c4061c0d52663e286e701e1819f10194515130126078375f26e1b58d7cb74d7b980e6587751a65ccf762bbcb0cd6ff6fb9fedc375c891f5d6cff773de4 SHA512 d8931b44db0d25a2665a3b1a2a8656724ffd2d09effab37f0c53e40367637899f7040d96a0886202c6d4d5fb03e477a4fc351cbd31b81cdb715e180bc8dde6c2
|
||||||
|
@ -0,0 +1,37 @@
|
|||||||
|
https://github.com/hyprwm/hyprlock/commit/023aff52ad45a3c55144c6bbda33395dfb9e9db0
|
||||||
|
https://bugs.gentoo.org/947781
|
||||||
|
Allow building on a system that lacks GLX support.
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-cmake_minimum_required(VERSION 3.19)
|
||||||
|
+cmake_minimum_required(VERSION 3.27)
|
||||||
|
|
||||||
|
file(READ "${CMAKE_SOURCE_DIR}/VERSION" VER_RAW)
|
||||||
|
string(STRIP ${VER_RAW} VERSION)
|
||||||
|
@@ -37,7 +37,7 @@ message(STATUS "Checking deps...")
|
||||||
|
|
||||||
|
find_package(Threads REQUIRED)
|
||||||
|
find_package(PkgConfig REQUIRED)
|
||||||
|
-find_package(OpenGL REQUIRED)
|
||||||
|
+find_package(OpenGL REQUIRED COMPONENTS EGL GLES3)
|
||||||
|
pkg_check_modules(
|
||||||
|
deps
|
||||||
|
REQUIRED
|
||||||
|
@@ -47,7 +47,6 @@ pkg_check_modules(
|
||||||
|
wayland-egl
|
||||||
|
hyprlang>=0.4.0
|
||||||
|
egl
|
||||||
|
- opengl
|
||||||
|
xkbcommon
|
||||||
|
libjpeg
|
||||||
|
libwebp
|
||||||
|
@@ -63,7 +62,7 @@ pkg_check_modules(
|
||||||
|
file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
|
||||||
|
add_executable(hyprlock ${SRCFILES})
|
||||||
|
target_link_libraries(hyprlock PRIVATE pam rt Threads::Threads PkgConfig::deps
|
||||||
|
- OpenGL::EGL OpenGL::GL)
|
||||||
|
+ OpenGL::EGL OpenGL::GLES3)
|
||||||
|
|
||||||
|
# protocols
|
||||||
|
find_program(WaylandScanner NAMES wayland-scanner)
|
54
gui-apps/hyprlock/hyprlock-0.6.0.ebuild
Normal file
54
gui-apps/hyprlock/hyprlock-0.6.0.ebuild
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
# Copyright 2023-2025 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit cmake
|
||||||
|
|
||||||
|
DESCRIPTION="Hyprland's GPU-accelerated screen locking utility"
|
||||||
|
HOMEPAGE="https://github.com/hyprwm/hyprlock"
|
||||||
|
|
||||||
|
if [[ "${PV}" = *9999 ]]; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/hyprwm/${PN^}.git"
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/hyprwm/${PN^}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-cpp/sdbus-c++:0/2
|
||||||
|
dev-libs/hyprgraphics
|
||||||
|
>=dev-libs/hyprlang-0.4.0
|
||||||
|
>=gui-libs/hyprutils-0.2.6:=
|
||||||
|
dev-libs/date
|
||||||
|
dev-libs/glib:2
|
||||||
|
dev-libs/wayland
|
||||||
|
media-libs/libglvnd
|
||||||
|
media-libs/libjpeg-turbo:=
|
||||||
|
media-libs/libwebp:=
|
||||||
|
media-libs/mesa[opengl]
|
||||||
|
sys-libs/pam
|
||||||
|
x11-libs/cairo
|
||||||
|
x11-libs/libxkbcommon
|
||||||
|
x11-libs/libdrm
|
||||||
|
x11-libs/pango
|
||||||
|
"
|
||||||
|
DEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
dev-libs/wayland-protocols
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
dev-util/wayland-scanner
|
||||||
|
virtual/pkgconfig
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-0.4.1-fix-CFLAGS-CXXFLAGS.patch"
|
||||||
|
# bug #947781
|
||||||
|
"${FILESDIR}/${P}-explicitly-require-gles3.patch"
|
||||||
|
)
|
Loading…
x
Reference in New Issue
Block a user