mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
Update to apertium-recursive-1.2.1.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
COMMENT = recursive structural transfer module for apertium
|
COMMENT = recursive structural transfer module for apertium
|
||||||
|
|
||||||
DISTNAME = apertium-recursive-$V
|
DISTNAME = apertium-recursive-$V
|
||||||
V = 1.1.2
|
V = 1.2.1
|
||||||
|
|
||||||
CATEGORIES = textproc
|
CATEGORIES = textproc
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include/utf8cpp"
|
|||||||
|
|
||||||
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
||||||
|
|
||||||
AUTOCONF_VERSION = 2.71
|
AUTOCONF_VERSION = 2.72
|
||||||
AUTOMAKE_VERSION = 1.16
|
AUTOMAKE_VERSION = 1.18
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
SHA256 (apertium-recursive-1.1.2.tar.bz2) = DsT4rEE6RLsto2WFadrKXvP+wyjlnntEXf7OyiiqS1A=
|
SHA256 (apertium-recursive-1.2.1.tar.bz2) = HU+suBX5En+Nmo3MxjbtU/OdB7Ma4X5a0PGGU1byB10=
|
||||||
SIZE (apertium-recursive-1.1.2.tar.bz2) = 81318
|
SIZE (apertium-recursive-1.2.1.tar.bz2) = 81753
|
||||||
|
|||||||
@@ -1,16 +1,14 @@
|
|||||||
Index: src/rtx_comp.cc
|
Index: src/rtx_comp.cc
|
||||||
--- src/rtx_comp.cc.orig
|
--- src/rtx_comp.cc.orig
|
||||||
+++ src/rtx_comp.cc
|
+++ src/rtx_comp.cc
|
||||||
@@ -7,6 +7,7 @@
|
@@ -7,11 +7,17 @@
|
||||||
#include <getopt.h>
|
#include <iostream>
|
||||||
#include <libxml/xmlreader.h>
|
#include <libxml/xmlreader.h>
|
||||||
#include <trx_compiler.h>
|
#include <trx_compiler.h>
|
||||||
+#include <unistd.h>
|
+#include <unistd.h>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
@@ -33,6 +34,11 @@ void endProgram(char *name)
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
|
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
|
||||||
@@ -19,5 +17,5 @@ Index: src/rtx_comp.cc
|
|||||||
+ exit(EXIT_FAILURE);
|
+ exit(EXIT_FAILURE);
|
||||||
+ }
|
+ }
|
||||||
LtLocale::tryToSetLocale();
|
LtLocale::tryToSetLocale();
|
||||||
|
CLI cli("compile .rtx files", PACKAGE_VERSION);
|
||||||
#if HAVE_GETOPT_LONG
|
cli.add_str_arg('e', "exclude", "exclude a rule by name", "NAME");
|
||||||
|
|||||||
@@ -1,26 +1,23 @@
|
|||||||
Index: src/rtx_decomp.cc
|
Index: src/rtx_decomp.cc
|
||||||
--- src/rtx_decomp.cc.orig
|
--- src/rtx_decomp.cc.orig
|
||||||
+++ src/rtx_decomp.cc
|
+++ src/rtx_decomp.cc
|
||||||
@@ -9,7 +9,10 @@
|
@@ -9,6 +9,7 @@
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <unicode/ustdio.h>
|
#include <unicode/ustdio.h>
|
||||||
+#include <unistd.h>
|
+#include <unistd.h>
|
||||||
|
|
||||||
+using namespace std;
|
void writeRule(UString rule, UFILE* out)
|
||||||
+
|
|
||||||
void endProgram(char *name)
|
|
||||||
{
|
{
|
||||||
std::cout << basename(name) << ": decompile a transfer bytecode file" << std::endl;
|
@@ -212,6 +213,11 @@ void writeRule(UString rule, UFILE* out)
|
||||||
@@ -218,6 +221,11 @@ void writeRule(UString rule, UFILE* out)
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
+ if (pledge("stdio wpath rpath cpath", NULL) == -1)
|
+ if (pledge("stdio wpath rpath cpath", NULL) == -1)
|
||||||
+ {
|
+ {
|
||||||
+ wcerr << "pledge" << endl;
|
+ std::wcerr << "pledge" << std::endl;
|
||||||
+ exit(EXIT_FAILURE);
|
+ exit(EXIT_FAILURE);
|
||||||
+ }
|
+ }
|
||||||
#if HAVE_GETOPT_LONG
|
LtLocale::tryToSetLocale();
|
||||||
static struct option long_options[]=
|
CLI cli("decompile a transfer bytecode file", PACKAGE_VERSION);
|
||||||
{
|
cli.add_bool_arg('h', "help", "print this message and exit");
|
||||||
|
|||||||
@@ -1,16 +1,12 @@
|
|||||||
Index: src/rtx_proc.cc
|
Index: src/rtx_proc.cc
|
||||||
--- src/rtx_proc.cc.orig
|
--- src/rtx_proc.cc.orig
|
||||||
+++ src/rtx_proc.cc
|
+++ src/rtx_proc.cc
|
||||||
@@ -4,6 +4,7 @@
|
@@ -4,9 +4,15 @@
|
||||||
#include <getopt.h>
|
#include <lttoolbox/file_utils.h>
|
||||||
#include <libgen.h>
|
#include <lttoolbox/lt_locale.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
+#include <unistd.h>
|
+#include <unistd.h>
|
||||||
|
|
||||||
void endProgram(char *name)
|
|
||||||
{
|
|
||||||
@@ -42,6 +43,11 @@ void endProgram(char *name)
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
|
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
|
||||||
@@ -18,6 +14,6 @@ Index: src/rtx_proc.cc
|
|||||||
+ cerr << "pledge" << endl;
|
+ cerr << "pledge" << endl;
|
||||||
+ exit(EXIT_FAILURE);
|
+ exit(EXIT_FAILURE);
|
||||||
+ }
|
+ }
|
||||||
RTXProcessor p;
|
LtLocale::tryToSetLocale();
|
||||||
|
CLI cli("perform structural transfer", PACKAGE_VERSION);
|
||||||
#if HAVE_GETOPT_LONG
|
cli.add_bool_arg('a', "anaphora", "expect coreference LUs from apertium-anaphora");
|
||||||
|
|||||||
Reference in New Issue
Block a user