diff options
author | gahr <gahr@FreeBSD.org> | 2008-08-20 15:49:22 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2008-08-20 15:49:22 +0800 |
commit | 5fd44e8c813f776008893bbf8c4afed6bed02271 (patch) | |
tree | ff2622c570de3e0000cd6848849780c52e559487 /devel | |
parent | f5fa7c30d7d15bb6f9f6fb980d180fcee1bf2e00 (diff) | |
download | freebsd-ports-gnome-5fd44e8c813f776008893bbf8c4afed6bed02271.tar.gz freebsd-ports-gnome-5fd44e8c813f776008893bbf8c4afed6bed02271.tar.zst freebsd-ports-gnome-5fd44e8c813f776008893bbf8c4afed6bed02271.zip |
- Take maintainship
- Add RUN dependency on cscope
- Refactor Makefile
- Support Tk 85 as well
- Respect DATADIR
- Respect DOCSDIR and NOPORTDOCS
Diffstat (limited to 'devel')
-rw-r--r-- | devel/cbrowser/Makefile | 30 | ||||
-rw-r--r-- | devel/cbrowser/files/patch-aa | 10 | ||||
-rw-r--r-- | devel/cbrowser/pkg-plist | 19 |
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%% |