summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2018-02-01 10:09:38 +0000
committerjperkin <jperkin@pkgsrc.org>2018-02-01 10:09:38 +0000
commitd84defffa1d71224feb4ce278f49b029f728e349 (patch)
treeda23a8e740bf9feab2402f24e914aeff96dae59b /textproc
parent10c714e2faacaf40a7180306325732968a79f317 (diff)
downloadpkgsrc-d84defffa1d71224feb4ce278f49b029f728e349.tar.gz
kcodecs: Handle kcodecs.categories correctly.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/kcodecs/Makefile11
-rw-r--r--textproc/kcodecs/PLIST3
2 files changed, 12 insertions, 2 deletions
diff --git a/textproc/kcodecs/Makefile b/textproc/kcodecs/Makefile
index 493ea3e71dc..1f7ed959829 100644
--- a/textproc/kcodecs/Makefile
+++ b/textproc/kcodecs/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2018/01/30 07:14:18 markd Exp $
+# $NetBSD: Makefile,v 1.19 2018/02/01 10:09:38 jperkin Exp $
DISTNAME= kcodecs-${KF5VER}
PKGREVISION= 2
@@ -12,6 +12,15 @@ LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1
BUILD_DEPENDS+= gperf-[0-9]*:../../devel/gperf
+SUBST_CLASSES+= xdg
+SUBST_STAGE.xdg= pre-configure
+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/kcodecs.categories \
+ ${PKG_SYSCONFDIR}/xdg/kcodecs.categories
+
.include "../../x11/qt5-qtbase/buildlink3.mk"
BUILDLINK_DEPMETHOD.qt5-qttools= build
.include "../../x11/qt5-qttools/buildlink3.mk"
diff --git a/textproc/kcodecs/PLIST b/textproc/kcodecs/PLIST
index dd0a35b6667..f3a809560d3 100644
--- a/textproc/kcodecs/PLIST
+++ b/textproc/kcodecs/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2016/05/26 09:26:56 markd Exp $
+@comment $NetBSD: PLIST,v 1.2 2018/02/01 10:09:38 jperkin Exp $
include/KF5/KCodecs/KCharsets
include/KF5/KCodecs/KCodecs
include/KF5/KCodecs/KEmailAddress
@@ -17,6 +17,7 @@ lib/libKF5Codecs.so
lib/libKF5Codecs.so.5
lib/libKF5Codecs.so.${PKGVERSION}
qt5/mkspecs/modules/qt_KCodecs.pri
+share/examples/kde-xdg/kcodecs.categories
share/locale/af/LC_MESSAGES/kcodecs5_qt.qm
share/locale/ar/LC_MESSAGES/kcodecs5_qt.qm
share/locale/as/LC_MESSAGES/kcodecs5_qt.qm