summaryrefslogtreecommitdiff
blob: 7e434efb41c8bc44510f03c9eebcdfeb3a9da3f2 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4

inherit eutils

DESCRIPTION="IR remote control for Ardour"
HOMEPAGE=""
SRC_URI="http://www.aperiplus.co.uk/downloads/src/${P}.tar.bz2"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="app-misc/lirc
	dev-lang/perl
	dev-perl/Audio-Ardour-Irc
	dev-perl/Class-Accessor
	dev-perl/File-Path-Expand
	dev-perl/Lirc-Client
	media-libs/liblo"

DEPEND="${RDEPEND}"

confdir=/etc/ardour-irc

src_unpack() {
    unpack ${A}
}

src_install() {
    insinto /usr/bin/
    doins "${S}/usr/bin/aircd"
    insinto /etc
    doins -r "${S}/etc/ardour-irc"
}

pkg_postinst() {
    chmod +x /usr/bin/aircd
    elog ""
    elog "(1) See http://en.gentoo-wiki.com/wiki/LIRC for info on setting up LIRC."
    elog ""
    elog "(2) You need to create a valid "${confdir}"lirc.conf for your remote."
    elog "    Instructions are in the file."
    elog ""
    elog "(3) OSC is not enabled by default in Ardour - see menu: Options/Misc Options."
    elog ""
    elog "(4) Start the Ardour-Irc daemon from the command line:" 
    elog ""
    elog "    $ aircd"
    elog ""
    elog "    ...Ardour will now be able to hear commands from your remote."
    elog ""
}