aboutsummaryrefslogtreecommitdiff
path: root/devel/cbrowser
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2013-09-27 07:55:17 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2013-09-27 07:55:17 +0000
commit2948b0956b13edf9ce896d5494bd46be4dd2c967 (patch)
tree42ade9c23407aebdc9dd5b5c7ae6602c4a447510 /devel/cbrowser
parentbef29b33504331e1270ed12fe47db40c0dccea3c (diff)
downloadports-2948b0956b13edf9ce896d5494bd46be4dd2c967.tar.gz
ports-2948b0956b13edf9ce896d5494bd46be4dd2c967.zip
Notes
Diffstat (limited to 'devel/cbrowser')
-rw-r--r--devel/cbrowser/Makefile24
-rw-r--r--devel/cbrowser/pkg-plist11
2 files changed, 12 insertions, 23 deletions
diff --git a/devel/cbrowser/Makefile b/devel/cbrowser/Makefile
index 39178ac98ad5..6730fbca051f 100644
--- a/devel/cbrowser/Makefile
+++ b/devel/cbrowser/Makefile
@@ -12,23 +12,23 @@ COMMENT= Graphical front end for cscope and cscope clones
RUN_DEPENDS= cscope:${PORTSDIR}/devel/cscope
-USE_TK= 84+
-USE_TK_RUN= yes
+USES+= tk:run
NO_BUILD= yes
+LIBDIR= ${PREFIX}/lib/${PORTNAME}
+PLIST_FILES= bin/cbrowser \
+ lib/cbrowser/cbrowser lib/cbrowser/tclIndex \
+ lib/cbrowser/builder.tcl lib/cbrowser/calltree.tcl \
+ lib/cbrowser/ftcllib.tcl lib/cbrowser/hierarchy.tcl \
+ lib/cbrowser/widget.tcl
+PLIST_DIRS= lib/cbrowser
-NO_STAGE= yes
post-patch:
${REINPLACE_CMD} -i "" -e '3s|wish|${WISH}|' ${WRKSRC}/cbrowser
do-install:
- ${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
+ ${MKDIR} ${STAGEDIR}${LIBDIR}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${LIBDIR} -a ! -name README
+ ${CHMOD} ${BINMODE} ${STAGEDIR}${LIBDIR}/cbrowser
+ ${LN} -s ${LIBDIR}/cbrowser ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>
diff --git a/devel/cbrowser/pkg-plist b/devel/cbrowser/pkg-plist
deleted file mode 100644
index 081257410dce..000000000000
--- a/devel/cbrowser/pkg-plist
+++ /dev/null
@@ -1,11 +0,0 @@
-%%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 %%DATADIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%