git: b34147d672f3 - main - textproc/comparator: Find common sections in source trees
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 Feb 2026 15:41:10 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b34147d672f3a65570f7e8c66a3420b76f4b6fb3
commit b34147d672f3a65570f7e8c66a3420b76f4b6fb3
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2026-02-10 13:23:24 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-02-10 15:40:38 +0000
textproc/comparator: Find common sections in source trees
comparator is a program for rapidly finding common segments in large
source-code trees. See the manual page for instructions. It comes with
a filtering postprecessor, filterator.
---
textproc/Makefile | 1 +
textproc/comparator/Makefile | 22 ++++++++++++++++++++++
textproc/comparator/distinfo | 3 +++
textproc/comparator/files/patch-Makefile | 22 ++++++++++++++++++++++
textproc/comparator/pkg-descr | 3 +++
textproc/comparator/pkg-plist | 4 ++++
6 files changed, 55 insertions(+)
diff --git a/textproc/Makefile b/textproc/Makefile
index 83503e7cb3bb..2c21c4401778 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -110,6 +110,7 @@
SUBDIR += codesearch
SUBDIR += codespell
SUBDIR += colordiff
+ SUBDIR += comparator
SUBDIR += comrak
SUBDIR += confget
SUBDIR += consul-template
diff --git a/textproc/comparator/Makefile b/textproc/comparator/Makefile
new file mode 100644
index 000000000000..f48f1e7ab45e
--- /dev/null
+++ b/textproc/comparator/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= comparator
+DISTVERSION= 2.13
+CATEGORIES= textproc devel
+
+MAINTAINER= fuz@FreeBSD.org
+COMMENT= Find common sections in source trees
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= asciidoctor:textproc/rubygem-asciidoctor
+
+USES= python shebangfix
+USE_GITLAB= yes
+GL_ACCOUNT= esr
+
+CFLAGS+= -DLARGEFILES
+MAKE_ARGS= VERSION=${DISTVERSION}
+TEST_TARGET= check
+SHEBANG_FILES= hashgen.py filterator
+
+.include <bsd.port.mk>
diff --git a/textproc/comparator/distinfo b/textproc/comparator/distinfo
new file mode 100644
index 000000000000..10900e2bfc87
--- /dev/null
+++ b/textproc/comparator/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1770728200
+SHA256 (comparator-2.13.tar.bz2) = f591cd8400bfefec6636bd6c018127bb9b4b341bf3ede21fb43f2c1ebe1f7ede
+SIZE (comparator-2.13.tar.bz2) = 41704
diff --git a/textproc/comparator/files/patch-Makefile b/textproc/comparator/files/patch-Makefile
new file mode 100644
index 000000000000..9d1343fd0847
--- /dev/null
+++ b/textproc/comparator/files/patch-Makefile
@@ -0,0 +1,22 @@
+--- Makefile.orig 2026-02-10 12:32:33 UTC
++++ Makefile
+@@ -15,8 +15,8 @@ SOURCES = $(CODE) $(SCRIPTS) $(DOCS) $(EXTRAS) $(TEST)
+ EXTRAS = shredtree.py shredcompare.py
+ TEST = test
+ SOURCES = $(CODE) $(SCRIPTS) $(DOCS) $(EXTRAS) $(TEST) Makefile
+-CFLAGS = -O3
+-LDFLAGS =
++CFLAGS ?= -O3
++LDFLAGS ?=
+
+ VERSION=$(shell sed -n <NEWS.adoc '/^[0-9]/s/:.*//p' | head -1)
+
+@@ -40,7 +40,7 @@ main.o: main.c shred.h hash.h
+ all: comparator comparator.1
+
+ main.o: main.c shred.h hash.h
+- $(CC) -DVERSIONION=\"$(VERSION)\" -c $(CFLAGS) main.c
++ $(CC) -DVERSION=\"$(VERSION)\" -c $(CFLAGS) main.c
+ linebyline.o: linebyline.c
+ $(CC) -c $(CFLAGS) linebyline.c
+ hash.o: hash.c hash.h hashtab.h
diff --git a/textproc/comparator/pkg-descr b/textproc/comparator/pkg-descr
new file mode 100644
index 000000000000..3b8798671394
--- /dev/null
+++ b/textproc/comparator/pkg-descr
@@ -0,0 +1,3 @@
+comparator is a program for rapidly finding common segments in large
+source-code trees. See the manual page for instructions. It comes with
+a filtering postprecessor, filterator.
diff --git a/textproc/comparator/pkg-plist b/textproc/comparator/pkg-plist
new file mode 100644
index 000000000000..98e2e12fa9d2
--- /dev/null
+++ b/textproc/comparator/pkg-plist
@@ -0,0 +1,4 @@
+bin/comparator
+bin/filterator
+share/man/man1/compararitor.1.gz
+share/man/man1/filteraritor.1.gz