commit:     64de0fcb29b94a011ebde3ac9f544e1713bf4da7
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Sat May  8 13:49:05 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Sat May  8 13:50:57 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=64de0fcb

sci-misc/praat: version bump 6.1.42

Bug: https://bugs.gentoo.org/78392
Co-Authored-By: Edgar Uriel Domínguez Espinoza <edgar_uriel84 <AT> 
genomorro.name>
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 sci-misc/praat/praat-6.1.40.ebuild | 36 -----------------------
 sci-misc/praat/praat-6.1.42.ebuild | 60 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+), 36 deletions(-)

diff --git a/sci-misc/praat/praat-6.1.40.ebuild 
b/sci-misc/praat/praat-6.1.40.ebuild
deleted file mode 100644
index 3e7f7d95c..000000000
--- a/sci-misc/praat/praat-6.1.40.ebuild
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-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"
-LICENSE="GPL-2"
-SLOT="0"
-
-DEPEND="
-       x11-libs/gtk+:2
-       media-libs/alsa-lib
-       media-sound/pulseaudio"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-       default
-       # 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
-}

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/*
+}

Reply via email to