summaryrefslogtreecommitdiff
blob: af181ef46d2543b7651d25e63033ab129776d17c (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

inherit autotools flag-o-matic git-r3

DESCRIPTION="Practical Music Search: an open source ncurses client for mpd, written in C++"
HOMEPAGE="https://ambientsound.github.io/pms"
EGIT_REPO_URI="https://github.com/ambientsound/pms.git"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE="regex"

RDEPEND="
	sys-libs/ncurses:=[unicode]
	dev-libs/glib:2
	media-libs/libmpdclient
"
DEPEND="
	virtual/pkgconfig
	${RDEPEND}
"

DOCS=( AUTHORS README TODO )

src_prepare() {
	eapply_user

	eautoreconf
}

src_configure() {
	# Required for ncurses[tinfo]
	append-cppflags $(pkg-config --cflags ncursesw)
	append-libs $(pkg-config --libs ncursesw)

	econf \
		$(use_enable regex)
}