1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-04-10 08:53:33 +02:00
Files
gryf-overlay/x11-misc/rofi-emoji/rofi-emoji-4.0.0.ebuild
gryf db1c26d1d0 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,
2024-10-09 07:32:45 +02:00

37 lines
792 B
Bash

# 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=""
IUSE="+clipboard primary clipboard 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
}