summaryrefslogtreecommitdiff
blob: dff600917b057685a1dbea5798cfd1c7b5422c17 (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
48
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools

if [[ ${PV} = *9999 ]]; then
	EGIT_REPO_URI="https://github.com/oyranos-cms/libxcm.git"
	inherit git-r3
else
	SRC_URI="https://github.com/oyranos-cms/${PN,,}/archive/${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~ppc ~x86"
	S="${WORKDIR}/${P,,}"
fi

DESCRIPTION="Reference implementation of the X Color Management specification"
HOMEPAGE="https://www.oyranos.org/libxcm/"

LICENSE="MIT"
SLOT="0"
IUSE="static-libs X"

RDEPEND="
	X? (
		x11-libs/libX11
		x11-libs/libXfixes
		x11-libs/libXmu
	)
"
DEPEND="${RDEPEND}
	x11-base/xorg-proto"

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	econf \
		$(use_enable static-libs static) \
		$(use_with X x11)
}

src_install() {
	default
	find "${D}" -name '*.la' -type f -delete || die
}