Lines 1-6
Link Here
|
1 |
# Copyright 1999-2012 Gentoo Foundation |
1 |
# Copyright 1999-2012 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/oyranos/oyranos-0.9.1.ebuild,v 1.2 2012/11/23 21:55:30 xmw Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=4 |
6 |
|
6 |
|
Lines 13-19
Link Here
|
13 |
LICENSE="BSD" |
13 |
LICENSE="BSD" |
14 |
SLOT="0" |
14 |
SLOT="0" |
15 |
KEYWORDS="~amd64 ~x86" |
15 |
KEYWORDS="~amd64 ~x86" |
16 |
IUSE="X doc static-libs test xinerama" |
16 |
IUSE="X debug doc static-libs test xinerama" |
17 |
|
17 |
|
18 |
RDEPEND="app-admin/elektra |
18 |
RDEPEND="app-admin/elektra |
19 |
dev-libs/libxml2 |
19 |
dev-libs/libxml2 |
Lines 41-52
Link Here
|
41 |
rm -rf elektra* yajl || die |
41 |
rm -rf elektra* yajl || die |
42 |
#keep bundled libXNVCtrl |
42 |
#keep bundled libXNVCtrl |
43 |
|
43 |
|
44 |
epatch "${FILESDIR}"/${PN}-0.9.0-buildsystem.patch |
44 |
epatch "${FILESDIR}"/${PN}-0.9.3-buildsystem.patch |
|
|
45 |
epatch "${FILESDIR}"/${PN}-0.9.3-fix-flmm_tabs-include.patch |
45 |
|
46 |
|
46 |
if ! use X ; then |
47 |
#sed over wrong fltk include paths |
47 |
sed -e '/FLTK_GUI =/s:=.*:=:' \ |
48 |
sed -e '/^#include/s:FL:fltk-1\/FL:' \ |
48 |
-i makefile.in || die |
49 |
-i src/examples/image_display/*.{cpp,h} \ |
49 |
fi |
50 |
src/examples/oyranos_config_fltk.{cxx,h} \ |
|
|
51 |
FL/Flmm_Tabs.{cxx,H} \ |
52 |
src/examples/oforms/*.{cxx,h} \ |
53 |
fl_i18n/*.{cxx,h,H} || die |
54 |
|
55 |
#sed over wrong fltk decl paths |
56 |
sed -e '/^decl {\\#include/s:FL:fltk-1\/FL:' \ |
57 |
-i src/examples/oyranos_config_fltk.fl || die |
58 |
|
59 |
#Flmm_Tabs no part of fltk-1.3.x, no flmm package exists in tree |
60 |
#Flmm_Tabs.{cxx,H} comes bundled in FL directory - what to do? |
61 |
sed -e 's/Flmm/Fl/g' \ |
62 |
-i src/examples/oyranos_config_fltk.{cxx,fl,h} || die |
50 |
|
63 |
|
51 |
if has_version "<app-admin/elektra-0.8.3" ; then |
64 |
if has_version "<app-admin/elektra-0.8.3" ; then |
52 |
sed -e '/^#include/s:kdb.h:elektra-kdb.h:' \ |
65 |
sed -e '/^#include/s:kdb.h:elektra-kdb.h:' \ |
Lines 65-83
Link Here
|
65 |
$(use_enable X libXxf86vm) \ |
78 |
$(use_enable X libXxf86vm) \ |
66 |
$(use_enable X fltk) \ |
79 |
$(use_enable X fltk) \ |
67 |
$(use_enable static-libs static) \ |
80 |
$(use_enable static-libs static) \ |
68 |
$(use_enable xinerama libXinerama) |
81 |
$(use_enable xinerama libXinerama) \ |
|
|
82 |
$(use_enable debug) \ |
83 |
$(use_enable test TESTS) |
69 |
} |
84 |
} |
70 |
|
85 |
|
71 |
src_compile() { |
86 |
src_compile() { |
72 |
emake all |
87 |
emake all |
73 |
use X && emake oforms |
88 |
use X && emake oforms |
74 |
emake docu |
89 |
# emake docu |
75 |
} |
90 |
} |
76 |
|
91 |
|
77 |
src_install() { |
92 |
src_install() { |
78 |
emake DESTDIR="${D}" docdir="${EPREFIX}"/usr/share/doc/${P} install-main |
93 |
emake DESTDIR="${D}" install |
79 |
|
94 |
|
80 |
if ! use doc ; then |
95 |
if ! use doc ; then |
81 |
rm -rf "${ED}/usr/share/doc/${P}/html" || die |
96 |
rm -rf "${ED}/usr/share/doc/${PN}" || die |
|
|
97 |
else |
98 |
mv "${ED}/usr/share/doc/${PN}" "${ED}/usr/share/doc/${P}" |
82 |
fi |
99 |
fi |
83 |
} |
100 |
} |