git: 0bfb22aee695 - main - audio/praat: Update 6.4.23 → 6.4.27, improve port

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Sun, 23 Feb 2025 14:31:11 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0bfb22aee6954b80865504716f376371da7c3af0

commit 0bfb22aee6954b80865504716f376371da7c3af0
Author:     Älven <alster@vinterdalen.se>
AuthorDate: 2025-02-23 14:26:32 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-02-23 14:26:32 +0000

    audio/praat: Update 6.4.23 → 6.4.27, improve port
    
    Changelogs:
    https://www.fon.hum.uva.nl/praat/manual/What_s_new_.html
    
    Improve port:
    + Add WWW for source code repository
    * State LICENSE=GPLv3+ as on official site [0]
    * Sort LIB_DEPENDS
    - Remove unneded libraries from LIB_DEPENDS
    * Follow upstream switch to C++17 compiler
    - Remove unneded any more dos2unix conversion
    * Small linting
    * Improve pkg-descr
    
    [0] https://www.fon.hum.uva.nl/praat/manual/License.html
    
    PR:             284106
    Approved by:    adridg (maintainer, timeout > 1 month)
---
 audio/praat/Makefile                            | 29 +++++++++-------------
 audio/praat/distinfo                            |  6 ++---
 audio/praat/files/patch-melder_melder__strvec.h | 15 -----------
 audio/praat/files/patch-melder_melder__tensor.h | 33 -------------------------
 audio/praat/pkg-descr                           | 22 +++++++++++++++++
 5 files changed, 36 insertions(+), 69 deletions(-)

diff --git a/audio/praat/Makefile b/audio/praat/Makefile
index bc0a54a98d20..52ef1bd27b83 100644
--- a/audio/praat/Makefile
+++ b/audio/praat/Makefile
@@ -1,40 +1,33 @@
 PORTNAME=		praat
 DISTVERSIONPREFIX=	v
-DISTVERSION=		6.4.23
+DISTVERSION=		6.4.27
 CATEGORIES=		audio science
 
 MAINTAINER=	adridg@FreeBSD.org
-COMMENT=	Phonetics by Computer
-WWW=		https://www.fon.hum.uva.nl/praat/
+COMMENT=	Speech analysis tool used for doing phonetics by computer
+WWW=		https://www.fon.hum.uva.nl/praat/ \
+		https://github.com/praat/praat/
 
-LICENSE=	GPLv2
+LICENSE=	GPLv3+
 
-LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
-		libfreetype.so:print/freetype2 \
-		libharfbuzz.so:print/harfbuzz \
-		libasound.so:audio/alsa-lib
+LIB_DEPENDS=	libasound.so:audio/alsa-lib \
+		libharfbuzz.so:print/harfbuzz
 # These are recommended but I can't tell the difference
 RUN_DEPENDS=	CharisSIL>=0:x11-fonts/charis \
 		DoulosSIL>=0:x11-fonts/doulos
 
-USES=		compiler:c++11-lang dos2unix gnome iconv pkgconfig xorg
-USE_GNOME=	cairo gdkpixbuf2 gtk30
+USES=		compiler:c++17-lang gnome iconv pkgconfig xorg
 USE_GITHUB=	yes
+USE_GNOME=	cairo gdkpixbuf2 gtk30
 USE_XORG=	x11
 
-DOS2UNIX_FILES=	\
-		fon/Makefile \
-		melder/Makefile \
-		sys/Makefile \
-		EEG/Makefile
-
 PLIST_FILES=	bin/praat share/man/man1/praat.1.gz
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|^CPPFLAGS =|CPPFLAGS +=|' \
+	${REINPLACE_CMD} -e 's|^CPPFLAGS =|CPPFLAGS +=|' \
 		${WRKSRC}/*/Makefile \
 		${WRKSRC}/external/*/Makefile
-	@${CP} ${WRKSRC}/makefiles/makefile.defs.freebsd.alsa \
+	${CP} ${WRKSRC}/makefiles/makefile.defs.freebsd.alsa \
 		${WRKSRC}/makefile.defs
 
 do-install:
