From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1514274-garchives=archives.gentoo.org@lists.gentoo.org> 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 B855015ACFC for <garchives@archives.gentoo.org>; Tue, 2 May 2023 17:15:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 02E2DE08A4; Tue, 2 May 2023 17:15:26 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 D61EDE08A4 for <gentoo-commits@lists.gentoo.org>; Tue, 2 May 2023 17:15:25 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 868EA34104E for <gentoo-commits@lists.gentoo.org>; Tue, 2 May 2023 17:15:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 235508E4 for <gentoo-commits@lists.gentoo.org>; Tue, 2 May 2023 17:15:23 +0000 (UTC) From: "Pascal Jäger" <pascal.jaeger@leimstift.de> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pascal Jäger" <pascal.jaeger@leimstift.de> Message-ID: <1683047710.50ec94daa96109fb5346f5f864b23c242ded2934.pascal.jaeger@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: gui-wm/hyprland-contrib/ X-VCS-Repository: repo/proj/guru X-VCS-Files: gui-wm/hyprland-contrib/hyprland-contrib-0.1.ebuild X-VCS-Directories: gui-wm/hyprland-contrib/ X-VCS-Committer: pascal.jaeger X-VCS-Committer-Name: Pascal Jäger X-VCS-Revision: 50ec94daa96109fb5346f5f864b23c242ded2934 X-VCS-Branch: dev Date: Tue, 2 May 2023 17:15:23 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d998a725-4fff-4aaa-aab2-e7bc6d197993 X-Archives-Hash: c1a9dc768c1c4fe4abbae995d097b8db commit: 50ec94daa96109fb5346f5f864b23c242ded2934 Author: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de> AuthorDate: Tue May 2 17:14:30 2023 +0000 Commit: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de> CommitDate: Tue May 2 17:15:10 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=50ec94da gui-wm/hyprland-contrib: add USE flags Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de> .../hyprland-contrib/hyprland-contrib-0.1.ebuild | 77 +++++++++++++++++----- 1 file changed, 60 insertions(+), 17 deletions(-) diff --git a/gui-wm/hyprland-contrib/hyprland-contrib-0.1.ebuild b/gui-wm/hyprland-contrib/hyprland-contrib-0.1.ebuild index 3769f05a6..3f381d5a7 100644 --- a/gui-wm/hyprland-contrib/hyprland-contrib-0.1.ebuild +++ b/gui-wm/hyprland-contrib/hyprland-contrib-0.1.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit optfeature + DESCRIPTION="Community-maintained extensions for hyprland" HOMEPAGE="https://hyprland.org/" SRC_URI="https://github.com/hyprwm/contrib/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" @@ -10,29 +12,70 @@ SRC_URI="https://github.com/hyprwm/contrib/archive/refs/tags/v${PV}.tar.gz -> ${ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="" +IUSE="+grimblast +hyprprop +scratchpad +shellevents +swap" RDEPEND=" app-shells/bash + gui-wm/hyprland + grimblast? ( + gui-apps/wl-clipboard + gui-apps/grim + app-misc/jq + gui-apps/slurp + app-misc/jq + ) + hyprprop? ( + app-misc/jq + gui-apps/slurp + ) + scratchpad? ( + sys-apps/sed + app-misc/jq + gui-apps/slurp + app-misc/jq + ) " -DEPEND="${RDEPEND} +BDEPEND=" + grimblast? ( + app-text/scdoc + ) + hyprprop? ( + app-text/scdoc + ) " +DEPEND="${RDEPEND}" S="${WORKDIR}/contrib-${PV}" src_install() { - pushd grimblast || die - PREFIX="${D}/usr" emake install - popd || die - pushd hyprprop || die - PREFIX="${D}/usr" emake install - popd || die - pushd scratchpad || die - PREFIX="${D}/usr" emake install - popd || die - pushd shellevents || die - PREFIX="${D}/usr" emake install - popd || die - pushd try_swap_workspace || die - PREFIX="${D}/usr" emake install - popd || die + if use grimblast; then + pushd grimblast || die + PREFIX="${D}/usr" emake install + popd || die + fi + if use hyprprop; then + pushd hyprprop || die + PREFIX="${D}/usr" emake install + popd || die + fi + if use scratchpad; then + pushd scratchpad || die + PREFIX="${D}/usr" emake install + popd || die + fi + if use shellevents; then + pushd shellevents || die + PREFIX="${D}/usr" emake install + popd || die + fi + if use swap; then + pushd try_swap_workspace || die + PREFIX="${D}/usr" emake install + popd || die + fi +} + +pkg_postinst() { + if use grimblast || use hyprprop || use scratchpad || use swap; then + optfeature "GUI notifications during dependency checks" x11-libs/libnotify + fi }