pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/syntax-highlighting syntax-highlighting: SUBS...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a430c3ce7717
branches:  trunk
changeset: 374841:a430c3ce7717
user:      markd <markd%pkgsrc.org@localhost>
date:      Tue Jan 30 07:58:50 2018 +0000

description:
syntax-highlighting: SUBST rather than patch

diffstat:

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

diffs (53 lines):

diff -r 3b21db7e5901 -r a430c3ce7717 textproc/syntax-highlighting/Makefile
--- a/textproc/syntax-highlighting/Makefile     Tue Jan 30 07:52:36 2018 +0000
+++ b/textproc/syntax-highlighting/Makefile     Tue Jan 30 07:58:50 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2018/01/28 20:11:05 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2018/01/30 07:58:50 markd Exp $
 
 DISTNAME=      syntax-highlighting-${KF5VER}
 PKGREVISION=   3
@@ -12,6 +12,12 @@
 
 USE_TOOLS+=    perl
 
+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/org_kde_ksyntaxhighlighting.categories \
                ${PKG_SYSCONFDIR}/xdg/org_kde_ksyntaxhighlighting.categories
diff -r 3b21db7e5901 -r a430c3ce7717 textproc/syntax-highlighting/distinfo
--- a/textproc/syntax-highlighting/distinfo     Tue Jan 30 07:52:36 2018 +0000
+++ b/textproc/syntax-highlighting/distinfo     Tue Jan 30 07:58:50 2018 +0000
@@ -1,8 +1,7 @@
-$NetBSD: distinfo,v 1.2 2018/01/27 04:09:12 markd Exp $
+$NetBSD: distinfo,v 1.3 2018/01/30 07:58:50 markd Exp $
 
 SHA1 (syntax-highlighting-5.41.0.tar.xz) = ad61d8625a5bcc7d20dabe73509b3db53536d5f1
 RMD160 (syntax-highlighting-5.41.0.tar.xz) = 49913b2f58f39d9d61ffe7b1080e2f4622103076
 SHA512 (syntax-highlighting-5.41.0.tar.xz) = 86ed50766c9c0a3ef9e71421f5e7b9248ab1f28d0ecd424af57d643e613f488e572d001c55c58ab0ef501d6160b2db75dec0b325447132a5f49ff6dc6c52afea
 Size (syntax-highlighting-5.41.0.tar.xz) = 1108580 bytes
-SHA1 (patch-CMakeLists.txt) = 74daf57002d9a9fea008888f9510cdde293789ae
 SHA1 (patch-autotests_input_highlight.sh) = a03c2d3a389b066d914a1c1aab97977013af4626
diff -r 3b21db7e5901 -r a430c3ce7717 textproc/syntax-highlighting/patches/patch-CMakeLists.txt
--- a/textproc/syntax-highlighting/patches/patch-CMakeLists.txt Tue Jan 30 07:52:36 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 04:09:12 markd Exp $
-
-Install via examples dir
-
---- CMakeLists.txt.orig        2018-01-27 03:59:04.323745347 +0000
-+++ CMakeLists.txt
-@@ -109,6 +109,6 @@ endif()
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ksyntaxhighlighting_version.h"
-         DESTINATION "${KDE_INSTALL_INCLUDEDIR_KF5}"
-         COMPONENT Devel)
--install(FILES org_kde_ksyntaxhighlighting.categories DESTINATION ${KDE_INSTALL_CONFDIR})
-+install(FILES org_kde_ksyntaxhighlighting.categories DESTINATION ${KDE_INSTALL_DATAROOTDIR}/examples/kde-xdg)
- 
- feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)



Home | Main Index | Thread Index | Old Index