diff --git a/audio/praat/distinfo b/audio/praat/distinfo
index 36122fc86798..68fd6f16795c 100644
--- a/audio/praat/distinfo
+++ b/audio/praat/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1730230968
-SHA256 (praat-praat-v6.4.23_GH0.tar.gz) = 1284d97fc2724142cacd6ef73ec9c146f1b10662865dd47b6e9e758c33f2f256
-SIZE (praat-praat-v6.4.23_GH0.tar.gz) = 61260316
+TIMESTAMP = 1738696913
+SHA256 (praat-praat-v6.4.27_GH0.tar.gz) = af6176c0ed61297e33ca92486a1c92f62f8157bd2b9e4f1ae44ec24a4d31b706
+SIZE (praat-praat-v6.4.27_GH0.tar.gz) = 61371864
diff --git a/audio/praat/files/patch-melder_melder__strvec.h b/audio/praat/files/patch-melder_melder__strvec.h
deleted file mode 100644
index cfdd31bb882e..000000000000
--- a/audio/praat/files/patch-melder_melder__strvec.h
+++ /dev/null
@@ -1,15 +0,0 @@
---- melder/melder_strvec.h.orig	2024-10-29 19:53:40 UTC
-+++ melder/melder_strvec.h
-@@ -192,12 +192,6 @@ class _autostringautovector { (public)
- 		return _autostringvectorview<T> (our elements + (firstPosition - 1), newSize);
- 	}
- 	_autostringautovector&& move () noexcept { return static_cast <_autostringautovector&&> (*this); }   // enable construction and assignment for l-values (variables) via explicit move()
--	void initWithCapacity (integer capacity) {
--		if (capacity > 0)
--			our cells = MelderArray:: _alloc <_autostring <T>> (capacity, MelderArray::kInitializationType::ZERO);
--		our size = 0;
--		our _capacity = capacity;
--	}
- 	void resize (integer newSize) {
- 		if (newSize > our _capacity) {
- 			/*
diff --git a/audio/praat/files/patch-melder_melder__tensor.h b/audio/praat/files/patch-melder_melder__tensor.h
deleted file mode 100644
index 4a32eb5cca49..000000000000
--- a/audio/praat/files/patch-melder_melder__tensor.h
+++ /dev/null
@@ -1,33 +0,0 @@
---- melder/melder_tensor.h.orig	2024-10-29 19:52:21 UTC
-+++ melder/melder_tensor.h
-@@ -155,10 +155,6 @@ struct vectorview {
- 		Melder_assert (last >= 1 && last <= our size);
- 		return vectorview<T> (& our operator[] (first), newSize, our stride);
- 	}
--	matrixview<T> asmatrixview (integer nrow, integer ncol) {
--		Melder_assert (nrow * ncol <= our size);
--		return matrixview (our cells, nrow, ncol, ncol * our stride, our stride);
--	}
- 	T *asArgumentToFunctionThatExpectsZeroBasedArray () const { return & our operator[] (1); }
- 	T *asArgumentToFunctionThatExpectsOneBasedArray () const { return & our operator[] (0); }
- };
-@@ -188,10 +184,6 @@ struct constvectorview {
- 		Melder_assert (last >= 1 && last <= our size);
- 		return constvectorview<T> (& our operator[] (first), newSize, our stride);
- 	}
--	constmatrixview<T> asmatrixview (integer nrow, integer ncol) {
--		Melder_assert (nrow * ncol <= our size);
--		return constmatrixview (our cells, nrow, ncol, ncol * our stride, our stride);
--	}
- 	const T *asArgumentToFunctionThatExpectsZeroBasedArray () const { return & our operator[] (1); }
- 	const T *asArgumentToFunctionThatExpectsOneBasedArray () const { return & our operator[] (0); }
- };
-@@ -1049,7 +1041,7 @@ struct consttensor3 {
- 			our cells
- 			+ (dim2 - 1) * our stride2
- 			+ (dim3 - 1) * our stride3,
--			our nidm1,
-+			our ndim1,
- 			our stride1
- 		);
- 	}
diff --git a/audio/praat/pkg-descr b/audio/praat/pkg-descr
index a757aa52060e..5ae6b58a6b77 100644
--- a/audio/praat/pkg-descr
+++ b/audio/praat/pkg-descr
@@ -1,2 +1,24 @@
 Praat (the Dutch word for "talk") is a free scientific computer software
 package for the analysis of speech in phonetics.
+
+Praat allows you to analyze different aspects of speech including pitch,
+formant, intensity, and voice quality. You have access to spectrograms (a visual
+representation of sound changing over time) and cochleagrams (a specific type of
+spectrogram more closely resembling how the inner ear receives sound).
+
+Praat allows you to generate speech from a pitch curve and filters that you
+create (acoustic synthesis), or from muscle activities (articulatory synthesis).
+
+Praat gives you the ability to modify existing speech utterances. You can alter
+pitch, intensity, and duration of speech.
+
+Praat allows you to custom-label your samples using the IPA (International
+Phonetics Alphabet), and annotate your sound segments based on the particular
+variables you are seeking to analyze. Multi-language text-to-speech facilities
+allow you to segment the sound into words and phonemes.
+
+With Praat, you can try out Optimality-Theoretic and Harmonic-Grammar learning,
+as well as several kinds of neural-network models.
+
+Praat allows you to perform several statistical techniques, among which multi-
+dimensional scaling, principal component analysis, and discriminant analysis.