Added x11-misc/rofi-2.0.0

This commit is contained in:
saundersp
2025-10-19 12:48:55 +02:00
parent bd06dbfd3f
commit 313145a22d
4 changed files with 118 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
BDEPEND=sys-devel/bison >=sys-devel/flex-2.5.39 virtual/pkgconfig >=dev-build/meson-1.2.3 app-alternatives/ninja dev-build/meson-format-array
DEFINED_PHASES=compile configure install postinst postrm test
DEPEND=>=dev-libs/glib-2.72:2 x11-libs/cairo[X,xcb(+)] x11-libs/gdk-pixbuf:2 x11-libs/libxcb:= x11-libs/libxkbcommon[X] x11-libs/pango[X] x11-libs/startup-notification x11-libs/xcb-util x11-libs/xcb-util-cursor x11-libs/xcb-util-wm x11-misc/xkeyboard-config x11-base/xorg-proto x11-libs/xcb-util-keysyms test? ( >=dev-libs/check-0.11 )
DESCRIPTION=A window switcher, run dialog and dmenu replacement
EAPI=8
HOMEPAGE=https://github.com/davatorium/rofi
INHERIT=meson toolchain-funcs xdg-utils
IUSE=wayland +X +drun test +windowmode
KEYWORDS=amd64 arm64 ~riscv x86
LICENSE=MIT
RDEPEND=>=dev-libs/glib-2.72:2 x11-libs/cairo[X,xcb(+)] x11-libs/gdk-pixbuf:2 x11-libs/libxcb:= x11-libs/libxkbcommon[X] x11-libs/pango[X] x11-libs/startup-notification x11-libs/xcb-util x11-libs/xcb-util-cursor x11-libs/xcb-util-wm x11-misc/xkeyboard-config
RESTRICT=!test? ( test )
SLOT=0
SRC_URI=https://github.com/davatorium/rofi/releases/download/2.0.0/rofi-2.0.0.tar.xz
_eclasses_=toolchain-funcs 98d9f464d912ae6b7316fb8a3721f5db flag-o-matic a7afe42e95fb46ce9691605acfb24672 multiprocessing 1e32df7deee68372153dca65f4a7c21f ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 python-utils-r1 0b620dd604ab8af0bc9cd1bcc66d4f7c meson 99466844dd8d4fcfb07578a76f5a9922 xdg-utils 42869b3c8d86a70ef3cf75165a395e09
_md5_=188133d28dc689f2f342bcd2a71c199b

3
x11-misc/rofi/Manifest Normal file
View File

@@ -0,0 +1,3 @@
DIST rofi-2.0.0.tar.xz 682792 BLAKE2B fa21c0eb3c2327eb095eb0aaa63f3660b1789b6c54318bd3cd26c3092c671a933b6035cdb8db2837b7accd21b3fbd49f59649dcee1d501d84760f5fb98f48764 SHA512 0531f7da2a6e363b2c97c47778cadc4a84eb58903ea91ce683ff98d7c6e23172fa0df59a42f7236a4a0e80020c21c72cbc126ffe260491082ab9cc19ef6673d5
EBUILD rofi-2.0.0.ebuild 1541 BLAKE2B 4aa0400eb71f0d524a10fd26e11945231494b661c37ad41a9fbbec74f49133c8e166348989be82f10b72dffed924897a89ce00b2994184a0abb3cb9c6e96dde9 SHA512 37223054473537de2366fa3b0e48bde1fbd5fcbad37deaefe929b16fee2b183583bd8df09b9ce8d6e682969d3d91b2592de6fbbe805a879df278958fd5ecd041
MISC metadata.xml 591 BLAKE2B e81c528d501a689c63d301d22a188026d8af0e653b1d70e36f6e38cd14a26b0293f4173f3416310267bf2d37fb8f4c18f910eecdf6aebcffba0d4d57fb618ca4 SHA512 9b65e9af3accff2fa3a2885e467be1a525c5e7e6638678b22f2c81072f709a9b2f86143797eeb69af1b449ee18cbe2b94f4b4b87007fc1d3b1daba229511521d

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>Florian Schmaus</name>
<email>flow@gentoo.org</email>
</maintainer>
<use>
<flag name="drun">Enable desktop file run dialog</flag>
<flag name="windowmode">Enable normal window mode</flag>
</use>
<upstream>
<remote-id type="github">davatorium/rofi</remote-id>
<changelog>https://github.com/davatorium/rofi/releases</changelog>
<bugs-to>https://github.com/davatorium/rofi/issues</bugs-to>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,82 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson toolchain-funcs xdg-utils
DESCRIPTION="A window switcher, run dialog and dmenu replacement"
HOMEPAGE="https://github.com/davatorium/rofi"
if [[ "${PV}" == "9999" ]]; then
EGIT_REPO_URI="https://github.com/davatorium/rofi"
inherit git-r3
else
SRC_URI="https://github.com/davatorium/rofi/releases/download/$(ver_cut 1-3)/${P}.tar.xz"
KEYWORDS="amd64 arm64 ~riscv x86"
fi
LICENSE="MIT"
SLOT="0"
IUSE="wayland +X +drun test +windowmode"
RESTRICT="!test? ( test )"
BDEPEND="
sys-devel/bison
>=sys-devel/flex-2.5.39
virtual/pkgconfig
"
RDEPEND="
>=dev-libs/glib-2.72:2
x11-libs/cairo[X,xcb(+)]
x11-libs/gdk-pixbuf:2
x11-libs/libxcb:=
x11-libs/libxkbcommon[X]
x11-libs/pango[X]
x11-libs/startup-notification
x11-libs/xcb-util
x11-libs/xcb-util-cursor
x11-libs/xcb-util-wm
x11-misc/xkeyboard-config
"
DEPEND="
${RDEPEND}
x11-base/xorg-proto
x11-libs/xcb-util-keysyms
test? ( >=dev-libs/check-0.11 )
"
DOCS=(
AUTHORS
Changelog
Examples/
README.md
)
src_configure() {
# Doesn't work with reflex, bug #887049
export LEX=flex
# Requires bison, see https://bugs.gentoo.org/894634.
unset YACC
tc-export CC
local emesonargs=(
$(meson_feature wayland)
$(meson_feature X xcb)
$(meson_use drun)
$(meson_use windowmode window)
$(meson_feature test check)
-Dimdkit=false
)
meson_src_configure
}
pkg_postinst() {
xdg_icon_cache_update
}
pkg_postrm() {
xdg_icon_cache_update
}