git: a2e1c28aebd7 - main - math/py-dgl: Remove expired port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 15 Sep 2026 20:14:38 UTC
The branch main has been updated by rene:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a2e1c28aebd77696c3718a57b0f7ea690f790c21
commit a2e1c28aebd77696c3718a57b0f7ea690f790c21
Author: Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2026-09-15 20:14:30 +0000
Commit: Rene Ladan <rene@FreeBSD.org>
CommitDate: 2026-09-15 20:14:30 +0000
math/py-dgl: Remove expired port
2026-09-15 math/py-dgl: Depends on expired lang/cython0
---
MOVED | 1 +
math/Makefile | 1 -
math/py-dgl/Makefile | 79 ----------------------
math/py-dgl/distinfo | 3 -
math/py-dgl/files/patch-dgl___ffi_base.py | 11 ---
math/py-dgl/files/patch-dgl_sparse_____init____.py | 11 ---
math/py-dgl/files/patch-setup.py | 13 ----
math/py-dgl/pkg-descr | 2 -
math/py-dgl/pkg-message | 12 ----
9 files changed, 1 insertion(+), 132 deletions(-)
diff --git a/MOVED b/MOVED
index 1fc2e46019a7..e1fdae018aa6 100644
--- a/MOVED
+++ b/MOVED
@@ -5603,3 +5603,4 @@ math/py-pygslodeiv2||2026-09-15|Has expired: Depends on expired lang/cython0
devel/py-python-dtrace||2026-09-15|Has expired: Depends on expired lang/cython0
graphics/py-djvulibre||2026-09-15|Has expired: Depends on expired lang/cython0
misc/py-torch-geometric||2026-09-15|Has expired: Depends on expiring math/py-dgl
+math/py-dgl||2026-09-15|Has expired: Depends on expired lang/cython0
diff --git a/math/Makefile b/math/Makefile
index 6194601580d0..a8bc8aad53f8 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -995,7 +995,6 @@
SUBDIR += py-daqp
SUBDIR += py-dcor
SUBDIR += py-deap
- SUBDIR += py-dgl
SUBDIR += py-diffcp
SUBDIR += py-dionysus
SUBDIR += py-disjoint-set
diff --git a/math/py-dgl/Makefile b/math/py-dgl/Makefile
deleted file mode 100644
index 039e73ed2087..000000000000
--- a/math/py-dgl/Makefile
+++ /dev/null
@@ -1,79 +0,0 @@
-PORTNAME= dgl
-DISTVERSIONPREFIX= v
-DISTVERSION= 2.4.0
-CATEGORIES= math python # machine-learning
-PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-
-MAINTAINER= yuri@FreeBSD.org
-COMMENT= Deep Graph Library
-WWW= https://www.dgl.ai/
-
-LICENSE= BSD3CLAUSE
-
-DEPRECATED= Depends on expired lang/cython0
-EXPIRATION_DATE=2026-09-15
-
-BUILD_DEPENDS= ${PY_SETUPTOOLS} \
- ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
- ${BACKEND_DEPENDS}
-LIB_DEPENDS= libdgl.so:math/dgl
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}networkx>=2.1:math/py-networkx@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}psutil>=5.8.0:sysutils/py-psutil@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}requests>=2.19.0:www/py-requests@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}scipy>=1.1.0:science/py-scipy@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}tqdm>0:misc/py-tqdm@${PY_FLAVOR} \
- ${BACKEND_DEPENDS}
-
-USES= python localbase
-USE_PYTHON= autoplist cython0 distutils
-
-WRKSRC_SUBDIR= python
-
-USE_GITHUB= yes
-GH_ACCOUNT= dmlc
-
-MAKE_ENV= DGL_LIBRARY_PATH=${LOCALBASE}/lib
-
-POST_PLIST= fix-plist
-
-OPTIONS_RADIO= BACKEND
-OPTIONS_RADIO_BACKEND= PYTORCH TENSORFLOW
-OPTIONS_DEFAULT= PYTORCH
-
-PYTORCH_DESC= Use PyTorch backend
-PYTORCH_VARS= BACKEND_DEPENDS=${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR}
-PYTORCH_MAKE_ENV= DGLBACKEND=pytorch
-
-TENSORFLOW_DESC= Use TensorFlow backend
-TENSORFLOW_VARS= BACKEND_DEPENDS=${PYTHON_PKGNAMEPREFIX}tensorflow>0:science/py-tensorflow@${PY_FLAVOR}
-TENSORFLOW_MAKE_ENV= DGLBACKEND=tensorflow
-
-post-install:
- # workaround for https://github.com/dmlc/dgl/issues/5665
- @${RM} -f ${STAGEDIR}${PREFIX}/dgl/libdgl.so
- # remove empty dirs
- @${RM} -rf \
- ${STAGEDIR}${PREFIX}/dgl/tensoradapter/pytorch \
- ${STAGEDIR}${PREFIX}/dgl/tensoradapter \
- ${STAGEDIR}${PREFIX}/dgl/dgl_sparse \
- ${STAGEDIR}${PREFIX}/dgl/graphbolt \
- ${STAGEDIR}${PREFIX}/dgl
- # strip binaries
- @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/dgl/_ffi/_cy3/core${PYTHON_TAG}.so
-
-fix-plist:
- # workaround for https://github.com/dmlc/dgl/issues/5665
- @${REINPLACE_CMD} ' \
- /dgl\/libdgl\.so/d ; \
- ' ${TMPPLIST}
- # remove empty dirs
- @${REINPLACE_CMD} ' \
- /^dgl\/tensoradapter\/pytorch/d ; \
- /^dgl\/tensoradapter$$/d ; \
- /^dgl\/dgl_sparse/d ; \
- /^dgl\/graphbolt/d ; \
- /^dgl$$/d ; \
- ' ${TMPPLIST}
-
-.include <bsd.port.mk>
diff --git a/math/py-dgl/distinfo b/math/py-dgl/distinfo
deleted file mode 100644
index d038080d9230..000000000000
--- a/math/py-dgl/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1779000079
-SHA256 (dmlc-dgl-v2.4.0_GH0.tar.gz) = 6372d0c804b52940f2a4d0f9b9d83c422ec5ef933907b2805da08b409f8ed26c
-SIZE (dmlc-dgl-v2.4.0_GH0.tar.gz) = 7004674
diff --git a/math/py-dgl/files/patch-dgl___ffi_base.py b/math/py-dgl/files/patch-dgl___ffi_base.py
deleted file mode 100644
index c602b49f29dc..000000000000
--- a/math/py-dgl/files/patch-dgl___ffi_base.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- dgl/_ffi/base.py.orig 2023-05-09 03:27:48 UTC
-+++ dgl/_ffi/base.py
-@@ -137,6 +137,8 @@ def load_tensor_adapter(backend, version):
- version = version.split("+")[0]
- if sys.platform.startswith("linux"):
- basename = "libtensoradapter_%s_%s.so" % (backend, version)
-+ elif sys.platform.startswith("freebsd"):
-+ basename = "libtensoradapter_%s_%s.so" % (backend, version)
- elif sys.platform.startswith("darwin"):
- basename = "libtensoradapter_%s_%s.dylib" % (backend, version)
- elif sys.platform.startswith("win"):
diff --git a/math/py-dgl/files/patch-dgl_sparse_____init____.py b/math/py-dgl/files/patch-dgl_sparse_____init____.py
deleted file mode 100644
index e4ef984e8187..000000000000
--- a/math/py-dgl/files/patch-dgl_sparse_____init____.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- dgl/sparse/__init__.py.orig 2023-05-09 03:28:28 UTC
-+++ dgl/sparse/__init__.py
-@@ -22,6 +22,8 @@ def load_dgl_sparse():
-
- if sys.platform.startswith("linux"):
- basename = f"libdgl_sparse_pytorch_{version}.so"
-+ elif sys.platform.startswith("freebsd"):
-+ basename = f"libdgl_sparse_pytorch_{version}.so"
- elif sys.platform.startswith("darwin"):
- basename = f"libdgl_sparse_pytorch_{version}.dylib"
- elif sys.platform.startswith("win"):
diff --git a/math/py-dgl/files/patch-setup.py b/math/py-dgl/files/patch-setup.py
deleted file mode 100644
index 7db66e235046..000000000000
--- a/math/py-dgl/files/patch-setup.py
+++ /dev/null
@@ -1,13 +0,0 @@
--- Add FreeBSD support to get_lib_pattern function.
--- FreeBSD uses .so files like Linux, so we add freebsd case.
---- setup.py.orig 2024-08-29 00:00:00 UTC
-+++ setup.py
-@@ -42,6 +42,8 @@ def get_lib_pattern(lib_name):
- lib_pattern = f"lib{lib_name}_*.so"
- elif sys.platform.startswith("darwin"):
- lib_pattern = f"lib{lib_name}_*.dylib"
-+ elif sys.platform.startswith("freebsd"):
-+ lib_pattern = f"lib{lib_name}_*.so"
- elif sys.platform.startswith("win"):
- lib_pattern = f"{lib_name}_*.dll"
- else:
diff --git a/math/py-dgl/pkg-descr b/math/py-dgl/pkg-descr
deleted file mode 100644
index 459fb5664e85..000000000000
--- a/math/py-dgl/pkg-descr
+++ /dev/null
@@ -1,2 +0,0 @@
-DGL is a Python package built to ease deep learning on graphs
-on top of existing DL frameworks.
diff --git a/math/py-dgl/pkg-message b/math/py-dgl/pkg-message
deleted file mode 100644
index 9c9e447aa1f9..000000000000
--- a/math/py-dgl/pkg-message
+++ /dev/null
@@ -1,12 +0,0 @@
-[
-{ type: install
- message: <<EOM
-You installed DGL: Deep Graph Library.
-
-It expects the DGLBACKEND environment variable
-during runtime that matches the BACKEND option chosen
-during build.
-
-EOM
-}
-]