git: 3f46415eb3ff - main - math/py-dgl: Add pkg-message; and cosmetic changes

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 10 May 2023 05:05:04 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3f46415eb3ff22ed102942a78970fc80152962fd

commit 3f46415eb3ff22ed102942a78970fc80152962fd
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-05-10 05:04:18 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-05-10 05:04:18 +0000

    math/py-dgl: Add pkg-message; and cosmetic changes
---
 math/py-dgl/Makefile    |  6 +++---
 math/py-dgl/pkg-message | 12 ++++++++++++
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/math/py-dgl/Makefile b/math/py-dgl/Makefile
index 29ca98e069fe..61fda08b370f 100644
--- a/math/py-dgl/Makefile
+++ b/math/py-dgl/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	dgl
 DISTVERSION=	1.1.0
-CATEGORIES=	math python
+CATEGORIES=	math python # machine-learning
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -31,7 +31,7 @@ GH_ACCOUNT=	dmlc
 
 MAKE_ENV=	DGL_LIBRARY_PATH=${LOCALBASE}/lib
 
-POST_PLIST=	rm-tests-from-plist
+POST_PLIST=	fix-plist
 
 OPTIONS_RADIO=			BACKEND
 OPTIONS_RADIO_BACKEND=		PYTORCH TENSORFLOW MXNET
@@ -61,7 +61,7 @@ post-install:
 	# strip binaries
 	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/dgl/_ffi/_cy3/core${PYTHON_EXT_SUFFIX}.so
 
-rm-tests-from-plist:
+fix-plist:
 	# workaround for https://github.com/dmlc/dgl/issues/5665
 	@${REINPLACE_CMD} ' \
 		/dgl\/libdgl.so/d ; \
diff --git a/math/py-dgl/pkg-message b/math/py-dgl/pkg-message
new file mode 100644
index 000000000000..9c9e447aa1f9
--- /dev/null
+++ b/math/py-dgl/pkg-message
@@ -0,0 +1,12 @@
+[
+{ 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
+}
+]