pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/kdebase3 Use SUBST framework for the path patching...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ab9692f4dcf1
branches:  trunk
changeset: 505646:ab9692f4dcf1
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Jan 05 20:57:05 2006 +0000

description:
Use SUBST framework for the path patching as well.

diffstat:

 x11/kdebase3/Makefile |  15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diffs (36 lines):

diff -r 1aad8276025b -r ab9692f4dcf1 x11/kdebase3/Makefile
--- a/x11/kdebase3/Makefile     Thu Jan 05 20:43:20 2006 +0000
+++ b/x11/kdebase3/Makefile     Thu Jan 05 20:57:05 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.99 2005/12/29 06:22:25 jlam Exp $
+# $NetBSD: Makefile,v 1.100 2006/01/05 20:57:05 joerg Exp $
 
 DISTNAME=      kdebase-${_KDE_VERSION}
 PKGREVISION=   1
@@ -130,20 +130,19 @@
 .endif
 .endif
 
-SUBST_CLASSES+=                htdig
+SUBST_CLASSES+=                htdig paths
 SUBST_STAGE.htdig=     post-patch
 SUBST_MESSAGE.htdig=   "Fix htdig paths."
 SUBST_FILES.htdig=     khelpcenter/searchhandlers/khc_htsearch.pl
 SUBST_SED.htdig=       s:/srv/www/cgi-bin:${PREFIX}/libexec/cgi-bin:
 
+SUBST_FILES.paths=     kcontrol/kdm/main.cpp kioslave/info/kde-info2html.conf
+SUBST_SED.paths=       -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
+SUBST_SED.paths+=      -e 's,@LOCALBASE@,${LOCALBASE},g'
+SUBST_STAGE.paths=     post-patch
+
 pre-configure:
        ${LN} -s FreeBSD ${WRKSRC}/ksysguard/ksysguardd/DragonFly
-       cd ${WRKSRC};                                                   \
-       files="kcontrol/kdm/main.cpp kioslave/info/kde-info2html.conf"; \
-       for file in $${files}; do                                       \
-               ${SED} ${FILES_SUBST_SED} $${file} > $${file}.new;      \
-               ${MV} -f $${file}.new $${file};                         \
-       done
 
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/kde/templates/.source/emptydir



Home | Main Index | Thread Index | Old Index