summaryrefslogtreecommitdiff
blob: 51a0c3af795f9c982f31cea208d64a116a9126fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit elisp readme.gentoo-r1 optfeature

DESCRIPTION="Emacs Interface to XClip"
HOMEPAGE="https://elpa.gnu.org/packages/xclip.html"
SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.el.xz"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"

SITEFILE="50${PN}-gentoo.el"
DOC_CONTENTS="To enable xclip-mode, add (xclip-mode 1) to your ~/.emacs file."

pkg_postinst() {
	elisp_pkg_postinst

	optfeature "X11 clipboard support" x11-misc/xclip x11-misc/xsel
	optfeature "Wayland clipboard support" gui-apps/wl-clipboard
}