summaryrefslogtreecommitdiff
blob: 15f01e392ab60afaf056796bb7fe75fef81b30e4 (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
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools desktop xdg

DESCRIPTION="JACK client record button remembering the last 10 seconds when pressed"
HOMEPAGE="http://plugin.org.uk/timemachine/"
SRC_URI="https://github.com/swh/timemachine/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="lash"

BDEPEND="
	virtual/pkgconfig
"
CDEPEND="
	virtual/jack
	x11-libs/gtk+:2
	media-libs/liblo
	>=media-libs/libsndfile-1.0.5
	lash? ( >=media-sound/lash-0.5 )
"
RDEPEND="${CDEPEND}"
DEPEND="${CDEPEND}"

PATCHES=( "${FILESDIR}/${P}-underlinking.patch" )

src_prepare() {
	mv configure.{in,ac} || die

	default

	eautoreconf
}

src_configure() {
	econf \
		$(use_enable lash)
}

src_install() {
	emake DESTDIR="${D}" install

	dodoc AUTHORS ChangeLog NEWS README TODO
	newicon pixmaps/timemachine-icon.png "${PN}.png"

	make_desktop_entry timemachine "TimeMachine Recording" timemachine
}