summaryrefslogtreecommitdiff
blob: acac0fd2d021bae4d7d8e59d0ceaa5df67c5d147 (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
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Quickly look up and input emoji and/or emoticons"
HOMEPAGE="https://github.com/cspeterson/splatmoji/"
SRC_URI="https://github.com/cspeterson/splatmoji/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
KEYWORDS="~amd64"
SLOT="0"
IUSE="json test"
RESTRICT="!test? ( test )"

DEPEND="test? ( app-misc/jq dev-util/shunit2 )"
RDEPEND="
	app-shells/bash
	json? ( app-misc/jq )
	x11-misc/rofi
	x11-misc/xdotool
	x11-misc/xsel"

src_test() {
	./test/unit_tests || die
}

src_install() {
	dobin splatmoji
	insinto /etc/xdg/splatmoji
	doins splatmoji.config
	insinto /usr/share/splatmoji
	doins -r data
	insinto /usr/lib/splatmoji
	doins lib/functions
}