git: 7f6b35548baf - main - textproc/apertium-eng: New port

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 04 Apr 2022 18:34:20 UTC
The branch main has been updated by bofh:

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

commit 7f6b35548bafc4ea1aff96d60941d08a6dbe8f12
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-04-04 18:33:16 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-04-04 18:34:06 +0000

    textproc/apertium-eng: New port
    
    Apertium is an open-source machine translation platform, initially aimed
    at related-language pairs but recently expanded to deal with more
    divergent language pairs (such as English-Catalan). The platform
    provides:
    
    1. a language-independent machine translation engine
    2. tools to manage the linguistic data necessary to build a machine
       translation system for a given language pair and
    3. linguistic data for a growing number of language pairs
    
    This is an Apertium monolingual language package for English.
    
    WWW: https://www.apertium.org/
---
 textproc/Makefile               |  1 +
 textproc/apertium-eng/Makefile  | 29 +++++++++++++++++++++++++++++
 textproc/apertium-eng/distinfo  |  3 +++
 textproc/apertium-eng/pkg-descr | 13 +++++++++++++
 textproc/apertium-eng/pkg-plist | 17 +++++++++++++++++
 5 files changed, 63 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 29d501eaec0b..3981589c9533 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -52,6 +52,7 @@
     SUBDIR += apache-poi
     SUBDIR += apache-solr
     SUBDIR += apertium
+    SUBDIR += apertium-eng
     SUBDIR += artha
     SUBDIR += asciidoc
     SUBDIR += asm-xml
diff --git a/textproc/apertium-eng/Makefile b/textproc/apertium-eng/Makefile
new file mode 100644
index 000000000000..c2037041bb2c
--- /dev/null
+++ b/textproc/apertium-eng/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	apertium-eng
+PORTVERSION=	0.1.0.20220212
+DISTVERSIONPREFIX=	v
+CATEGORIES=	textproc
+
+MAINTAINER=	bofh@FreeBSD.org
+COMMENT=	Apertium monolingual language package for English
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+BUILD_DEPENDS=	apertium>0:textproc/apertium
+LIB_DEPENDS=	libcg3.so:textproc/cg3
+
+USES=		autoreconf gmake pathfix pkgconfig python
+USE_GITHUB=	yes
+GH_ACCOUNT=	apertium
+GH_TAGNAME=	b230738
+
+GNU_CONFIGURE=	yes
+
+NO_ARCH=	yes
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|g ; \
+		s|^pkgconfigdir.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig| ' \
+		${WRKSRC}/Makefile.am
+
+.include <bsd.port.mk>
diff --git a/textproc/apertium-eng/distinfo b/textproc/apertium-eng/distinfo
new file mode 100644
index 000000000000..605e903a6059
--- /dev/null
+++ b/textproc/apertium-eng/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1649017626
+SHA256 (apertium-apertium-eng-v0.1.0.20220212-b230738_GH0.tar.gz) = 4ff72675308e34ab6f0d7e64057efd599fd602854a6a9d5de66e0f56bcaf651c
+SIZE (apertium-apertium-eng-v0.1.0.20220212-b230738_GH0.tar.gz) = 1640199
diff --git a/textproc/apertium-eng/pkg-descr b/textproc/apertium-eng/pkg-descr
new file mode 100644
index 000000000000..521e3d9cc5dd
--- /dev/null
+++ b/textproc/apertium-eng/pkg-descr
@@ -0,0 +1,13 @@
+Apertium is an open-source machine translation platform, initially aimed
+at related-language pairs but recently expanded to deal with more
+divergent language pairs (such as English-Catalan). The platform
+provides:
+
+1. a language-independent machine translation engine
+2. tools to manage the linguistic data necessary to build a machine
+   translation system for a given language pair and
+3. linguistic data for a growing number of language pairs
+
+This is an Apertium monolingual language package for English.
+
+WWW: https://www.apertium.org/
diff --git a/textproc/apertium-eng/pkg-plist b/textproc/apertium-eng/pkg-plist
new file mode 100644
index 000000000000..61a3cdb69d55
--- /dev/null
+++ b/textproc/apertium-eng/pkg-plist
@@ -0,0 +1,17 @@
+libdata/pkgconfig/apertium-eng.pc
+share/apertium/apertium-eng/apertium-eng.eng.dix
+share/apertium/apertium-eng/apertium-eng.eng.rlx
+share/apertium/apertium-eng/apertium-eng.post-eng.dix
+share/apertium/apertium-eng/eng.autogen.att.gz
+share/apertium/apertium-eng/eng.autogen.bin
+share/apertium/apertium-eng/eng.automorf.att.gz
+share/apertium/apertium-eng/eng.automorf.bin
+share/apertium/apertium-eng/eng.autopgen.bin
+share/apertium/apertium-eng/eng.prob
+share/apertium/apertium-eng/eng.rlx.bin
+share/apertium/apertium-eng/eng_US.autogen.bin
+share/apertium/apertium-eng/eng_US.autopgen.bin
+share/apertium/modes/eng-disam.mode
+share/apertium/modes/eng-gener.mode
+share/apertium/modes/eng-morph.mode
+share/apertium/modes/eng-tagger.mode