aboutsummaryrefslogtreecommitdiff
blob: 6872814e4622a644bf6b87390b4d12cf7e53e455 (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-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="Speech analysis and synthesis"
HOMEPAGE="https://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
}