commit: de1e7ef912276f58e84ec04e6142846e874b49d8 Author: David Roman <davidroman96 <AT> gmail <DOT> com> AuthorDate: Tue Sep 26 12:40:39 2023 +0000 Commit: David Roman <davidroman96 <AT> gmail <DOT> com> CommitDate: Tue Sep 26 12:40:39 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=de1e7ef9
gui-apps/rofi-wayland: fix build failure Signed-off-by: David Roman <davidroman96 <AT> gmail.com> Closes: https://github.com/gentoo/guru/pull/109 gui-apps/rofi-wayland/Manifest | 1 + gui-apps/rofi-wayland/rofi-wayland-1.7.5-r1.ebuild | 59 ++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/gui-apps/rofi-wayland/Manifest b/gui-apps/rofi-wayland/Manifest index ee5734e005..5316edeffb 100644 --- a/gui-apps/rofi-wayland/Manifest +++ b/gui-apps/rofi-wayland/Manifest @@ -1 +1,2 @@ DIST rofi-1.7.5+wayland1.tar.xz 649060 BLAKE2B 201ff15d7e9fbddb61d61f60db27f60188b20534e063fad82888c104bbcfa3ff5bfbcb21d38f5cef966a38d370875a746a1d55dd1c33a508aa79b7f78d5cc005 SHA512 a3bf90a1fa22dfd5c290d7a5b0c0bf2912fea37ad49f83526cfc5c2c8ab61429d6112898df4b682b0fcc153495dadef6642c581dc9c68c1b9b59c9d6b28251b7 +DIST rofi-1.7.5+wayland2.tar.xz 649600 BLAKE2B 1741eddf90f0e0dcebe785e15a817a79acf6a2bfa0a0623b0bdcf985616c1a66bb6d9e16b233624b1cc34b9592fb4f5eca6e6d2a8802abc6bab3c2f3c17a5c91 SHA512 efd237c3fd9ad098831e1880827070bbc83ffb0fca1e7668f5c0806c6aaafafdf0680214cda0996810dbf9db66e700a3078d05f55bfff795465cf8c054f5c738 diff --git a/gui-apps/rofi-wayland/rofi-wayland-1.7.5-r1.ebuild b/gui-apps/rofi-wayland/rofi-wayland-1.7.5-r1.ebuild new file mode 100644 index 0000000000..1448c5e68a --- /dev/null +++ b/gui-apps/rofi-wayland/rofi-wayland-1.7.5-r1.ebuild @@ -0,0 +1,59 @@ +# 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}%2Bwayland2/rofi-${PV}+wayland2.tar.xz" +S="${WORKDIR}"/rofi-${PV}+wayland2 + +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 +}