forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
evas_generic_loaders-9999.ebuild
58 lines (46 loc) · 1.15 KB
/
evas_generic_loaders-9999.ebuild
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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
MY_P=${PN}-${PV/_/-}
if [[ "${PV}" == "9999" ]] ; then
EGIT_SUB_PROJECT="core"
EGIT_URI_APPEND="${PN}"
else
SRC_URI="https://download.enlightenment.org/rel/libs/${PN}/${MY_P}.tar.xz"
EKEY_STATE="snap"
fi
inherit enlightenment flag-o-matic
DESCRIPTION="Provides external applications as generic loaders for Evas"
HOMEPAGE="https://www.enlightenment.org/"
LICENSE="GPL-2"
IUSE="gstreamer pdf postscript raw svg"
RDEPEND=">=dev-libs/efl-${PV}
gstreamer? (
media-libs/gstreamer:1.0
media-libs/gst-plugins-base:1.0
)
pdf? ( app-text/poppler )
postscript? ( app-text/libspectre )
raw? ( media-libs/libraw )
svg? (
gnome-base/librsvg
x11-libs/cairo
)"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${MY_P}
src_prepare() {
# bug 627402, poppler headers require C++11
use pdf && append-cxxflags -std=c++11
default
}
src_configure() {
E_ECONF=(
$(use_enable gstreamer gstreamer1)
$(use_enable pdf poppler)
$(use_enable postscript spectre)
$(use_enable raw libraw)
$(use_enable svg)
--disable-gstreamer
)
enlightenment_src_configure
}