summaryrefslogtreecommitdiff
blob: f46e060720dcccb35e2c8da5e0ee2909affce7c1 (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
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
inherit autotools bash-completion-r1

DESCRIPTION="A fast, lightweight quick launch bar"
HOMEPAGE="https://github.com/rodolf0/wbar"
SRC_URI="https://${PN}.googlecode.com/files/${P}.tgz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="gtk"
RDEPEND="
	media-libs/imlib2[X]
	x11-libs/libX11
	gtk? (
		dev-libs/glib
		gnome-base/libglade
		media-libs/freetype:2
		x11-libs/gdk-pixbuf:2
		x11-libs/gtk+:2
	)
"
DEPEND="
	${RDEPEND}
	dev-util/intltool
	sys-devel/gettext
	virtual/pkgconfig
"
PATCHES=(
	"${FILESDIR}"/${PN}-2.3.3-desktopfile.patch
	"${FILESDIR}"/${PN}-2.3.3-nowerror.patch
	"${FILESDIR}"/${PN}-2.3.3-test.patch
	"${FILESDIR}"/${PN}-2.3.4-automake-1.13.patch
	"${FILESDIR}"/${PN}-2.3.4-c++11.patch
	"${FILESDIR}"/${PN}-2.3.4-completion.patch
)

src_prepare() {
	default

	use gtk || eapply "${FILESDIR}"/${PN}-2.3.4-gtk.patch

	sed -i \
		-e "/^bashcompletiondir/s:=.*$:=$(get_bashcompdir):" \
		etc/Makefile.am || die #482358

	eautoreconf
}

src_configure() {
	econf \
		$(use_enable gtk wbar-config)
}