Sun Oct 15 06:39:25 2023 UTC ()
link-grammar: Update to 5.12.3

* Split Makefile into Makefile and Makefile.common to use for
  upcomming py-link-grammar.

Changelog:
Version 5.12.3 (24 March 2023)
 * Assorted Atomese fixes.
 * Fix SAT-solver build breaks.
 * Add dictionary flag to disable built-in capitlization rules. #1468

Version 5.12.2 (9 March 2023)
 * Fix null-pointer deref in Atomese code.

Version 5.12.1 (5 March 2023)
 * Assorted enhancements and fixes for the AtomSpace dictionary. #1362
 * Fix missing HAVE_THREADS_H, affects Apple Homebrew. #1363
 * Fix regex thread-safety issue. #1370
 * Disable aspell; it leaks memory. #1373
 * Deduplicate linkages when overflow forces random selection. #1378 #1396
 * Fix direct dialect settings on connectors. #1382
 * Cleanup dictionary backends. #1391 thru #1395
 * English dict: paraphrasing fixes. #1398
 * Report CPU time usage only for the current thread. #1399
 * Extensive performance optimizations for MST dictionaries. #1402
 * Remove old broken max-cost computations. #1456

Version 5.12.0 (26 Nov 2022)
 * Fix crash when using the Atomese dictionary backend.
 * Fix generation tokenization bug when dict has no unknown word token.
 * Major Atomese dictionary extensions, including generation support.
 * Minor tweaks to `any` uniform random parse tree language.
 * Include U+202F NARROW NO-BREAK SPACE as a space character.
 * Fix the various regexes so that they're thread-safe! #1354
 * Maybe(?) fix FreeBSD missing -lstdthreads #1355

Version 5.11.0 (27 Sept 2022)
 * Prototype support for dictionary in the AtomSpace.
 * English dict: assorted missing nouns, verbs. #1289
 * Performance improvements. #1309
 * Fix Windows build break in 5.10.4, 5.10.5 fixed in #1313
 * Fix "amy" language #1312
 * Fix multilib systems, e.g. elf32-i386 #1314
 * Corrected grapheme support for random morpheme sampling. #1315
 * Thai language dictionary updates #1322
 * Punctuation fixes #1331
 * Affixes can now be specified with regexes #1334
 * The regex library PCRE2 is required by default.


(ryoon)
diff -r1.21 -r1.22 pkgsrc/textproc/link-grammar/Makefile
diff -r0 -r1.1 pkgsrc/textproc/link-grammar/Makefile.common
diff -r1.11 -r1.12 pkgsrc/textproc/link-grammar/PLIST
diff -r1.17 -r1.18 pkgsrc/textproc/link-grammar/distinfo
diff -r1.4 -r1.5 pkgsrc/textproc/link-grammar/patches/patch-configure
diff -r0 -r1.1 pkgsrc/textproc/link-grammar/patches/patch-link-grammar_parse_extract-links.c
diff -r0 -r1.1 pkgsrc/textproc/link-grammar/patches/patch-link-grammar_resources.c

cvs diff -r1.21 -r1.22 pkgsrc/textproc/link-grammar/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/link-grammar/Makefile 2023/08/14 05:25:24 1.21
+++ pkgsrc/textproc/link-grammar/Makefile 2023/10/15 06:39:25 1.22

File Added: pkgsrc/textproc/link-grammar/Makefile.common
# $NetBSD: Makefile.common,v 1.1 2023/10/15 06:39:25 ryoon Exp $
#
# used by textproc/link-grammar/Makefile
# used by textproc/py-link-grammar/Makefile

DISTNAME=	link-grammar-5.12.3
MASTER_SITES=	https://www.abisource.com/downloads/link-grammar/${PKGVERSION_NOREV}/

HOMEPAGE=	https://www.abisource.com/projects/link-grammar/
LICENSE=	modified-bsd AND gnu-lgpl-v2.1

DISTINFO_FILE=	${.CURDIR}/../link-grammar/distinfo
FILESDIR=	${.CURDIR}/../link-grammar/files
PATCHDIR=	${.CURDIR}/../link-grammar/patches

USE_LANGUAGES=	c99 c++
USE_LIBTOOL=	yes
USE_TOOLS+=	gmake pkg-config
GNU_CONFIGURE=	yes

CONFIGURE_ARGS+=	--disable-java-bindings

# Not all currently supported compilers provide this option.
# The configure script purports to check whether the compiler
# supports it, but doesn't do so correctly.
BUILDLINK_TRANSFORM+=	rm:-Wformat-signedness

.include "../../devel/pcre2/buildlink3.mk"

cvs diff -r1.11 -r1.12 pkgsrc/textproc/link-grammar/PLIST (expand / switch to unified diff)

--- pkgsrc/textproc/link-grammar/PLIST 2021/10/29 21:11:25 1.11
+++ pkgsrc/textproc/link-grammar/PLIST 2023/10/15 06:39:25 1.12

cvs diff -r1.17 -r1.18 pkgsrc/textproc/link-grammar/distinfo (expand / switch to unified diff)

--- pkgsrc/textproc/link-grammar/distinfo 2021/10/29 21:11:25 1.17
+++ pkgsrc/textproc/link-grammar/distinfo 2023/10/15 06:39:25 1.18

cvs diff -r1.4 -r1.5 pkgsrc/textproc/link-grammar/patches/patch-configure (expand / switch to unified diff)

--- pkgsrc/textproc/link-grammar/patches/patch-configure 2020/03/30 23:20:21 1.4
+++ pkgsrc/textproc/link-grammar/patches/patch-configure 2023/10/15 06:39:25 1.5

File Added: pkgsrc/textproc/link-grammar/patches/patch-link-grammar_parse_extract-links.c
$NetBSD: patch-link-grammar_parse_extract-links.c,v 1.1 2023/10/15 06:39:25 ryoon Exp $

--- link-grammar/parse/extract-links.c.orig	2023-03-16 18:49:51.000000000 +0000
+++ link-grammar/parse/extract-links.c
@@ -294,7 +294,7 @@ void free_extractor(extractor_t * pex)
 
 	xfree((void *) pex, sizeof(extractor_t));
 
-#if defined __GNUC__
+#if defined(__GNUC__) && !defined(__NetBSD__)
 	// malloc_trim() is a gnu extension.  An alternative would be
 	// to call madvise(MADV_DONTNEED) but this is more complicated.
 	if (trim) malloc_trim(0);

File Added: pkgsrc/textproc/link-grammar/patches/patch-link-grammar_resources.c
$NetBSD: patch-link-grammar_resources.c,v 1.1 2023/10/15 06:39:25 ryoon Exp $

--- link-grammar/resources.c.orig	2023-03-05 03:54:59.000000000 +0000
+++ link-grammar/resources.c
@@ -38,6 +38,10 @@ int getrusage(int who, struct rusage *ru
 /* Declaration missing from sys/resource.h in sun operating systems (?) */
 #endif /* __sun__ */
 
+#if !defined(RUSAGE_THREAD) /* At least NetBSD */
+#define RUSAGE_THREAD RUSAGE_SELF
+#endif
+
 #include "api-structures.h"
 #include "resources.h"
 #include "utilities.h"