git: 0613b0fd68fa - main - audio/sox: fix man page.

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Fri, 25 Nov 2022 16:46:32 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0613b0fd68faf2d13925745831b046ed306dbbb8

commit 0613b0fd68faf2d13925745831b046ed306dbbb8
Author:     Dan Nelson <dnelson@allantgroup.com>
AuthorDate: 2022-11-25 06:35:15 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-11-25 16:42:33 +0000

    audio/sox: fix man page.
    
    Rename custom macros.
    Use \fB..\fR to let mandoc(1) run without warnings.
    
    PR:             267908
    Reported by:    dgilbert@eicat.ca
---
 audio/sox/Makefile          |  9 +++++++++
 audio/sox/files/patch-sox.1 | 26 ++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)

diff --git a/audio/sox/Makefile b/audio/sox/Makefile
index bdf11551d501..5d236fafd4c6 100644
--- a/audio/sox/Makefile
+++ b/audio/sox/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	sox
 DISTVERSION=	14.4.2.20210509
+PORTREVISION=	1
 CATEGORIES=	audio
 MASTER_SITES=	https://dev.gentoo.org/~fordfrog/distfiles/
 DISTNAME=	sox-code-42b3557e13e0fe01a83465b672d89faddbe65f49
@@ -96,4 +97,12 @@ OPUS_LIB_DEPENDS=	libopusfile.so:audio/opusfile
 
 INSTALL_TARGET=		install-strip
 
+post-patch:
+	# rename sox's custom EX/EE macros so they don't get overridden by
+	# the default ones
+	${REINPLACE_CMD} \
+		-e 's/EX$$/soxEX/' \
+		-e 's/EE$$/soxEE/' \
+		${WRKSRC}/*.[0-9]
+
 .include <bsd.port.mk>
diff --git a/audio/sox/files/patch-sox.1 b/audio/sox/files/patch-sox.1
new file mode 100644
index 000000000000..3628e76db25b
--- /dev/null
+++ b/audio/sox/files/patch-sox.1
@@ -0,0 +1,26 @@
+--- sox.1.orig	2021-05-09 20:19:07 UTC
++++ sox.1
+@@ -3531,8 +3531,7 @@ The average of the absolute value of each sample in th
+ T}
+ Mean amplitude	\(S1/\s-2n\s+2\^\(*S\^\fIx\s-2\dk\u\s0\fR	T{
+ The average of each sample in the audio.  If this figure is non-zero, then it indicates the
+-presence of a D.C. offset (which could be removed using the
+-.B dcshift
++presence of a D.C. offset (which could be removed using the \fBdcshift\fR
+ effect).
+ T}
+ RMS amplitude	\(sr(\(S1/\s-2n\s+2\^\(*S\^\fIx\s-2\dk\u\s0\fR\(S2)	T{
+@@ -3545,11 +3544,9 @@ Mean delta	\(S1/\s-2n\-1\s+2\^\(*S\^\^\(br\^\fIx\s-2\d
+ RMS delta	\(sr(\(S1/\s-2n\-1\s+2\^\(*S\^(\fIx\s-2\dk\u\s0\fR\^\-\^\fIx\s-2\dk\-1\u\s0\fR)\(S2)
+ Rough frequency	\ 	In Hz.
+ Volume Adjustment	\ 	T{
+-The parameter to the
+-.B vol
++The parameter to the \fBvol\fR
+ effect which would make the audio as loud as possible without clipping.
+-Note: See the discussion on
+-.B Clipping
++Note: See the discussion on \fBClipping\fR
+ above for reasons why it is rarely a good idea actually to do this.
+ T}
+ .TE