# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit eutils DESCRIPTION="Practical Music Search, an ncurses-based MPD client" HOMEPAGE="http://pms.sourceforge.net" SRC_URI="http://downloads.sourceforge.net/pms/pms-${PV}.tar.bz2" LICENSE="GPL-3" SLOT="0" KEYWORDS="~x86" IUSE="nls" RDEPEND="sys-libs/ncurses dev-libs/boost >=dev-libs/glib-2.18.4-r1 media-sound/mpd nls? ( sys-devel/gettext )" DEPEND="${RDEPEND}" src_configure() { econf \ --with-ncurses \ --without-ncursesw || die "econf failed" } src_compile() { emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc README TODO "${FILESDIR}"/rc.example } pkg_postinst() { echo einfo "A sample configuration file has been installed into" einfo ""${ROOT}"usr/share/doc/pms-"${PV}". Rename into rc and copy it" einfo "in your ~/.pms/ directory. This step is necessary" einfo "in order to get pms running." echo }