pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/kdiamond kdiamond: fix install of kdiamond.knsrc



details:   https://anonhg.NetBSD.org/pkgsrc/rev/97de60668304
branches:  trunk
changeset: 405004:97de60668304
user:      markd <markd%pkgsrc.org@localhost>
date:      Thu Nov 21 03:05:49 2019 +0000

description:
kdiamond: fix install of kdiamond.knsrc

diffstat:

 games/kdiamond/Makefile |  13 ++++++++++++-
 games/kdiamond/PLIST    |   3 ++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diffs (46 lines):

diff -r 1dbd87e318eb -r 97de60668304 games/kdiamond/Makefile
--- a/games/kdiamond/Makefile   Thu Nov 21 03:00:34 2019 +0000
+++ b/games/kdiamond/Makefile   Thu Nov 21 03:05:49 2019 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.31 2019/11/18 09:41:53 markd Exp $
+# $NetBSD: Makefile,v 1.32 2019/11/21 03:05:49 markd Exp $
 
 DISTNAME=      kdiamond-${KAPPSVER}
+PKGREVISION=   1
 CATEGORIES=    games
 
 HOMEPAGE=      https://kde.org/applications/games/kdiamond/
@@ -13,6 +14,16 @@
 
 USE_TOOLS+=    msgmerge
 
+SUBST_CLASSES+=                xdg
+SUBST_STAGE.xdg=       pre-configure
+SUBST_MESSAGE.xdg=     Install via examples dir.
+SUBST_FILES.xdg=       src/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/kdiamond.knsrc \
+               ${PKG_SYSCONFDIR}/xdg/kdiamond.knsrc
+
 .include "../../devel/knotifyconfig/buildlink3.mk"
 .include "../../games/libkdegames/buildlink3.mk"
 .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
diff -r 1dbd87e318eb -r 97de60668304 games/kdiamond/PLIST
--- a/games/kdiamond/PLIST      Thu Nov 21 03:00:34 2019 +0000
+++ b/games/kdiamond/PLIST      Thu Nov 21 03:05:49 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2019/11/18 09:41:53 markd Exp $
+@comment $NetBSD: PLIST,v 1.3 2019/11/21 03:05:49 markd Exp $
 bin/kdiamond
 share/applications/org.kde.kdiamond.desktop
 share/doc/HTML/de/kdiamond/index.cache.bz2
@@ -29,6 +29,7 @@
 share/doc/HTML/uk/kdiamond/gameboard.png
 share/doc/HTML/uk/kdiamond/index.cache.bz2
 share/doc/HTML/uk/kdiamond/index.docbook
+share/examples/kde-xdg/kdiamond.knsrc
 share/icons/hicolor/128x128/apps/kdiamond.png
 share/icons/hicolor/16x16/apps/kdiamond.png
 share/icons/hicolor/22x22/apps/kdiamond.png



Home | Main Index | Thread Index | Old Index