git: ae25671107fc - main - audio/espeak: generate and install man page

From: Stefan Eßer <se_at_FreeBSD.org>
Date: Fri, 08 Jul 2022 18:26:42 UTC
The branch main has been updated by se:

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

commit ae25671107fcdc5314ace69ed41bfe120d9fa236
Author:     Stefan Eßer <se@FreeBSD.org>
AuthorDate: 2022-07-08 18:26:13 +0000
Commit:     Stefan Eßer <se@FreeBSD.org>
CommitDate: 2022-07-08 18:26:13 +0000

    audio/espeak: generate and install man page
---
 audio/espeak/Makefile  | 6 +++++-
 audio/espeak/pkg-plist | 5 ++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/audio/espeak/Makefile b/audio/espeak/Makefile
index 39a0e66df474..d5e005f504f7 100644
--- a/audio/espeak/Makefile
+++ b/audio/espeak/Makefile
@@ -2,15 +2,17 @@
 
 PORTNAME=	espeak-ng
 PORTVERSION=	1.51.1
+PORTREVISION=	1
 CATEGORIES=	audio
 #MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
 #DISTNAME=	${PORTNAME}-${PORTVERSION}-source
 
-MAINTAINER=	nivit@FreeBSD.org
+MAINTAINER=	se@FreeBSD.org
 COMMENT=	Software speech synthesizer
 
 LICENSE=	GPLv3
 
+BUILD_DEPENDS=	ronn:textproc/rubygem-ronn
 LIB_DEPENDS=	libpcaudio.so:audio/pcaudiolib
 
 USES=		autoreconf gmake libtool localbase
@@ -31,6 +33,8 @@ pre-build:
 post-install:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
+	${RLN} ${STAGEDIR}${PREFIX}/man/man1/espeak-ng.1 \
+			${STAGEDIR}${PREFIX}/man/man1/espeak.1
 	${LN} -sf libespeak-ng.so ${STAGEDIR}${PREFIX}/lib/libespeak.so
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libespeak-ng.so*
diff --git a/audio/espeak/pkg-plist b/audio/espeak/pkg-plist
index 6d406195685a..94db3c094dae 100644
--- a/audio/espeak/pkg-plist
+++ b/audio/espeak/pkg-plist
@@ -6,12 +6,15 @@ include/espeak-ng/encoding.h
 include/espeak-ng/espeak_ng.h
 include/espeak-ng/speak_lib.h
 include/espeak/speak_lib.h
-lib/libespeak.so
 lib/libespeak-ng.a
 lib/libespeak-ng.so
 lib/libespeak-ng.so.1
 lib/libespeak-ng.so.1.1.51
+lib/libespeak.so
 libdata/pkgconfig/espeak-ng.pc
+man/man1/espeak-ng.1.gz
+man/man1/espeak.1.gz
+man/man1/speak-ng.1.gz
 %%PORTDOCS%%%%DOCSDIR%%/add_language.md
 %%PORTDOCS%%%%DOCSDIR%%/building.md
 %%PORTDOCS%%%%DOCSDIR%%/contributing.md