aboutsummaryrefslogtreecommitdiff
blob: 01f910d56674cd7f1ad45435a3fb189d3b9757d7 (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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="Speech analysis and synthesis"
HOMEPAGE="http://www.fon.hum.uva.nl/praat/ https://github.com/praat/praat"
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

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

DEPEND="
	x11-libs/gtk+:2
	media-libs/alsa-lib
	media-sound/pulseaudio"
RDEPEND="${DEPEND}"

src_prepare() {
	eapply_user
	# TODO: following line should be updated for non-linux etc. builds
	# (Flammie does not have testing equipment)
	cp makefiles/makefile.defs.linux.pulse makefile.defs || die

	cat <<-EOF >> makefile.defs
		CFLAGS += ${CFLAGS}
		CXXFLAGS += ${CXXFLAGS}
	EOF
}

src_install() {
	dobin ${PN}
	insinto /usr/share/${PN}
	doins -r test
}