diff options
Diffstat (limited to 'sci-misc/praat/praat-6.1.42.ebuild')
-rw-r--r-- | sci-misc/praat/praat-6.1.42.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/sci-misc/praat/praat-6.1.42.ebuild b/sci-misc/praat/praat-6.1.42.ebuild new file mode 100644 index 000000000..5a60b5149 --- /dev/null +++ b/sci-misc/praat/praat-6.1.42.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Speech analysis and synthesis" +SRC_URI="https://github.com/praat/praat/archive/v${PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE="http://www.fon.hum.uva.nl/praat/" + +KEYWORDS="~amd64 ~x86" +IUSE="+pulseaudio static-libs +X" +LICENSE="GPL-2" +SLOT="0" + +DEPEND=" + pulseaudio? ( media-sound/pulseaudio ) + static-libs? ( media-libs/alsa-lib ) + X? ( x11-libs/gtk+:3 ) + !X? ( x11-libs/pango )" + +RDEPEND="${DEPEND}" + +S="${WORKDIR}/praat-${PV}" + +src_prepare() { + if use X; then + if use static-libs; then + if use pulseaudio; then + cp "${S}/makefiles/makefile.defs.linux.pulse_static" "${S}/makefile.defs" + else + cp "${S}/makefiles/makefile.defs.linux.alsa" "${S}/makefile.defs" + fi + else + if use pulseaudio; then + cp "${S}/makefiles/makefile.defs.linux.pulse" "${S}/makefile.defs" + else + cp "${S}/makefiles/makefile.defs.linux.silent" "${S}/makefile.defs" + fi + fi + else + cp "${S}/makefiles/makefile.defs.linux.nogui" "${S}/makefile.defs" + fi + cat <<-EOF >> makefile.defs + CFLAGS += ${CFLAGS} + LDFLAGS += ${LDFLAGS} + CXXFLAGS += ${CXXFLAGS} + EOF + default +} + +src_install() { + if [ -e praat_nogui ]; then + mv praat_nogui praat + elif [ -e praat_static ]; then + mv praat_static praat + fi + dobin praat + insinto /usr/share/${PN}/test + doins -r test/* +} |