blob: c3c9ecb43cc56763428f916bcff949f3cec777dd (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit cmake-multilib
DESCRIPTION="Config database to store, share and manipulate colour management informations"
HOMEPAGE="https://github.com/OpenICC/config"
SRC_URI="https://github.com/OpenICC/config/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc static-libs test"
RDEPEND="
dev-libs/yajl[${MULTILIB_USEDEP}]
"
DEPEND="${RDEPEND}
sys-devel/gettext
doc? ( app-doc/doxygen )
"
REQUIRED_USE="test? ( static-libs )"
PATCHES=( "${FILESDIR}/${P}"-buildsystem.patch )
MULTILIB_WRAPPED_HEADERS=(
/usr/include/openicc/openicc_version.h
)
S="${WORKDIR}/config-${PV}"
multilib_src_configure() {
local mycmakeargs=(
-DENABLE_STATIC_LIBS=$(usex static-libs)
-DENABLE_TESTS=$(usex test)
$(multilib_is_native_abi || echo -DENABLE_TOOLS=OFF )
-DCMAKE_INSTALL_DOCDIR=share/doc/${PF}
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=$(multilib_native_usex doc OFF ON)
)
cmake-utils_src_configure
}
|