pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/cantor cantor: fix installation of xdg files



details:   https://anonhg.NetBSD.org/pkgsrc/rev/81b3b7dc4c11
branches:  trunk
changeset: 344476:81b3b7dc4c11
user:      markd <markd%pkgsrc.org@localhost>
date:      Thu Nov 21 02:39:22 2019 +0000

description:
cantor: fix installation of xdg files

diffstat:

 math/cantor/Makefile |  27 ++++++++++++++++++++++++++-
 math/cantor/PLIST    |  10 +++++++++-
 2 files changed, 35 insertions(+), 2 deletions(-)

diffs (65 lines):

diff -r 26cb5b64347c -r 81b3b7dc4c11 math/cantor/Makefile
--- a/math/cantor/Makefile      Wed Nov 20 23:34:36 2019 +0000
+++ b/math/cantor/Makefile      Thu Nov 21 02:39:22 2019 +0000
@@ -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 @@
 
 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 -r 26cb5b64347c -r 81b3b7dc4c11 math/cantor/PLIST
--- a/math/cantor/PLIST Wed Nov 20 23:34:36 2019 +0000
+++ b/math/cantor/PLIST Thu Nov 21 02:39:22 2019 +0000
@@ -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/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



Home | Main Index | Thread Index | Old Index