pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/knewstuff knewstuff: SUBST rather than patch



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0c952d6f8fa9
branches:  trunk
changeset: 374839:0c952d6f8fa9
user:      markd <markd%pkgsrc.org@localhost>
date:      Tue Jan 30 07:43:23 2018 +0000

description:
knewstuff: SUBST rather than patch

diffstat:

 net/knewstuff/Makefile                     |   8 +++++++-
 net/knewstuff/distinfo                     |   3 +--
 net/knewstuff/patches/patch-CMakeLists.txt |  14 --------------
 3 files changed, 8 insertions(+), 17 deletions(-)

diffs (52 lines):

diff -r 21e4477ac408 -r 0c952d6f8fa9 net/knewstuff/Makefile
--- a/net/knewstuff/Makefile    Tue Jan 30 07:29:55 2018 +0000
+++ b/net/knewstuff/Makefile    Tue Jan 30 07:43:23 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2018/01/28 20:10:37 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2018/01/30 07:43:23 markd Exp $
 
 DISTNAME=      knewstuff-${KF5VER}
 PKGREVISION=   3
@@ -12,6 +12,12 @@
 
 USE_TOOLS+=    msgmerge
 
+SUBST_CLASSES+=                xdg
+SUBST_STAGE.xdg=       post-patch
+SUBST_MESSAGE.xdg=     Install via examples dir.
+SUBST_FILES.xdg=       CMakeLists.txt
+SUBST_SED.xdg=         -e 's:{KDE_INSTALL_CONFDIR}:{KDE_INSTALL_DATAROOTDIR}/examples/kde-xdg:'
+
 MAKE_DIRS+=    ${PKG_SYSCONFDIR}/xdg
 CONF_FILES+=   ${PREFIX}/share/examples/kde-xdg/knewstuff.categories \
                ${PKG_SYSCONFDIR}/xdg/knewstuff.categories
diff -r 21e4477ac408 -r 0c952d6f8fa9 net/knewstuff/distinfo
--- a/net/knewstuff/distinfo    Tue Jan 30 07:29:55 2018 +0000
+++ b/net/knewstuff/distinfo    Tue Jan 30 07:43:23 2018 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.4 2018/01/27 03:45:38 markd Exp $
+$NetBSD: distinfo,v 1.5 2018/01/30 07:43:23 markd Exp $
 
 SHA1 (knewstuff-5.41.0.tar.xz) = c5c2c89615bf55f36b220dfd340cc945f5228d3c
 RMD160 (knewstuff-5.41.0.tar.xz) = 50d1f0f3b828c5370b27f8c67f9ca72315c8315b
 SHA512 (knewstuff-5.41.0.tar.xz) = 52001c0283c445eb0d2ea0d9f4a8f5d4dbdba518ae99d6e97fd12fcc522e422adc9d897b564a8adf45259ded9c674ab021d574ce084d9ed7f5242478ffa32ed8
 Size (knewstuff-5.41.0.tar.xz) = 912224 bytes
-SHA1 (patch-CMakeLists.txt) = 03df1e39fe357c26d37618dae384817d2aaad269
diff -r 21e4477ac408 -r 0c952d6f8fa9 net/knewstuff/patches/patch-CMakeLists.txt
--- a/net/knewstuff/patches/patch-CMakeLists.txt        Tue Jan 30 07:29:55 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-$NetBSD: patch-CMakeLists.txt,v 1.1 2018/01/27 03:45:38 markd Exp $
-
-Install via examples dir
-
---- CMakeLists.txt.orig        2018-01-27 03:35:50.182607249 +0000
-+++ CMakeLists.txt
-@@ -151,6 +151,6 @@ install(FILES
-   DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5} COMPONENT Devel
- )
- 
--install( FILES knewstuff.categories  DESTINATION ${KDE_INSTALL_CONFDIR} )
-+install( FILES knewstuff.categories  DESTINATION ${KDE_INSTALL_DATAROOTDIR}/examples/kde-xdg )
- 
- feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)



Home | Main Index | Thread Index | Old Index