pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/i3status Set proper VARBASE in the example co...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/603fc105c4df
branches:  trunk
changeset: 348490:603fc105c4df
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Tue Jun 14 17:57:39 2016 +0000

description:
Set proper VARBASE in the example configuration

Little change - no PKGREVISION bump.

Patch by Mateusz Poszwa.

diffstat:

 sysutils/i3status/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 2a9114492183 -r 603fc105c4df sysutils/i3status/Makefile
--- a/sysutils/i3status/Makefile        Tue Jun 14 16:51:43 2016 +0000
+++ b/sysutils/i3status/Makefile        Tue Jun 14 17:57:39 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2016/06/14 06:39:37 kamil Exp $
+# $NetBSD: Makefile,v 1.2 2016/06/14 17:57:39 kamil Exp $
 #
 
 DISTNAME=      i3status-2.10
@@ -15,10 +15,18 @@
 
 CONF_FILES=    ${PREFIX}/share/examples/${PKGBASE}/i3status.conf ${PKG_SYSCONFDIR}/i3status.conf
 
+BUILD_DEFS+=   VARBASE
+
 MAKE_ENV+=     MANDIR=${PKGMANDIR}
 MAKE_ENV+=     SYSCONFDIR=${PKG_SYSCONFDIR}
 MAKE_ENV+=     DEBUG=0
 
+SUBST_CLASSES+=                        fix-paths
+SUBST_STAGE.fix-paths=         pre-configure
+SUBST_MESSAGE.fix-paths=       Fixing absolute paths.
+SUBST_FILES.fix-paths=         i3status.conf
+SUBST_SED.fix-paths+=          -e 's,/var,${VARBASE},g'
+
 .include "../../devel/confuse/buildlink3.mk"
 .include "../../devel/yajl/buildlink3.mk"
 .include "../../audio/pulseaudio/buildlink3.mk"



Home | Main Index | Thread Index | Old Index