1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-05-03 09:50:52 +02:00

Hardmask rofi-emoji 4.x, added latest 3.x version

Version 4.0.0 have compilation issue with undefined MODE_TYPE_SWITCHER:

src/plugin.c:302:13: error: use of undeclared identifier 'MODE_TYPE_SWITCHER'
  302 |     .type = MODE_TYPE_SWITCHER,
This commit is contained in:
2024-10-09 07:32:35 +02:00
parent edf476f424
commit db1c26d1d0
4 changed files with 89 additions and 2 deletions
@@ -0,0 +1,36 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools git-r3
DESCRIPTION="Emoji selector plugin for Rofi "
HOMEPAGE="https://github.com/Mange/rofi-emoji"
EGIT_REPO_URI="https://github.com/Mange/rofi-emoji"
EGIT_COMMIT="v${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+clipboard primary wayland +X"
DEPEND="x11-misc/rofi"
RDEPEND="${DEPEND}
X? ( || ( x11-misc/xsel x11-misc/xclip ) )
wayland? ( gui-apps/wl-clipboard )"
BDEPEND=""
PATCHES=(
"${FILESDIR}"/${P}-primary.patch
)
src_prepare() {
default
if ! use primary; then
sed -ie '/handle_primary "$tool"/d' clipboard-adapter.sh || die
fi
if ! use clipboard; then
sed -ie '/handle_copy "$tool"/d' clipboard-adapter.sh || die
fi
eautoreconf
}