blob: 2b001b2878aee21b6012f68fe597a8a4253c0dbe (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/oyranos/oyranos-9999.ebuild,v 1.4 2013/08/15 03:38:17 patrick Exp $
EAPI=5
inherit eutils flag-o-matic cmake-utils cmake-multilib git-2
DESCRIPTION="colour management system allowing to share various settings across applications and services"
HOMEPAGE="http://www.oyranos.org/"
EGIT_REPO_URI="git://www.${PN}.org/git/${PN}"
LICENSE="BSD"
SLOT="0"
KEYWORDS=""
IUSE="X cairo cups doc exif fltk qt4 raw test"
RDEPEND="=app-admin/elektra-0.7*
dev-libs/libxml2
dev-libs/yajl
media-gfx/exiv2
media-libs/icc-profiles-basiccolor-printing2009
media-libs/icc-profiles-basiccolor-printing2009
|| ( media-libs/lcms:0 media-libs/lcms:2 )
media-libs/libpng:0
media-libs/libraw
>=media-libs/libXcm-0.5.2
fltk? ( x11-libs/fltk:1 )
X? ( x11-libs/libXfixes
x11-libs/libXrandr
x11-libs/libXxf86vm
x11-libs/libXinerama )
cairo? ( x11-libs/cairo )
cups? ( net-print/cups )
exif? ( media-gfx/exiv2 )
qt4? ( dev-qt/qtcore:4 dev-qt/qtgui:4 )
raw? ( media-libs/libraw )"
DEPEND="${RDEPEND}
app-doc/doxygen
media-gfx/graphviz"
RESTRICT="test"
CMAKE_REMOVE_MODULES_LIST="${CMAKE_REMOVE_MODULES_LIST} FindFltk FindCUPS"
src_prepare() {
einfo remove bundled libs
rm -rf elektra* yajl || die
epatch "${FILESDIR}/${PN}"-9999-buildsystem.patch
if use fltk ; then
#src/examples does not include fltk flags
append-cflags $(fltk-config --cflags)
append-cxxflags $(fltk-confiag --cxxflags)
fi
cmake-utils_src_prepare
mycmakeargs=(
$(usex X -DWANT_X11=1 "")
$(usex cairo -DWANT_CAIRO=1 "")
$(usex cups -DWANT_CUPS=1 "")
$(usex exif -DWANT_EXIV2=1 "")
$(usex fltk -DWANT_FLTK=1 "")
$(usex qt4 -DWANT_QT4=1 "")
$(usex raw -DWANT_LIBRAW=1 "")
)
}
src_install() {
cmake-multilib_src_install
dodoc AUTHORS ChangeLog README
if use doc ; then
mv "${ED}/usr/share/doc/${PN}/*" "${ED}/usr/share/doc/${P}" || die
fi
rm -rf "${ED}/usr/share/doc/${PN}" || die
}
|