| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/audtty/audtty-0.1.9a-r1.ebuild,v 1.3 2009/08/09 11:37:24 nixnut Exp $
|
| 4 |
|
| 5 |
inherit autotools eutils toolchain-funcs
|
| 6 |
|
| 7 |
DESCRIPTION="Control Audacious from the command line with a friendly ncurses interface"
|
| 8 |
HOMEPAGE="http://audtty.alioth.debian.org"
|
| 9 |
SRC_URI="http://${PN}.alioth.debian.org/${PN}/${P}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="GPL-2"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="~alpha amd64 ppc x86"
|
| 14 |
IUSE=""
|
| 15 |
|
| 16 |
RDEPEND="sys-libs/ncurses
|
| 17 |
>=media-sound/audacious-1.5.1"
|
| 18 |
DEPEND="${RDEPEND}
|
| 19 |
virtual/pkgconfig"
|
| 20 |
|
| 21 |
S=${WORKDIR}/${PN}
|
| 22 |
|
| 23 |
src_unpack() {
|
| 24 |
unpack ${A}
|
| 25 |
cd "${S}"
|
| 26 |
epatch "${FILESDIR}"/${P}-cc-and-destdir.patch
|
| 27 |
eautoreconf
|
| 28 |
}
|
| 29 |
|
| 30 |
src_compile() {
|
| 31 |
tc-export CC
|
| 32 |
econf
|
| 33 |
emake || die "emake failed."
|
| 34 |
}
|
| 35 |
|
| 36 |
src_install() {
|
| 37 |
emake DESTDIR="${D}" install || die "emake install failed."
|
| 38 |
dodoc ChangeLog README
|
| 39 |
}
|
| 40 |
|
| 41 |
pkg_postinst() {
|
| 42 |
elog "In order to run audtty over ssh or on a seperate TTY locally you need"
|
| 43 |
elog "to download and run the following script in a terminal on your desktop:"
|
| 44 |
elog ""
|
| 45 |
elog "http://${PN}.alioth.debian.org/dbus.sh"
|
| 46 |
elog ""
|
| 47 |
elog "Once run you will need to add ~/.dbus-session to your ~/.bashrc file."
|
| 48 |
}
|