commit: 5b4ec036e4e5fcca598fd39952e1abe78b708068 Author: Florian Schmaus <flow <AT> gentoo <DOT> org> AuthorDate: Wed Nov 5 18:13:53 2025 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Wed Nov 5 18:13:53 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b4ec036
x11-misc/rofi: add 2.0.0 Closes: https://bugs.gentoo.org/965491 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> x11-misc/rofi/Manifest | 1 + x11-misc/rofi/rofi-2.0.0.ebuild | 89 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) diff --git a/x11-misc/rofi/Manifest b/x11-misc/rofi/Manifest index 955114e85161..48d810beeceb 100644 --- a/x11-misc/rofi/Manifest +++ b/x11-misc/rofi/Manifest @@ -3,3 +3,4 @@ DIST rofi-1.7.6.tar.xz 812496 BLAKE2B 18728bde962a1082927c87c19e0035620663243097 DIST rofi-1.7.7.tar.xz 812568 BLAKE2B b5b341d13f2d8609994e9b138722ce6af3896394b60a6734e90ac50cd7921704dcacd3fcbdbc3c1ce4632df1995f7abc1c6399371a483721424181bb9a7b9a69 SHA512 8286bc5f33ab4eb93677b24815730f159347a1e545ff109784fe161eeb4500c4fd4307c7894adb2060d6bef5137c9d6506a71c565e2676be230e5ad740bed9d0 DIST rofi-1.7.8.tar.xz 812732 BLAKE2B 8f6ecf0ff9db4ccadcf8814ae014e0a1041a2494d934214bd9f22487ff9c73f35ec1a6c7ead8f764a0ac64d248260b550effec1102acb0e8e757e8c6a270241f SHA512 8a33f5eb933cbba645056eeba3b82e236135e5a72251bd5bb3e6019e66e5626b126572f6874f5e39e381bb5108f261d4c80bb945ed0900c2179854d475d6518b DIST rofi-1.7.9.1.tar.xz 813356 BLAKE2B 6de09c5a099e69e9624d68ef5df612966fc53bfda3bc479215394bc39d687c7751ec4b3e5d6009015c6424f299f8a3cfce04b718f80a55d7776115923be7ce1b SHA512 0ded093b5a50ec2e547f5a35c4972690250ad260025ce1ef7c4736554b05dde9c559508b4e68ef186f5270bcd9d4ed8804e7c790690f37cf1a499491011933c9 +DIST rofi-2.0.0.tar.xz 682792 BLAKE2B fa21c0eb3c2327eb095eb0aaa63f3660b1789b6c54318bd3cd26c3092c671a933b6035cdb8db2837b7accd21b3fbd49f59649dcee1d501d84760f5fb98f48764 SHA512 0531f7da2a6e363b2c97c47778cadc4a84eb58903ea91ce683ff98d7c6e23172fa0df59a42f7236a4a0e80020c21c72cbc126ffe260491082ab9cc19ef6673d5 diff --git a/x11-misc/rofi/rofi-2.0.0.ebuild b/x11-misc/rofi/rofi-2.0.0.ebuild new file mode 100644 index 000000000000..c6398ad4012e --- /dev/null +++ b/x11-misc/rofi/rofi-2.0.0.ebuild @@ -0,0 +1,89 @@ +# 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/${PV}/${P}.tar.xz" + KEYWORDS="~amd64 ~arm64 ~riscv ~x86" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="+drun test wayland +windowmode X" +REQUIRED_USE="|| ( wayland X )" +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?] + x11-libs/gdk-pixbuf:2 + x11-libs/libxkbcommon[X?] + x11-libs/pango[X?] + wayland? ( dev-libs/wayland ) + X? ( + x11-libs/libxcb:= + x11-libs/startup-notification + x11-libs/xcb-util + x11-libs/xcb-util-cursor + x11-libs/xcb-util-wm + x11-misc/xkeyboard-config + ) +" +DEPEND=" + ${RDEPEND} + wayland? ( dev-libs/wayland-protocols ) + X? ( + 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_use drun) + $(meson_use windowmode window) + $(meson_feature test check) + $(meson_feature wayland) + $(meson_feature X xcb) + -Dimdkit=false + ) + meson_src_configure +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +}
