git: ae1fa8dfcb88 - main - japanese/open_jtalk: New port
Date: Tue, 06 May 2025 06:00:16 UTC
The branch main has been updated by nobutaka:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ae1fa8dfcb88311ca952f7344135134a7d0abe09
commit ae1fa8dfcb88311ca952f7344135134a7d0abe09
Author: MANTANI Nobutaka <nobutaka@FreeBSD.org>
AuthorDate: 2025-05-06 05:19:35 +0000
Commit: MANTANI Nobutaka <nobutaka@FreeBSD.org>
CommitDate: 2025-05-06 05:59:53 +0000
japanese/open_jtalk: New port
The Open JTalk is a Japanese TTS System.
It has been being developed by HTS working group
and some graduate students in Nagoya Institute of Technolog.
PR: 285959
Reported by: SAKAI Hiroaki <kozos@kozos.jp>
---
japanese/Makefile | 1 +
japanese/open_jtalk/Makefile | 31 ++++++++++++++++++++++
japanese/open_jtalk/distinfo | 3 +++
.../files/patch-mecab-naist-jdic_Makefile.am | 11 ++++++++
.../files/patch-mecab-naist-jdic_Makefile.in | 11 ++++++++
japanese/open_jtalk/pkg-descr | 3 +++
japanese/open_jtalk/pkg-plist | 18 +++++++++++++
7 files changed, 78 insertions(+)
diff --git a/japanese/Makefile b/japanese/Makefile
index ef75b4ea7978..1fe8c43ec8ee 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -193,6 +193,7 @@
SUBDIR += ng-devel
SUBDIR += ngraph-fonts
SUBDIR += nkf
+ SUBDIR += open_jtalk
SUBDIR += p5-2chproxy
SUBDIR += p5-Date-Japanese-Era
SUBDIR += p5-Date-Japanese-Holiday
diff --git a/japanese/open_jtalk/Makefile b/japanese/open_jtalk/Makefile
new file mode 100644
index 000000000000..1b7c24d7b62a
--- /dev/null
+++ b/japanese/open_jtalk/Makefile
@@ -0,0 +1,31 @@
+PORTNAME= open_jtalk
+PORTVERSION= 1.11
+CATEGORIES= japanese audio
+MASTER_SITES= SOURCEFORGE
+MASTER_SITE_SUBDIR= open-jtalk/Open%20JTalk/open_jtalk-${PORTVERSION}
+PKGNAMEPREFIX= ja-
+
+MAINTAINER= kozos@kozos.jp
+COMMENT= Japanese Text-to-speech system using HTS-engine and Mecab
+WWW= http://open-jtalk.sourceforge.net/
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= ${PREFIX}/include/iconv.h:converters/libiconv \
+ ${PREFIX}/lib/libHTSEngine.a:audio/hts_engine-API
+
+USE_GCC= yes
+
+HAS_CONFIGURE= yes
+
+post-install:
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/AUTHORS ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/INSTALL ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/japanese/open_jtalk/distinfo b/japanese/open_jtalk/distinfo
new file mode 100644
index 000000000000..13437afffcf6
--- /dev/null
+++ b/japanese/open_jtalk/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1743046843
+SHA256 (open_jtalk-1.11.tar.gz) = 20fdc6aeb6c757866034abc175820573db43e4284707c866fcd02c8ec18de71f
+SIZE (open_jtalk-1.11.tar.gz) = 19464975
diff --git a/japanese/open_jtalk/files/patch-mecab-naist-jdic_Makefile.am b/japanese/open_jtalk/files/patch-mecab-naist-jdic_Makefile.am
new file mode 100644
index 000000000000..b79a4a6fad0b
--- /dev/null
+++ b/japanese/open_jtalk/files/patch-mecab-naist-jdic_Makefile.am
@@ -0,0 +1,11 @@
+--- mecab-naist-jdic/Makefile.am.orig 2018-12-25 06:09:00 UTC
++++ mecab-naist-jdic/Makefile.am
+@@ -5,7 +5,7 @@ DISTCLEANFILES = *.log *.out *~
+
+ MAINTAINERCLEANFILES = Makefile.in char.bin matrix.bin sys.dic unk.dic left-id.def rewrite.def pos-id.def right-id.def
+
+-dicdir = @prefix@/dic
++dicdir = @prefix@/share/open_jtalk/dic
+
+ dic_DATA = char.bin matrix.bin sys.dic unk.dic left-id.def rewrite.def pos-id.def right-id.def
+
diff --git a/japanese/open_jtalk/files/patch-mecab-naist-jdic_Makefile.in b/japanese/open_jtalk/files/patch-mecab-naist-jdic_Makefile.in
new file mode 100644
index 000000000000..28cc579fa40b
--- /dev/null
+++ b/japanese/open_jtalk/files/patch-mecab-naist-jdic_Makefile.in
@@ -0,0 +1,11 @@
+--- mecab-naist-jdic/Makefile.in.orig 2018-12-25 06:39:01 UTC
++++ mecab-naist-jdic/Makefile.in
+@@ -265,7 +265,7 @@ top_srcdir = @top_srcdir@
+ EXTRA_DIST = COPYING Makefile.mak naist-jdic.csv matrix.def _left-id.def _pos-id.def _rewrite.def _right-id.def char.def unk.def feature.def unidic-csj.csv
+ DISTCLEANFILES = *.log *.out *~
+ MAINTAINERCLEANFILES = Makefile.in char.bin matrix.bin sys.dic unk.dic left-id.def rewrite.def pos-id.def right-id.def
+-dicdir = @prefix@/dic
++dicdir = @prefix@/share/open_jtalk/dic
+ dic_DATA = char.bin matrix.bin sys.dic unk.dic left-id.def rewrite.def pos-id.def right-id.def
+ all: all-am
+
diff --git a/japanese/open_jtalk/pkg-descr b/japanese/open_jtalk/pkg-descr
new file mode 100644
index 000000000000..5760a4142d5d
--- /dev/null
+++ b/japanese/open_jtalk/pkg-descr
@@ -0,0 +1,3 @@
+The Open JTalk is a Japanese TTS System.
+It has been being developed by HTS working group
+and some graduate students in Nagoya Institute of Technology
diff --git a/japanese/open_jtalk/pkg-plist b/japanese/open_jtalk/pkg-plist
new file mode 100644
index 000000000000..6bb81e740f3d
--- /dev/null
+++ b/japanese/open_jtalk/pkg-plist
@@ -0,0 +1,18 @@
+bin/open_jtalk
+%%DOCSDIR%%/AUTHORS
+%%DOCSDIR%%/COPYING
+%%DOCSDIR%%/ChangeLog
+%%DOCSDIR%%/INSTALL
+%%DOCSDIR%%/NEWS
+%%DOCSDIR%%/README
+%%DATADIR%%/dic/char.bin
+%%DATADIR%%/dic/matrix.bin
+%%DATADIR%%/dic/sys.dic
+%%DATADIR%%/dic/unk.dic
+%%DATADIR%%/dic/left-id.def
+%%DATADIR%%/dic/rewrite.def
+%%DATADIR%%/dic/pos-id.def
+%%DATADIR%%/dic/right-id.def
+@dir %%DATADIR%%/dic
+@dir %%DOCSDIR%%
+@dir share/licenses/ja-open_jtalk-1.11