git: 20221c14e678 - main - math/py-apted: New port: APTED algorithm for the Tree Edit Distance

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 09 Jul 2026 05:20:34 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=20221c14e678869e962bccdf2e01ae84d26ba848

commit 20221c14e678869e962bccdf2e01ae84d26ba848
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-07-09 02:14:49 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-07-09 05:20:15 +0000

    math/py-apted: New port: APTED algorithm for the Tree Edit Distance
---
 math/Makefile           |  1 +
 math/py-apted/Makefile  | 21 +++++++++++++++++++++
 math/py-apted/distinfo  |  3 +++
 math/py-apted/pkg-descr |  4 ++++
 4 files changed, 29 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 0fcbb4042b37..d67c8a9729f0 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -955,6 +955,7 @@
     SUBDIR += py-animatplot-ng
     SUBDIR += py-annoy
     SUBDIR += py-apgl
+    SUBDIR += py-apted
     SUBDIR += py-arviz
     SUBDIR += py-arviz-base
     SUBDIR += py-arviz-plots
diff --git a/math/py-apted/Makefile b/math/py-apted/Makefile
new file mode 100644
index 000000000000..b436e53647f3
--- /dev/null
+++ b/math/py-apted/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	apted
+PORTVERSION=	1.0.3
+CATEGORIES=	math python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	APTED algorithm for the Tree Edit Distance
+WWW=		https://github.com/JoaoFelipe/apted
+
+LICENSE=	MIT
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/math/py-apted/distinfo b/math/py-apted/distinfo
new file mode 100644
index 000000000000..5433bc2d9295
--- /dev/null
+++ b/math/py-apted/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1783064069
+SHA256 (apted-1.0.3.tar.gz) = befa5181e2d4457fa88e54995a82604ee048bb2fbc781ea97d8e1856b4715ce9
+SIZE (apted-1.0.3.tar.gz) = 24547
diff --git a/math/py-apted/pkg-descr b/math/py-apted/pkg-descr
new file mode 100644
index 000000000000..5ce73528e53d
--- /dev/null
+++ b/math/py-apted/pkg-descr
@@ -0,0 +1,4 @@
+APTED implements the APTED (All Path Tree Edit Distance) algorithm for
+computing the tree edit distance between ordered trees. It provides an
+efficient algorithm for measuring structural similarity between
+hierarchical data representations such as document structures.