summaryrefslogtreecommitdiff
blob: 8113155736ce03d7e39bc613fddea95e45bf2466 (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
37
38
39
40
41
42
43
44
45
46
47
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit bash-completion-r1 xdg

DESCRIPTION="Client tools for the ColorHug display colorimeter"
HOMEPAGE="http://www.hughski.com/"
SRC_URI="https://people.freedesktop.org/~hughsient/releases/${P}.tar.xz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
# Tests need valgrind, that needs glibc with debugging symbols
RESTRICT="test"

RDEPEND="
	dev-db/sqlite:3
	>=dev-libs/glib-2.31.10:2
	>=dev-libs/libgusb-0.2.2
	media-libs/lcms:2
	>=media-libs/libcanberra-0.10[gtk3]
	net-libs/libsoup:2.4
	>=x11-libs/gtk+-3.11.2:3
	>=x11-misc/colord-1.2.9:0=
	>=x11-libs/colord-gtk-0.1.24"
DEPEND="${RDEPEND}"
# docbook stuff needed for man pages
BDEPEND="
	app-text/docbook-sgml-dtd:4.1
	app-text/docbook-sgml-utils
	app-text/yelp-tools
	>=dev-util/intltool-0.50
	>=sys-devel/gettext-0.17
	virtual/pkgconfig"

src_configure() {
	# introspection checked but not needed by anything
	# Install completions manually to prevent dependency on bash-completion, bug #546166
	econf --disable-introspection --disable-bash-completion
}

src_install() {
	default
	dobashcomp data/bash/colorhug-cmd
}