summaryrefslogtreecommitdiff
path: root/media-plugins/deadbeef-infobar/deadbeef-infobar-1.4.ebuild
blob: 76c79ad4b5ac30deca5397094018379fe0aba147 (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
# Distributed under the terms of the GNU General Public License v2

EAPI="5"

DEADBEEF_GUI="yes"

inherit deadbeef-plugins

DESCRIPTION="DeaDBeeF infobar plugin for DeadBeeF that shows lyrics and artist's biography for the current track"
HOMEPAGE="https://bitbucket.org/dsimbiriatin/deadbeef-infobar"
SRC_URI="https://bitbucket.org/dsimbiriatin/${PN}/downloads/${P}.tar.gz"

LICENSE="GPL-2"
KEYWORDS="~*"

RDEPEND+=" dev-libs/libxml2:2
	x11-libs/gdk-pixbuf:2[jpeg]
	media-sound/deadbeef:0[curl]"

DEPEND="${RDEPEND}"

src_prepare() {
	epatch "${FILESDIR}/${PN}-cflags.diff"
	epatch "${FILESDIR}/${PN}-load-gtk2-and-gtk3-version-fix.diff"

	use gtk2 && epatch "${FILESDIR}/${PN}-focus-fix.diff"
}

src_compile() {
	use gtk2 && emake gtk2
	use gtk3 && emake gtk3
}