diff options
author | 2024-06-17 14:56:57 -0700 | |
---|---|---|
committer | 2024-06-17 14:56:57 -0700 | |
commit | d30de1fd683f7c28f312499dd2fde6f1089978c5 (patch) | |
tree | b6d16cd64fe8a8ab9f3f6b6a9a428b09212ae99e | |
parent | gui-libs/hyprutils: Add ebuild (diff) | |
download | johnmh-d30de1fd683f7c28f312499dd2fde6f1089978c5.tar.gz johnmh-d30de1fd683f7c28f312499dd2fde6f1089978c5.tar.bz2 johnmh-d30de1fd683f7c28f312499dd2fde6f1089978c5.zip |
gui-apps/hyprlock: Add ebuild
Signed-off-by: John M. Harris, Jr. <johnmh@johnmh.me>
-rw-r--r-- | gui-apps/hyprlock/Manifest | 2 | ||||
-rw-r--r-- | gui-apps/hyprlock/files/0001-fix-CFLAGS-CXXFLAGS-hyprlock.patch | 29 | ||||
-rw-r--r-- | gui-apps/hyprlock/hyprlock-9999.ebuild | 47 |
3 files changed, 78 insertions, 0 deletions
diff --git a/gui-apps/hyprlock/Manifest b/gui-apps/hyprlock/Manifest new file mode 100644 index 0000000..9051a93 --- /dev/null +++ b/gui-apps/hyprlock/Manifest @@ -0,0 +1,2 @@ +AUX 0001-fix-CFLAGS-CXXFLAGS-hyprlock.patch 911 BLAKE2B 34c3eb5911e9f246f9f64a6a91f79e0b03540b927e5258c31ed569b7972ab062fce290887e52051b2673553908c19847961488433e0ff62d23e260d507540b54 SHA512 6526e6d7afd94d43deb416ae11de4341cb073311425940925fc3929ce02cef0c2ddef86be801945836a9df0bd79d27e8df70d1c2d8b8fd2c42077ef36b916b10 +EBUILD hyprlock-9999.ebuild 881 BLAKE2B 2bcf0180481048b1581fb6c3b0f60db2b1bb0f9700741b6b9b07afdb90ec5bc12d73d9923f4aaed283d2352680d42f8ae6969c97a91a0cfc89f7c6f068486f39 SHA512 7ba5c3f9dfe33cb8cc0d5f0400e050dc3675174fd067b9705a6c097795ba68b0f2d00ad3f9336776467d04fd794d644864668a98742f8d55e46f204d7b125166 diff --git a/gui-apps/hyprlock/files/0001-fix-CFLAGS-CXXFLAGS-hyprlock.patch b/gui-apps/hyprlock/files/0001-fix-CFLAGS-CXXFLAGS-hyprlock.patch new file mode 100644 index 0000000..6f1652c --- /dev/null +++ b/gui-apps/hyprlock/files/0001-fix-CFLAGS-CXXFLAGS-hyprlock.patch @@ -0,0 +1,29 @@ +From 8b3826337c13f98611b71abc0030e9a962303cf3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= + <gonegrier.duarte@gmail.com> +Date: Wed, 21 Feb 2024 15:31:55 +0000 +Subject: [PATCH] Removed added CFLAGS/CXXFLAGS by CMakeLists.txt +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com> +--- + CMakeLists.txt | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 6aac750..a9df5b1 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -13,7 +13,6 @@ if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG) + message(STATUS "Configuring hyprlock in Debug with CMake") + add_compile_definitions(HYPRLAND_DEBUG) + else() +- add_compile_options(-O3) + message(STATUS "Configuring hyprlock in Release with CMake") + endif() + +-- +2.43.2 + diff --git a/gui-apps/hyprlock/hyprlock-9999.ebuild b/gui-apps/hyprlock/hyprlock-9999.ebuild new file mode 100644 index 0000000..9e0551a --- /dev/null +++ b/gui-apps/hyprlock/hyprlock-9999.ebuild @@ -0,0 +1,47 @@ +# Copyright 2023-2024 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-libs/date + dev-libs/wayland + media-libs/mesa[opengl] + sys-libs/pam + dev-libs/glib:2 + >=dev-libs/hyprlang-0.4.0 + media-libs/libglvnd + 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}/0001-fix-CFLAGS-CXXFLAGS-hyprlock.patch" +) |