summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2019-11-21 02:39:22 +0000
committermarkd <markd@pkgsrc.org>2019-11-21 02:39:22 +0000
commit087eddb309f70b3d8aa3db70d5888973f95cdd02 (patch)
tree3b48a425e124688b377c9871f925ec23e86e2e7f
parent2f8edd9d9f20c21d0735f1253bfa04cb160e622b (diff)
downloadpkgsrc-087eddb309f70b3d8aa3db70d5888973f95cdd02.tar.gz
cantor: fix installation of xdg files
-rw-r--r--math/cantor/Makefile27
-rw-r--r--math/cantor/PLIST10
2 files changed, 35 insertions, 2 deletions
diff --git a/math/cantor/Makefile b/math/cantor/Makefile
index 8a74b1950b0..0490d4c7bc1 100644
--- a/math/cantor/Makefile
+++ b/math/cantor/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.53 2019/11/20 22:30:05 markd Exp $
+# $NetBSD: Makefile,v 1.54 2019/11/21 02:39:22 markd Exp $
DISTNAME= cantor-${KAPPSVER}
CATEGORIES= math
@@ -26,6 +26,31 @@ SUBST_SED.py3= -e 's:python3):python-${PYVERSSUFFIX}):'
REPLACE_SH+= src/backends/sage/cantor-execsage
+SUBST_CLASSES+= xdg
+SUBST_STAGE.xdg= pre-configure
+SUBST_MESSAGE.xdg= Install via examples dir.
+SUBST_FILES.xdg= src/CMakeLists.txt
+SUBST_FILES.xdg+= src/backends/*/CMakeLists.txt
+SUBST_SED.xdg= -e 's:{KDE_INSTALL_CONFDIR}:{KDE_INSTALL_XDG_EX_DIR}:'
+
+MAKE_DIRS+= ${PKG_SYSCONFDIR}/xdg
+CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/cantor.knsrc \
+ ${PKG_SYSCONFDIR}/xdg/cantor.knsrc
+CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/cantor_kalgebra.knsrc \
+ ${PKG_SYSCONFDIR}/xdg/cantor_kalgebra.knsrc
+CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/cantor_maxima.knsrc \
+ ${PKG_SYSCONFDIR}/xdg/cantor_maxima.knsrc
+CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/cantor_octave.knsrc \
+ ${PKG_SYSCONFDIR}/xdg/cantor_octave.knsrc
+CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/cantor_python3.knsrc \
+ ${PKG_SYSCONFDIR}/xdg/cantor_python3.knsrc
+CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/cantor_qalculate.knsrc \
+ ${PKG_SYSCONFDIR}/xdg/cantor_qalculate.knsrc
+CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/cantor_sage.knsrc \
+ ${PKG_SYSCONFDIR}/xdg/cantor_sage.knsrc
+CONF_FILES+= ${PREFIX}/share/examples/kde-xdg/cantor_scilab.knsrc \
+ ${PKG_SYSCONFDIR}/xdg/cantor_scilab.knsrc
+
.include "../../devel/kpty/buildlink3.mk"
.include "../../devel/ktexteditor/buildlink3.mk"
.include "../../lang/python/application.mk"
diff --git a/math/cantor/PLIST b/math/cantor/PLIST
index 38422d6313c..4ce96468925 100644
--- a/math/cantor/PLIST
+++ b/math/cantor/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2019/11/20 22:30:06 markd Exp $
+@comment $NetBSD: PLIST,v 1.5 2019/11/21 02:39:22 markd Exp $
bin/cantor
bin/cantor_python3server
bin/cantor_scripteditor
@@ -137,6 +137,14 @@ share/doc/HTML/uk/cantor/plot2d-dlg.png
share/doc/HTML/uk/cantor/plot3d-dlg.png
share/doc/HTML/uk/cantor/screenshot.png
share/doc/HTML/uk/cantor/solve-equations-dlg.png
+share/examples/kde-xdg/cantor.knsrc
+share/examples/kde-xdg/cantor_kalgebra.knsrc
+share/examples/kde-xdg/cantor_maxima.knsrc
+share/examples/kde-xdg/cantor_octave.knsrc
+share/examples/kde-xdg/cantor_python3.knsrc
+share/examples/kde-xdg/cantor_qalculate.knsrc
+share/examples/kde-xdg/cantor_sage.knsrc
+share/examples/kde-xdg/cantor_scilab.knsrc
share/icons/hicolor/128x128/apps/cantor.png
share/icons/hicolor/16x16/apps/cantor.png
share/icons/hicolor/22x22/apps/cantor.png