aboutsummaryrefslogtreecommitdiff
path: root/devel/cbrowser
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2008-08-20 07:49:22 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2008-08-20 07:49:22 +0000
commit87f3ddced772d9677900b39721cc807847c58621 (patch)
tree0e3f50f6dd6b3fe98c561cc811ab9665e6d36261 /devel/cbrowser
parent6c76ce08ece2ce57bafd6b2f5b7b313992e4b573 (diff)
downloadports-87f3ddced772d9677900b39721cc807847c58621.tar.gz
ports-87f3ddced772d9677900b39721cc807847c58621.zip
Notes
Diffstat (limited to 'devel/cbrowser')
-rw-r--r--devel/cbrowser/Makefile30
-rw-r--r--devel/cbrowser/files/patch-aa10
-rw-r--r--devel/cbrowser/pkg-plist19
3 files changed, 27 insertions, 32 deletions
diff --git a/devel/cbrowser/Makefile b/devel/cbrowser/Makefile
index 1ad208e34322..72bb0277c1d5 100644
--- a/devel/cbrowser/Makefile
+++ b/devel/cbrowser/Makefile
@@ -7,27 +7,31 @@
PORTNAME= cbrowser
PORTVERSION= 0.8
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel tk
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= ${PORTNAME}
+MASTER_SITES= SF
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= gahr@FreeBSD.org
COMMENT= Graphical front end for cscope and cscope clones
+RUN_DEPENDS= cscope:${PORTSDIR}/devel/cscope
+
+USE_TK= 84+
USE_TK_RUN= yes
NO_BUILD= yes
-# Private variables
-CBDEST= ${PREFIX}/share/cbrowser/
-CBFILES= README builder.tcl calltree.tcl cbrowser ftcllib.tcl \
- hierarchy.tcl tclIndex widget.tcl
+post-patch:
+ ${REINPLACE_CMD} -i "" -e '3s|wish|${WISH}|' ${WRKSRC}/cbrowser
do-install:
- ${MKDIR} ${PREFIX}/share/cbrowser/
-.for file in ${CBFILES}
- ${CP} ${WRKSRC}/${file} ${CBDEST}
-.endfor
- ${LN} -s ${CBDEST}/cbrowser ${PREFIX}/bin/cbrowser
+ ${MKDIR} ${DATADIR}
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} \*.tcl ${DATADIR})
+ ${INSTALL_DATA} ${WRKSRC}/tclIndex ${DATADIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/cbrowser ${DATADIR}
+ ${LN} -s ${DATADIR}/cbrowser ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
.include <bsd.port.mk>
diff --git a/devel/cbrowser/files/patch-aa b/devel/cbrowser/files/patch-aa
deleted file mode 100644
index 3957dc7952d3..000000000000
--- a/devel/cbrowser/files/patch-aa
+++ /dev/null
@@ -1,10 +0,0 @@
---- cbrowser-- Wed Oct 14 03:37:45 1998
-+++ cbrowser Thu Apr 20 16:55:12 2000
-@@ -1,6 +1,6 @@
- #!/bin/sh
- # restart using wish \
--exec wish -f "$0" "$@"
-+exec wish8.4 -f "$0" "$@"
-
- # $Id: cbrowser,v 0.6 1998/10/14 03:28:06 chris Exp $
-
diff --git a/devel/cbrowser/pkg-plist b/devel/cbrowser/pkg-plist
index d402b6f61cc4..081257410dce 100644
--- a/devel/cbrowser/pkg-plist
+++ b/devel/cbrowser/pkg-plist
@@ -1,10 +1,11 @@
-share/cbrowser/README
-share/cbrowser/builder.tcl
-share/cbrowser/calltree.tcl
-share/cbrowser/cbrowser
-share/cbrowser/ftcllib.tcl
-share/cbrowser/hierarchy.tcl
-share/cbrowser/tclIndex
-share/cbrowser/widget.tcl
+%%DATADIR%%/cbrowser
+%%DATADIR%%/tclIndex
+%%DATADIR%%/builder.tcl
+%%DATADIR%%/calltree.tcl
+%%DATADIR%%/ftcllib.tcl
+%%DATADIR%%/hierarchy.tcl
+%%DATADIR%%/widget.tcl
+%%PORTDOCS%%%%DOCSDIR%%/README
bin/cbrowser
-@dirrm share/cbrowser
+@dirrm %%DATADIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%