aboutsummaryrefslogtreecommitdiff
path: root/math/py-dgl
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-05-10 05:04:18 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-05-10 05:04:18 +0000
commit3f46415eb3ff22ed102942a78970fc80152962fd (patch)
tree7466053f1841defe4a5b710f5c2d6a66cae52034 /math/py-dgl
parente6eed9e9dfac32f38fe14a050c10a3b650ec9db9 (diff)
downloadports-3f46415eb3ff22ed102942a78970fc80152962fd.tar.gz
ports-3f46415eb3ff22ed102942a78970fc80152962fd.zip
math/py-dgl: Add pkg-message; and cosmetic changes
Diffstat (limited to 'math/py-dgl')
-rw-r--r--math/py-dgl/Makefile6
-rw-r--r--math/py-dgl/pkg-message12
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
+}
+]