forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aravis-9999.ebuild
67 lines (57 loc) · 1.37 KB
/
aravis-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
59
60
61
62
63
64
65
66
67
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
if [[ ${PV} = *9999 ]]; then
EGIT_REPO_URI="https://github.com/AravisProject/aravis.git"
inherit git-r3 autotools
else
SRC_URI="mirror://gnome/sources/${PN}/$(ver_cut 1-2)/${P}.tar.xz"
KEYWORDS="~amd64"
fi
DESCRIPTION="Library for video acquisition using Genicam cameras"
HOMEPAGE="https://wiki.gnome.org/Projects/Aravis"
LICENSE="LGPL-2.1"
SLOT="0"
IUSE="X gstreamer caps"
GST_DEPEND="media-libs/gstreamer:1.0
media-libs/gst-plugins-base:1.0"
RDEPEND=">=dev-libs/glib-2.26
dev-libs/libxml2
X? (
>=x11-libs/gtk+-3.12:3
${GST_DEPEND}
media-libs/gst-plugins-base:1.0
x11-libs/libnotify
)
caps? (
sys-libs/libcap-ng
sys-process/audit
)
gstreamer? ( ${GST_DEPEND} )"
DEPEND="${RDEPEND}
virtual/pkgconfig
dev-libs/gobject-introspection"
if [[ ${PV} != *9999 ]]; then
DEPEND+=" dev-util/gtk-doc dev-util/intltool"
fi
src_prepare() {
default
if [[ ${PV} = *9999 ]]; then
intltoolize || die
gtkdocize || die
eautoreconf
fi
}
src_configure() {
econf \
--disable-silent-rules \
--disable-static \
$(use_enable X viewer) \
$(use_enable gstreamer gst-plugin) \
$(use_enable caps packet-socket) \
--enable-introspection
}
src_install() {
emake install DESTDIR="${D}" aravisdocdir="/usr/share/doc/${PF}"
find "${D}" -name '*.la' -delete
}