media-sound/pms: fix numerous QA issues in 0.42-r2
authorMykyta Holubakha <hilobakho@gmail.com>
Thu, 8 Sep 2016 19:24:21 +0000 (22:24 +0300)
committerMarek Szuba <marecki@gentoo.org>
Tue, 13 Sep 2016 08:45:40 +0000 (10:45 +0200)
specify correct license

fix ncurses slot depend

add missing virtual/libintl depend and sys-devel/gettext rdepend

use tc-getPKG_CONFIG from toolchain funcs

Signed-off-by: Marek Szuba <marecki@gentoo.org>
media-sound/pms/pms-0.42-r2.ebuild

index d1f97298c64e354f3c2fc12dc5c34c61558563da..13e7ff089998912f998616754adfee04f2988f5a 100644 (file)
@@ -4,24 +4,26 @@
 
 EAPI=6
 
-inherit eutils autotools flag-o-matic
+inherit autotools eutils flag-o-matic toolchain-funcs
 
 DESCRIPTION="Practical Music Search: an open source ncurses client for mpd, written in C++"
 HOMEPAGE="https://ambientsound.github.io/pms/"
 SRC_URI="https://github.com/ambientsound/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 
-LICENSE="GPL-3"
+LICENSE="GPL-3+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="regex"
 
 RDEPEND="
-       sys-libs/ncurses:=
+       sys-libs/ncurses:0=
        dev-libs/glib:2
+       virtual/libintl
        regex? ( dev-libs/boost:= )
 "
 DEPEND="
        virtual/pkgconfig
+       sys-devel/gettext
        ${RDEPEND}
 "
 
@@ -44,8 +46,8 @@ src_prepare() {
 
 src_configure() {
        # fixes build with ncurses[tinfo], bug #526530
-       append-cflags $(pkg-config --cflags ncursesw)
-       append-libs $(pkg-config --libs ncursesw)
+       append-cflags $($(tc-getPKG_CONFIG) --cflags ncursesw)
+       append-libs $($(tc-getPKG_CONFIG) --libs ncursesw)
 
        econf \
                $(use_enable regex)