commit:     a0081d6889778ddbe777d78cce315b4033806cb5
Author:     Rahul Sandhu <rahul <AT> sandhuservices <DOT> dev>
AuthorDate: Thu Nov 10 23:17:46 2022 +0000
Commit:     Rahul Sandhu <rahul <AT> sandhuservices <DOT> dev>
CommitDate: Thu Nov 10 23:17:46 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a0081d68

gui-apps/rofi-wayland: new package, add 1.7.5

Signed-off-by: Rahul Sandhu <rahul <AT> sandhuservices.dev>

 gui-apps/rofi-wayland/Manifest                  |  1 +
 gui-apps/rofi-wayland/manifest.xml              | 15 +++++++
 gui-apps/rofi-wayland/rofi-wayland-1.7.5.ebuild | 60 +++++++++++++++++++++++++
 3 files changed, 76 insertions(+)

diff --git a/gui-apps/rofi-wayland/Manifest b/gui-apps/rofi-wayland/Manifest
new file mode 100644
index 000000000..ee5734e00
--- /dev/null
+++ b/gui-apps/rofi-wayland/Manifest
@@ -0,0 +1 @@
+DIST rofi-1.7.5+wayland1.tar.xz 649060 BLAKE2B 
201ff15d7e9fbddb61d61f60db27f60188b20534e063fad82888c104bbcfa3ff5bfbcb21d38f5cef966a38d370875a746a1d55dd1c33a508aa79b7f78d5cc005
 SHA512 
a3bf90a1fa22dfd5c290d7a5b0c0bf2912fea37ad49f83526cfc5c2c8ab61429d6112898df4b682b0fcc153495dadef6642c581dc9c68c1b9b59c9d6b28251b7

diff --git a/gui-apps/rofi-wayland/manifest.xml 
b/gui-apps/rofi-wayland/manifest.xml
new file mode 100644
index 000000000..dab6be1ae
--- /dev/null
+++ b/gui-apps/rofi-wayland/manifest.xml
@@ -0,0 +1,15 @@
+
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Rahul Singh Sandhu</name>
+       </maintainer>
+  <use>
+    <flag name="drun">Desktop file mode</flag>
+    <flag name="window">Window switcher mode</flag>
+    <flag name="check">Build and run libcheck-based tests</flag>
+    <flag name="wayland">Build with wayland support</flag>
+  </use>
+</pkgmetadata>

diff --git a/gui-apps/rofi-wayland/rofi-wayland-1.7.5.ebuild 
b/gui-apps/rofi-wayland/rofi-wayland-1.7.5.ebuild
new file mode 100644
index 000000000..5a8764540
--- /dev/null
+++ b/gui-apps/rofi-wayland/rofi-wayland-1.7.5.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson xdg
+
+DESCRIPTION="A window switcher, run dialog and dmenu replacement"
+HOMEPAGE="https://github.com/lbonn/rofi";
+SRC_URI="https://github.com/lbonn/rofi/releases/download/${PV}%2Bwayland1/rofi-${PV}+wayland1.tar.xz";
+S="${WORKDIR}"/rofi-${PV}+wayland1
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="drun windowmode test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       !x11-misc/rofi
+       >=dev-libs/glib-2.40:2
+       x11-libs/cairo[X]
+       x11-libs/gdk-pixbuf:2
+       x11-libs/pango[X]
+       dev-libs/wayland
+       >=dev-libs/wayland-protocols-1.17
+"
+DEPEND="
+       ${RDEPEND}
+       test? ( dev-libs/check )
+"
+BDEPEND="
+       sys-devel/bison
+"
+
+src_configure() {
+       local emesonargs=(
+               -Dwayland=enabled
+               -Dxcb=disabled
+               -Dcheck=disabled
+               $(meson_use drun)
+               $(meson_use windowmode window)
+               $(meson_feature test check)
+       )
+       meson_src_configure
+}
+
+pkg_postinst() {
+       for v in ${REPLACING_VERSIONS}; do
+               if ver_test "${v}" -lt 1.7.0; then
+                       elog "Rofi 1.7.0 removed the (deprecated) xresources 
based configuration setup."
+                       elog "If you are still using old configuration setup, 
please convert it to new format manually."
+                       elog "The new format configuration can be generated by 
'rofi -dump-config > ~/.config/rofi/config.rasi'."
+                       elog "For more information, please see 
https://github.com/davatorium/rofi/releases/tag/1.7.0";
+               fi
+       done
+
+       xdg_icon_cache_update
+}
+

Reply via email to