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

Signed-off-by: Rahul Sandhu <rahul@sandhuservices.dev>
This commit is contained in:
Rahul Sandhu
2022-11-10 23:17:46 +00:00
parent 0b8916c6ec
commit a0081d6889
3 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST rofi-1.7.5+wayland1.tar.xz 649060 BLAKE2B 201ff15d7e9fbddb61d61f60db27f60188b20534e063fad82888c104bbcfa3ff5bfbcb21d38f5cef966a38d370875a746a1d55dd1c33a508aa79b7f78d5cc005 SHA512 a3bf90a1fa22dfd5c290d7a5b0c0bf2912fea37ad49f83526cfc5c2c8ab61429d6112898df4b682b0fcc153495dadef6642c581dc9c68c1b9b59c9d6b28251b7

View File

@@ -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>rahul@sandhuservices.dev</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>

View File

@@ -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
}