pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/lq-sp Use subst.mk instead of sed/mv.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d740f0313f94
branches:  trunk
changeset: 494765:d740f0313f94
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Mon May 30 04:56:20 2005 +0000

description:
Use subst.mk instead of sed/mv.

diffstat:

 textproc/lq-sp/Makefile         |  14 +++++++-------
 textproc/lq-sp/distinfo         |   3 +--
 textproc/lq-sp/patches/patch-aa |  13 -------------
 3 files changed, 8 insertions(+), 22 deletions(-)

diffs (58 lines):

diff -r 31ecabbced9b -r d740f0313f94 textproc/lq-sp/Makefile
--- a/textproc/lq-sp/Makefile   Mon May 30 04:09:29 2005 +0000
+++ b/textproc/lq-sp/Makefile   Mon May 30 04:56:20 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2005/05/24 05:09:42 minskim Exp $
+# $NetBSD: Makefile,v 1.10 2005/05/30 04:56:20 minskim Exp $
 #
 
 DISTNAME=      lq-sp-1.3.4.12
@@ -16,13 +16,13 @@
 # doesn't build (LP64 bugs)
 NOT_FOR_PLATFORM=      *-*-alpha
 
-INSTALLATION_DIRS+=    bin
+SUBST_CLASSES+=                paths
+SUBST_MESSAGE.paths=   "Fixing hardcoded paths."
+SUBST_STAGE.paths=     pre-configure
+SUBST_FILES.paths=     Makefile
+SUBST_SED.paths=       -e 's,/usr/local,${PREFIX},g'
 
-do-configure:
-       ${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.netbsd
-       ${SED} -e 's:@PREFIX@:${PREFIX}:'       \
-           < ${WRKSRC}/Makefile.netbsd         \
-           > ${WRKSRC}/Makefile
+INSTALLATION_DIRS+=    bin
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/nsgmls/lq-nsgmls ${PREFIX}/bin
diff -r 31ecabbced9b -r d740f0313f94 textproc/lq-sp/distinfo
--- a/textproc/lq-sp/distinfo   Mon May 30 04:09:29 2005 +0000
+++ b/textproc/lq-sp/distinfo   Mon May 30 04:56:20 2005 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.7 2005/05/24 05:09:42 minskim Exp $
+$NetBSD: distinfo,v 1.8 2005/05/30 04:56:20 minskim Exp $
 
 SHA1 (lq-sp-1.3.4.12.tar.gz) = 2eeec7e6e25a3f18b150f6607347ff350b9ea7eb
 RMD160 (lq-sp-1.3.4.12.tar.gz) = 22ec669ac6be310aa75eadf3d8e4a274e27edcbd
 Size (lq-sp-1.3.4.12.tar.gz) = 568250 bytes
-SHA1 (patch-aa) = 96a1aa51f0503efbf12b9cdb9bf5a90ce6913762
 SHA1 (patch-ab) = b6e5174c65433f35c0a0ef78422b9b10b779ba57
diff -r 31ecabbced9b -r d740f0313f94 textproc/lq-sp/patches/patch-aa
--- a/textproc/lq-sp/patches/patch-aa   Mon May 30 04:09:29 2005 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-aa,v 1.1.1.1 2001/05/30 09:44:00 abs Exp $
-
---- Makefile.orig       Wed May 30 02:07:11 2001
-+++ Makefile    Wed May 30 02:08:00 2001
-@@ -1,7 +1,7 @@
- # Copyright (c) 1994, 1995 James Clark
- # See the file COPYING for copying permission.
- 
--prefix=/usr/local
-+prefix=@PREFIX@
- exec_prefix=$(prefix)
- # Where to install the binaries
- bindir=$(exec_prefix)/bin



Home | Main Index | Thread Index | Old Index