pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/phpmyadmin Remove extravagent use of SUBST_C...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/809b962f3928
branches:  trunk
changeset: 494208:809b962f3928
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri May 20 22:18:13 2005 +0000

description:
Remove extravagent use of SUBST_CLASSES and replace with one-liner to
create the config file at do-configure time.

diffstat:

 databases/phpmyadmin/Makefile |  14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)

diffs (36 lines):

diff -r 7d2715d96830 -r 809b962f3928 databases/phpmyadmin/Makefile
--- a/databases/phpmyadmin/Makefile     Fri May 20 22:12:28 2005 +0000
+++ b/databases/phpmyadmin/Makefile     Fri May 20 22:18:13 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2005/04/11 21:45:14 tv Exp $
+# $NetBSD: Makefile,v 1.32 2005/05/20 22:18:13 jlam Exp $
 
 DISTNAME=      phpMyAdmin-${DIST_VERSION}
 PKGNAME=       phpmyadmin-${DIST_VERSION:S/-//}
@@ -35,14 +35,7 @@
 USE_PKGINSTALL=                YES
 PKG_SYSCONFSUBDIR?=    phpmyadmin
 
-SUBST_CLASSES=         paths
-SUBST_STAGE.paths=     post-extract
-SUBST_FILES.paths=     ${WRKDIR}/phpmyadmin.conf       
-SUBST_SED.paths=       -e "s|@PMDIR@|${PMDIR}|g"
-SUBST_MESSAGE.paths=   "Fixing paths."
-
 NO_BUILD=              # defined
-NO_CONFIGURE=          # defined
 
 INSTALL_DIRS=  css lang libraries libraries/auth libraries/dbg \
                libraries/dbi libraries/export libraries/fpdf   \
@@ -51,8 +44,9 @@
                themes/darkblue_orange/css themes/darkblue_orange/img \
                themes/original themes/original/css themes/original/img
 
-pre-extract:
-       @${CP} ${FILESDIR}/phpmyadmin.conf ${WRKDIR}/phpmyadmin.conf
+do-configure:
+       @${SED} -e "s|@PMDIR@|${PMDIR}|g" ${FILESDIR}/phpmyadmin.conf   \
+               > ${WRKDIR}/phpmyadmin.conf
 
 do-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/phpmyadmin



Home | Main Index | Thread Index | Old Index