summaryrefslogtreecommitdiff
path: root/misc/visual-regexp
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2006-03-09 19:19:00 +0000
committerminskim <minskim@pkgsrc.org>2006-03-09 19:19:00 +0000
commit0c308ad97283c658af5c7441fbdbe2895d0a7651 (patch)
tree4e9899fae510981df0ed2632d8db1d0b7e8430b5 /misc/visual-regexp
parentcd357c659bb8a4e06a944cd1578e644857ac31bc (diff)
downloadpkgsrc-0c308ad97283c658af5c7441fbdbe2895d0a7651.tar.gz
Add wish to USE_TOOLS and replace the hardcoded "wish8.3" with ${WISH}.
Also fix the command name in usage. Suggested by Robert Elz in PR pkg/32990. Bump PKGREVISION.
Diffstat (limited to 'misc/visual-regexp')
-rw-r--r--misc/visual-regexp/Makefile19
1 files changed, 15 insertions, 4 deletions
diff --git a/misc/visual-regexp/Makefile b/misc/visual-regexp/Makefile
index 0d2079842bf..969f7e0c26a 100644
--- a/misc/visual-regexp/Makefile
+++ b/misc/visual-regexp/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2006/03/04 21:30:13 jlam Exp $
+# $NetBSD: Makefile,v 1.10 2006/03/09 19:19:00 minskim Exp $
#
DISTNAME= visual_regexp-3.0
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= misc
MASTER_SITES= http://laurent.riesterer.free.fr/regexp/
@@ -10,9 +10,20 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://laurent.riesterer.free.fr/regexp/
COMMENT= Easily design and debug regular expressions graphically
-DEPENDS+= tk>=8.3.2:../../x11/tk
-
NO_BUILD= yes
+USE_TOOLS+= wish:run
+
+SUBST_CLASSES+= wish
+SUBST_MESSAGE.wish= "Fixing a hardcoded command."
+SUBST_STAGE.wish= pre-configure
+SUBST_FILES.wish= visual_regexp.tcl
+SUBST_SED.wish= -e 's,wish8.3,${WISH},g'
+
+SUBST_CLASSES+= command
+SUBST_MESSAGE.command= "Fixing command names."
+SUBST_STAGE.command= pre-configure
+SUBST_FILES.command= visual_regexp.tcl
+SUBST_SED.command= -e 's,tkregexp,visual_regexp,g'
INSTALLATION_DIRS= bin