summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2011-02-10 13:11:39 +0000
committerobache <obache@pkgsrc.org>2011-02-10 13:11:39 +0000
commitc42136b0ac53d4885cde3e67fabca32c243cd56c (patch)
tree713d3c0d8416b32d20676bdc8b06f6294cabce29
parentb0323d45fcea1fb2fd49f150547191f578695aeb (diff)
downloadpkgsrc-c42136b0ac53d4885cde3e67fabca32c243cd56c.tar.gz
Change default directry to match pkgsrc style, PR#42575
* Use ${PREFIX}/share instead of /usr/local/share for XDG_DATA_DIRS * Use ${PKG_SYSCONFDIR}/xdg instead of /etc/xdg for XDG_CONFIG_DIRS While here, set TEST_TARGET=check and modify test patterns to adapt above changes. Bump PKGREVISION.
-rw-r--r--x11/libxdg-basedir/Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/x11/libxdg-basedir/Makefile b/x11/libxdg-basedir/Makefile
index 13db5649b1a..7ebc99c093a 100644
--- a/x11/libxdg-basedir/Makefile
+++ b/x11/libxdg-basedir/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2010/12/02 15:33:16 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2011/02/10 13:11:39 obache Exp $
#
DISTNAME= libxdg-basedir-1.1.1
+PKGREVISION= 1
CATEGORIES= x11
MASTER_SITES= http://n.ethz.ch/student/nevillm/download/libxdg-basedir/
@@ -18,4 +19,20 @@ USE_TOOLS+= pkg-config
PKGCONFIG_OVERRIDE+= pkgconfig/libxdg-basedir.pc.in
+SUBST_CLASSES+= pkglayout
+SUBST_STAGE.pkglayout= pre-configure
+SUBST_FILES.pkglayout= src/basedir.c
+SUBST_SED.pkglayout= -e 's|DIR_SEPARATOR_STR "etc"|"${PKG_SYSCONFDIR}"|g'
+SUBST_SED.pkglayout+= -e 's|DIR_SEPARATOR_STR "usr" DIR_SEPARATOR_STR "local"|"${PREFIX}"|g'
+SUBST_SED.pkglayout+= -e '/DefaultDataDirectories1\[\]/,/DefaultRelativeCacheHome\[\]/ s|/|" DIR_SEPARATOR_STR "|g'
+SUBST_SED.pkglayout+= -e '/DefaultDataDirectories1\[\]/,/DefaultRelativeCacheHome\[\]/ s|""||g'
+
+SUBST_CLASSES+= testsdir
+SUBST_STAGE.testsdir= post-build
+SUBST_FILES.testsdir= tests/*
+SUBST_SED.testsdir= -e 's|/etc/xdg|${PKG_SYSCONFDIR}/xdg|g'
+SUBST_SED.testsdir+= -e 's|/usr/local/share|${PREFIX}/share|g'
+
+TEST_TARGET= check
+
.include "../../mk/bsd.pkg.mk"