mirror of
https://github.com/gryf/gryf-overlay.git
synced 2025-12-24 07:02:27 +01:00
Bump rofi-emoji
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
AUX rofi-emoji-2.2.0-primary.patch 855 BLAKE2B 87a2985f1ad5f34a9af98589697c732443181527bd221001ecd475c02bd2b8c81938a8a13fafc41356424fefea5f0daec7077422d40cce58402ca2824e73fb72 SHA512 9a2ca5508e3f010966cfa5652849169ba805bd09c503915b16fa5b0e7c4d76932322014be3d28f16548cbad8ef10d3ae51fe9cdd0e03ff5becda1067d96d4adf
|
||||
AUX rofi-emoji-3.1.0-primary.patch 990 BLAKE2B b7619a7de3fc1ee6b26181dbdc0c9c85cf24d65811313831d93301ec9dbd49227312e8fa055a9ef930a7facf83d0e7fc8c3621d062fad09cbf19116fdbfa5cef SHA512 12e446d840467e82c5106540682d66a3447fa249c7f2f0336a5cb8a558af89af081f22b7a2b128143a6ac5237be40b9ac931248f353339d0e3915d099a64d4ee
|
||||
EBUILD rofi-emoji-2.2.0.ebuild 772 BLAKE2B 1278a7dde4af384bf8cd541b1582b6b13c78fee0e6ec6f6e633e62bc94b28e283b97e0d7b3c46cba2a6f0d19edb3b547e80907c5c8809809e5595dee60c14673 SHA512 4b2c4ff3d8d82a13b0ec9c8937ce7a34ddb83a30d86954ffd13987c2a32295c90b76af8bfaf81d278597d8eb67de5c0f483a29fefe22c9eb606a32e9098187dc
|
||||
EBUILD rofi-emoji-3.1.0.ebuild 772 BLAKE2B 1278a7dde4af384bf8cd541b1582b6b13c78fee0e6ec6f6e633e62bc94b28e283b97e0d7b3c46cba2a6f0d19edb3b547e80907c5c8809809e5595dee60c14673 SHA512 4b2c4ff3d8d82a13b0ec9c8937ce7a34ddb83a30d86954ffd13987c2a32295c90b76af8bfaf81d278597d8eb67de5c0f483a29fefe22c9eb606a32e9098187dc
|
||||
|
||||
42
x11-misc/rofi-emoji/files/rofi-emoji-3.1.0-primary.patch
Normal file
42
x11-misc/rofi-emoji/files/rofi-emoji-3.1.0-primary.patch
Normal file
@@ -0,0 +1,42 @@
|
||||
diff -ur rofi-emoji_orig/clipboard-adapter.sh rofi-emoji/clipboard-adapter.sh
|
||||
--- rofi-emoji_orig/clipboard-adapter.sh 2022-10-08 09:43:38.033895494 +0200
|
||||
+++ rofi-emoji/clipboard-adapter.sh 2022-10-08 10:06:06.297588512 +0200
|
||||
@@ -54,6 +54,7 @@
|
||||
;;
|
||||
copy)
|
||||
perform_copy
|
||||
+ perform_primary
|
||||
;;
|
||||
insert)
|
||||
# Also copy when doing insert to give users a fallback in case automatic
|
||||
@@ -103,6 +104,30 @@
|
||||
;;
|
||||
"")
|
||||
show_error "Could not find any tool to handle copying. Please install a clipboard handler."
|
||||
+ exit 1
|
||||
+ ;;
|
||||
+ *)
|
||||
+ show_error "$tool has no implementation for copying yet"
|
||||
+ exit 2
|
||||
+ ;;
|
||||
+ esac
|
||||
+}
|
||||
+
|
||||
+perform_primary() {
|
||||
+ tool=$(find_copy_tool)
|
||||
+
|
||||
+ case "$tool" in
|
||||
+ xsel)
|
||||
+ xsel --primary --input
|
||||
+ ;;
|
||||
+ xclip)
|
||||
+ xclip -selection primary -in
|
||||
+ ;;
|
||||
+ wl-copy)
|
||||
+ wl-copy --primary
|
||||
+ ;;
|
||||
+ "")
|
||||
+ show_error "Could not find any tool to handle copying. Please install a clipboard handler."
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
35
x11-misc/rofi-emoji/rofi-emoji-3.1.0.ebuild
Normal file
35
x11-misc/rofi-emoji/rofi-emoji-3.1.0.ebuild
Normal file
@@ -0,0 +1,35 @@
|
||||
# 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"
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user