summaryrefslogtreecommitdiff
path: root/www/wdg-validate
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-02-17 01:58:08 +0000
committerminskim <minskim@pkgsrc.org>2004-02-17 01:58:08 +0000
commit11f4e55303c9e3ee1a82f89f5479b953cdb57872 (patch)
treefbc742ac9100260d313c3c0d247e937015cad534 /www/wdg-validate
parent424c7032b610ee80d4cb63a9f41b26155e5257d0 (diff)
downloadpkgsrc-11f4e55303c9e3ee1a82f89f5479b953cdb57872.tar.gz
Use subst.mk instead of patch+sed.
Diffstat (limited to 'www/wdg-validate')
-rw-r--r--www/wdg-validate/Makefile18
-rw-r--r--www/wdg-validate/distinfo3
-rw-r--r--www/wdg-validate/patches/patch-aa17
3 files changed, 12 insertions, 26 deletions
diff --git a/www/wdg-validate/Makefile b/www/wdg-validate/Makefile
index 1506ad0e1a7..45a36809609 100644
--- a/www/wdg-validate/Makefile
+++ b/www/wdg-validate/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2004/02/17 01:29:30 minskim Exp $
+# $NetBSD: Makefile,v 1.13 2004/02/17 01:58:08 minskim Exp $
#
DISTNAME= validate-1.2
@@ -21,18 +21,22 @@ EXTRACT_ONLY= wdg-sgml-lib-1.1.3.tar.gz
SITES_wdg-sgml-lib-1.1.3.tar.gz= http://www.htmlhelp.com/tools/validator/src/
USE_BUILDLINK3= YES
-REPLACE_PERL= validate.netbsd
+REPLACE_PERL= validate
+NO_BUILD= YES
+
+SUBST_CLASSES+= paths
+SUBST_MESSAGE.paths= "Fixing hardcoded paths."
+SUBST_STAGE.paths= post-patch
+SUBST_FILES.paths= validate
+SUBST_SED.paths= -e 's,/usr/local/share,${PREFIX}/share,g' \
+ -e 's,/usr/local/bin/lq-nsgmls,${LOCALBASE}/bin/lq-nsgmls,g'
INSTALLATION_DIRS+= bin share/doc
post-extract:
- ${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${WRKSRC}/validate.netbsd
+ ${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${WRKSRC}/validate
${CP} ${DISTDIR}/${DIST_SUBDIR}/README ${WRKSRC}/README
-do-build:
- ${SED} -e "s|@PREFIX@|${PREFIX}|g" \
- ${WRKSRC}/validate.netbsd > ${WRKSRC}/validate
-
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/wdg/sgml-lib
${INSTALL_SCRIPT} ${WRKSRC}/validate ${PREFIX}/bin
diff --git a/www/wdg-validate/distinfo b/www/wdg-validate/distinfo
index 9e6fa6ef991..94996ca6b24 100644
--- a/www/wdg-validate/distinfo
+++ b/www/wdg-validate/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2003/11/12 10:43:18 wiz Exp $
+$NetBSD: distinfo,v 1.11 2004/02/17 01:58:08 minskim Exp $
SHA1 (validate/validate-1.2) = 38be485a1e2a7024cae927910bb89cd4f944220e
Size (validate/validate-1.2) = 23258 bytes
@@ -6,4 +6,3 @@ SHA1 (validate/wdg-sgml-lib-1.1.3.tar.gz) = 46a3e05c713b5881d4472e78cda7f1e40cdc
Size (validate/wdg-sgml-lib-1.1.3.tar.gz) = 319133 bytes
SHA1 (validate/README) = 433bc1e5311fb4972a97f0c46de7b910a1e96526
Size (validate/README) = 2424 bytes
-SHA1 (patch-aa) = 4dbad73aa4b9e2cc4ea5c753a5f73b4fa6e309de
diff --git a/www/wdg-validate/patches/patch-aa b/www/wdg-validate/patches/patch-aa
deleted file mode 100644
index 52982264546..00000000000
--- a/www/wdg-validate/patches/patch-aa
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-aa,v 1.4 2003/11/11 07:48:03 wiz Exp $
-
---- validate.netbsd.orig Tue Nov 11 08:39:01 2003
-+++ validate.netbsd
-@@ -50,10 +50,10 @@ by Liam Quinn <liam\@htmlhelp.com>";
- my $usage = "Usage: validate [OPTION] [FILE...]";
-
- # SGML directory (catalog, DTDs, SGML declarations)
--my $sgmlDir = '/usr/local/share/wdg/sgml-lib';
-+my $sgmlDir = '@PREFIX@/share/wdg/sgml-lib';
-
- # Location of lq-nsgmls executable
--my $nsgmlsLocation = '/usr/local/bin/lq-nsgmls';
-+my $nsgmlsLocation = '@PREFIX@/bin/lq-nsgmls';
-
- # lq-nsgmls command line
- # The SGML declaration and HTML document's filename will be appended