commit:     dd44b2503815c0ec8cbbbf16ec73781495e728e8
Author:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Wed Jul  5 07:41:45 2023 +0000
Commit:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Wed Jul  5 07:41:45 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dd44b250

gui-apps/gtklock-extras: new package, add 9999

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>

 gui-apps/gtklock-extras/gtklock-extras-9999.ebuild | 70 ++++++++++++++++++++++
 gui-apps/gtklock-extras/metadata.xml               | 12 ++++
 2 files changed, 82 insertions(+)

diff --git a/gui-apps/gtklock-extras/gtklock-extras-9999.ebuild 
b/gui-apps/gtklock-extras/gtklock-extras-9999.ebuild
new file mode 100644
index 000000000..0eaa425a8
--- /dev/null
+++ b/gui-apps/gtklock-extras/gtklock-extras-9999.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit git-r3
+DESCRIPTION="Gtklock modules"
+HOMEPAGE="https://github.com/jovanlanik/gtklock";
+EGIT_REPO_URI=https://github.com/MrDuartePT/gtklock-modules-gentoo
+
+LICENSE="GPL-3"
+SLOT="0"
+
+RDEPEND="gui-apps/gtklock"
+
+BDEPEND="x11-libs/gtk+
+      virtual/pkgconfig
+      playerctl? ( dev-go/act )
+      playerctl? ( net-libs/libsoup )
+      userinfo? ( sys-apps/accountsservice )"
+
+DEPEND="${RDEPEND}
+      app-portage/smart-live-rebuild"
+
+IUSE="playerctl powerbar userinfo"
+REQUIRED_USE="|| ( playerctl powerbar userinfo )"
+
+KEYWORDS="~amd64~x86"
+
+src_compile() {
+      if use powerbar; then
+            pushd gtklock-powerbar-module || die
+             emake
+             popd || die
+      fi
+
+      if use playerctl; then
+            pushd gtklock-playerctl-module || die
+             emake
+             popd || die
+      fi
+    
+      if use userinfo; then
+            pushd gtklock-userinfo-module || die
+            emake
+            popd || die
+      fi
+}
+
+src_install() {
+      dodir /usr/local/lib/gtklock
+      if use powerbar; then
+            pushd gtklock-powerbar-module || die
+             insinto /usr/local/lib/gtklock && doins powerbar-module.so
+             popd || die
+      fi
+
+      if use playerctl; then
+            pushd gtklock-playerctl-module || die
+             insinto /usr/local/lib/gtklock && doins playerctl-module.so
+             popd || die
+      fi
+    
+      if use userinfo; then
+            pushd gtklock-userinfo-module || die
+            insinto /usr/local/lib/gtklock && doins userinfo-module.so
+            popd || die
+      fi
+}
+

diff --git a/gui-apps/gtklock-extras/metadata.xml 
b/gui-apps/gtklock-extras/metadata.xml
new file mode 100644
index 000000000..f37f96ac1
--- /dev/null
+++ b/gui-apps/gtklock-extras/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <use>
+               <flag name="powerbar">gtklock module adding power controls to 
the lockscreen</flag>
+               <flag name="playerctl">gtklock module adding media player 
controls to the lockscreen</flag>
+               <flag name="userinfo">gtklock module adding user info to the 
lockscreen</flag>
+       </use>
+    <upstream>
+        <remote-id type="github">MrDuartePT/gtklock-modules-gentoo</remote-id>
+    </upstream>
+</pkgmetadata>

Reply via email to