Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2023 05:05:04 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 3f46415eb3ff - main - math/py-dgl: Add pkg-message; and cosmetic changes
Message-ID:  <202305100505.34A554SH065827@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
+}
+]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305100505.34A554SH065827>