diff options
author | markd <markd@pkgsrc.org> | 2018-01-30 08:58:47 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2018-01-30 08:58:47 +0000 |
commit | 83e42433aa7717fd9013c8d9b9003293c67ac929 (patch) | |
tree | 024156d6794be2ff8905fce70dd6ea5f48e98108 /devel/kservice | |
parent | 02de6ee8c966c8f388d1a77cd273a50834d3263a (diff) | |
download | pkgsrc-83e42433aa7717fd9013c8d9b9003293c67ac929.tar.gz |
kservice: SUBST rather than patch
Diffstat (limited to 'devel/kservice')
-rw-r--r-- | devel/kservice/Makefile | 8 | ||||
-rw-r--r-- | devel/kservice/distinfo | 3 | ||||
-rw-r--r-- | devel/kservice/patches/patch-src_CMakeLists.txt | 15 |
3 files changed, 8 insertions, 18 deletions
diff --git a/devel/kservice/Makefile b/devel/kservice/Makefile index 4b811156ec3..0fc0e18a755 100644 --- a/devel/kservice/Makefile +++ b/devel/kservice/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2018/01/24 19:06:08 markd Exp $ +# $NetBSD: Makefile,v 1.11 2018/01/30 08:58:47 markd Exp $ DISTNAME= kservice-${KF5VER} PKGREVISION= 1 @@ -14,6 +14,12 @@ BUILD_DEPENDS+= kdoctools>=${KF5VER}:../../devel/kdoctools USE_TOOLS+= bison flex msgmerge +SUBST_CLASSES+= xdg +SUBST_STAGE.xdg= post-patch +SUBST_MESSAGE.xdg= Install via examples dir. +SUBST_FILES.xdg= src/CMakeLists.txt +SUBST_SED.xdg= -e 's:{KDE_INSTALL_SYSCONFDIR}/xdg/menus:{KDE_INSTALL_DATAROOTDIR}/examples/kservice:' + MAKE_DIRS+= ${PKG_SYSCONFDIR}/xdg/menus CONF_FILES+= ${PREFIX}/share/examples/kservice/applications.menu \ ${PKG_SYSCONFDIR}/xdg/menus/applications.menu diff --git a/devel/kservice/distinfo b/devel/kservice/distinfo index 137e9ecee24..7cf8fef15bf 100644 --- a/devel/kservice/distinfo +++ b/devel/kservice/distinfo @@ -1,7 +1,6 @@ -$NetBSD: distinfo,v 1.5 2018/01/17 20:00:22 markd Exp $ +$NetBSD: distinfo,v 1.6 2018/01/30 08:58:47 markd Exp $ SHA1 (kservice-5.41.0.tar.xz) = 82d7519323de1a924c05c44738a26a3fffcc91c1 RMD160 (kservice-5.41.0.tar.xz) = 65d1ce9d007ed213d5a3fc1e8df306ca3297d301 SHA512 (kservice-5.41.0.tar.xz) = 4dee46935a3fd136b84edcdd4590531370e5d9c1b6fee31992811ba5f6c601a2da4d8d3bded9ca080c6263e00be80288ec22e814003f436a2439f8238598bb60 Size (kservice-5.41.0.tar.xz) = 250040 bytes -SHA1 (patch-src_CMakeLists.txt) = 5aba4175867e285af4f24de9aea19c859f7bdf55 diff --git a/devel/kservice/patches/patch-src_CMakeLists.txt b/devel/kservice/patches/patch-src_CMakeLists.txt deleted file mode 100644 index cf30fa1d7a0..00000000000 --- a/devel/kservice/patches/patch-src_CMakeLists.txt +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-src_CMakeLists.txt,v 1.1 2016/05/26 08:29:06 markd Exp $ - -Do installs into PKG_SYSCONFDIR indirectly via examples dir - ---- src/CMakeLists.txt.orig 2016-01-02 16:49:15.000000000 +0000 -+++ src/CMakeLists.txt -@@ -137,7 +137,7 @@ install(FILES - if (WIN32) - install( FILES applications.menu DESTINATION ${KDE_INSTALL_DATAROOTDIR}/xdg/menus RENAME ${APPLICATIONS_MENU_NAME} ) - else () --install( FILES applications.menu DESTINATION ${KDE_INSTALL_SYSCONFDIR}/xdg/menus RENAME ${APPLICATIONS_MENU_NAME} ) -+install( FILES applications.menu DESTINATION ${KDE_INSTALL_DATAROOTDIR}/examples/kservice RENAME ${APPLICATIONS_MENU_NAME} ) - endif () - - install(TARGETS KF5Service EXPORT KF5ServiceTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS}) |