/
bamf-0.2.104-r1.ebuild
75 lines (60 loc) · 1.23 KB
/
bamf-0.2.104-r1.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
68
69
70
71
72
73
74
75
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="3"
inherit autotools
DESCRIPTION="BAMF Application Matching Framework"
SRC_URI="http://launchpad.net/${PN}/0.2/0.2.104/+download/${PN}-${PV}.tar.gz"
HOMEPAGE="https://launchpad.net/bamf"
KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="LGPL-3"
IUSE="+gtk2 gtk3"
DDEPEND=">=dev-lang/vala-0.11.7
gtk3? (
>=x11-libs/libwnck-3.2.1
>=x11-libs/gtk+-3.2.1 )
gnome-base/libgtop"
DEPEND="${DDEPEND}
dev-util/gtk-doc"
RDEPEND="${DDEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
}
src_prepare(){
sed -i -e 's/vapigen/vapigen-0.12/' configure.in
sed -i -e 's/-Werror//' configure.in
if use gtk2;then
sed -i -e 's/AM_PATH_GTK_3_0/AM_PATH_GTK_2_0/' configure.in
fi
eautoreconf
}
src_configure(){
if use gtk2;then
econf --with-gtk=2
fi
if use gtk3;then
mkdir gtk3-hack
cp -R * gtk3-hack
cd gtk3-hack
econf --with-gtk=3
fi
}
src_compile(){
if use gtk2;then
emake || die
fi
if use gtk3;then
cd gtk3-hack
emake || die
fi
}
src_install() {
if use gtk2;then
emake DESTDIR="${ED}" install || die "make install failed"
fi
if use gtk3;then
cd gtk3-hack
emake DESTDIR="${ED}" install || die "make install failed"
fi
}