git: 06f14bdf0b34 - main - textproc/krep: Update 3.0.2 => 3.1.0

From: Älven <alven_at_FreeBSD.org>
Date: Thu, 17 Sep 2026 01:11:14 UTC
The branch main has been updated by alven:

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

commit 06f14bdf0b3413bd7c8ff45c0d3808d626995bcb
Author:     Älven <alven@FreeBSD.org>
AuthorDate: 2026-09-17 01:10:31 +0000
Commit:     Älven <alven@FreeBSD.org>
CommitDate: 2026-09-17 01:10:50 +0000

    textproc/krep: Update 3.0.2 => 3.1.0
---
 textproc/krep/Makefile             |  2 +-
 textproc/krep/distinfo             |  6 +++---
 textproc/krep/files/patch-Makefile |  8 ++++----
 textproc/krep/files/patch-krep.c   | 30 ------------------------------
 4 files changed, 8 insertions(+), 38 deletions(-)

diff --git a/textproc/krep/Makefile b/textproc/krep/Makefile
index febfb02ae226..97aad70deda7 100644
--- a/textproc/krep/Makefile
+++ b/textproc/krep/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	krep
 DISTVERSIONPREFIX=	v
-DISTVERSION=	3.0.2
+DISTVERSION=	3.1.0
 CATEGORIES=	textproc
 
 MAINTAINER=	alven@FreeBSD.org
diff --git a/textproc/krep/distinfo b/textproc/krep/distinfo
index 7dd47a7ffd7d..669fa5fecde2 100644
--- a/textproc/krep/distinfo
+++ b/textproc/krep/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1788437972
-SHA256 (davidesantangelo-krep-v3.0.2_GH0.tar.gz) = 5aa957278bf6c0a1c30b8bfcc481f92ba338d8c93d7d2e3c233581a7055d3b86
-SIZE (davidesantangelo-krep-v3.0.2_GH0.tar.gz) = 92159
+TIMESTAMP = 1789605812
+SHA256 (davidesantangelo-krep-v3.1.0_GH0.tar.gz) = 536342ce821bfaa4afc37c19d96cc54a37755a866b6564dc825be7a0a242a068
+SIZE (davidesantangelo-krep-v3.1.0_GH0.tar.gz) = 97217
diff --git a/textproc/krep/files/patch-Makefile b/textproc/krep/files/patch-Makefile
index 1cacaa0c2662..246e11af74fc 100644
--- a/textproc/krep/files/patch-Makefile
+++ b/textproc/krep/files/patch-Makefile
@@ -1,4 +1,4 @@
---- Makefile.orig	2026-04-15 10:01:25 UTC
+--- Makefile.orig	2026-09-16 08:38:04 UTC
 +++ Makefile
 @@ -5,11 +5,15 @@ BINDIR = $(PREFIX)/bin
  PREFIX ?= /usr/local
@@ -16,10 +16,10 @@
 +# approach is also broken as host might not share the same CPU features as target.
 +ifeq (0, 1)
 +
- # Build mode: set NATIVE=1 for maximum performance on local machine
+ # Build mode: NATIVE=1 tunes for this CPU; PORTABLE=1 avoids host x86 ISA flags.
  # Example: make NATIVE=1
- ifdef NATIVE
-@@ -46,6 +50,8 @@ else ifeq ($(ARCH), aarch64)
+ ifeq ($(NATIVE),1)
+@@ -48,6 +52,8 @@ else ifeq ($(ARCH), aarch64)
  else ifeq ($(ARCH), aarch64)
      # Enable NEON for aarch64 Linux
      CFLAGS += -D__ARM_NEON
diff --git a/textproc/krep/files/patch-krep.c b/textproc/krep/files/patch-krep.c
deleted file mode 100644
index b7d17b8633aa..000000000000
--- a/textproc/krep/files/patch-krep.c
+++ /dev/null
@@ -1,30 +0,0 @@
---- krep.c.orig	2026-07-01 08:23:35 UTC
-+++ krep.c
-@@ -5721,6 +5721,27 @@ uint64_t memchr_short_search(const search_params_t *pa
- // Handles case-sensitive patterns of any length.
- // Uses 2x 16-byte loads per iteration with fast mask extraction via
- // vshrn/vmovn instead of store-to-memory.
-+
-+#ifdef __aarch64__
-+static inline bool
-+is_nonzero(uint8x16_t a)
-+{
-+	return (vmaxvq_u8(a) != 0);
-+}
-+#else
-+/* no vmaxvq_u8() on AArch32 */
-+static inline bool
-+is_nonzero(uint8x16_t a)
-+{
-+	uint8x8_t a8, a4;
-+
-+	a8 = vmax_u8(vget_low_u8(a), vget_high_u8(a));
-+	a4 = vpmax_u8(a8, a8);
-+
-+	return (vget_lane_u32(a4, 0) != 0);
-+}
-+#endif /* defined(__aarch64__) */
-+
- uint64_t neon_search(const search_params_t *params,
-                      const char *text_start,
-                      size_t text_len,