pkgsrc-WIP-changes archive

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

kwrited: SUBST rather than patch



Module Name:	pkgsrc-wip
Committed By:	Mark Davies <mark%ecs.vuw.ac.nz@localhost>
Pushed By:	markd
Date:		Sat Feb 3 15:32:33 2018 +1300
Changeset:	fa584bed1c700abdc796d0900ffc8431c6fa386c

Modified Files:
	kwrited/Makefile
	kwrited/distinfo
Removed Files:
	kwrited/patches/patch-CMakeLists.txt

Log Message:
kwrited: SUBST rather than patch

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=fa584bed1c700abdc796d0900ffc8431c6fa386c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 kwrited/Makefile                     |  6 ++++++
 kwrited/distinfo                     |  1 -
 kwrited/patches/patch-CMakeLists.txt | 15 ---------------
 3 files changed, 6 insertions(+), 16 deletions(-)

diffs:
diff --git a/kwrited/Makefile b/kwrited/Makefile
index 266692efb7..5cdc18cf5a 100644
--- a/kwrited/Makefile
+++ b/kwrited/Makefile
@@ -15,6 +15,12 @@ USE_TOOLS+=	msgmerge
 
 .include "../../mk/bsd.prefs.mk"
 
+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:{AUTOSTART_INSTALL_DIR}:{KDE_INSTALL_AUTOSTARTEXDIR}:'
+
 PLIST_VARS+=		utempter noutempter
 .if ${OPSYS} == "Linux" && exists(/usr/include/utempter.h)
 PLIST.utempter=		yes
diff --git a/kwrited/distinfo b/kwrited/distinfo
index 3cdf7178d8..21866f15aa 100644
--- a/kwrited/distinfo
+++ b/kwrited/distinfo
@@ -4,4 +4,3 @@ SHA1 (kwrited-5.11.5.tar.xz) = a9c5ea1d6b3b2c340ca489222e5269624d4d24dd
 RMD160 (kwrited-5.11.5.tar.xz) = fecc657ff850f5570472079f8f9ef8dd74e22108
 SHA512 (kwrited-5.11.5.tar.xz) = a8ef4c899aa4b38265c470cbdb0c1b47951567f2637255837febec344cb79920986dda6838c60723aa9474e5d632fb8209e6b3090c52a723b1618e134ecb6246
 Size (kwrited-5.11.5.tar.xz) = 20672 bytes
-SHA1 (patch-CMakeLists.txt) = 5b7cd708939b1f54bf5746690c4e4681c83da6bf
diff --git a/kwrited/patches/patch-CMakeLists.txt b/kwrited/patches/patch-CMakeLists.txt
deleted file mode 100644
index ed25c38318..0000000000
--- a/kwrited/patches/patch-CMakeLists.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD$
-
-Install via examples dir
-
---- CMakeLists.txt.orig	2016-05-10 10:57:41.000000000 +0000
-+++ CMakeLists.txt
-@@ -72,7 +72,7 @@ if (BUILD_AS_EXECUTABLE)
-                endif()
-            ")
- 
--    install(FILES kwrited-autostart.desktop DESTINATION ${AUTOSTART_INSTALL_DIR})
-+    install(FILES kwrited-autostart.desktop DESTINATION ${KDE_INSTALL_AUTOSTARTEXDIR})
- else ()
-     kcoreaddons_add_plugin(kded_kwrited
-         SOURCES kwrited.cpp


Home | Main Index | Thread Index | Old Index