diff options
author | Greg Lehey <grog@FreeBSD.org> | 2005-07-08 00:36:34 +0000 |
---|---|---|
committer | Greg Lehey <grog@FreeBSD.org> | 2005-07-08 00:36:34 +0000 |
commit | 3395dbe08861d2c359feeb41bbae1e9cb5274f2d (patch) | |
tree | b56fa352f74d0a85ee85bf1b21ecb17452aa3fe5 /devel/cscout-devel | |
parent | 7d420473f439408593284bfb23d8f3c27a45a3e2 (diff) |
Notes
Diffstat (limited to 'devel/cscout-devel')
-rw-r--r-- | devel/cscout-devel/Makefile | 62 | ||||
-rw-r--r-- | devel/cscout-devel/distinfo | 4 | ||||
-rw-r--r-- | devel/cscout-devel/pkg-descr | 29 | ||||
-rw-r--r-- | devel/cscout-devel/pkg-plist | 104 |
4 files changed, 199 insertions, 0 deletions
diff --git a/devel/cscout-devel/Makefile b/devel/cscout-devel/Makefile new file mode 100644 index 000000000000..5d8feb89c913 --- /dev/null +++ b/devel/cscout-devel/Makefile @@ -0,0 +1,62 @@ +# New ports collection makefile for: cscout +# Date created: 07. Jul 2003 +# Whom: netchild@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= cscout +PORTVERSION= 2.1 +CATEGORIES= devel +MASTER_SITES= http://www.spinellis.gr/cscout/ \ + http://www.dmst.aueb.gr/dds/cscout/ +DISTFILES= ${PORTNAME}-${PORTVERSION}-neutral${EXTRACT_SUFX} \ + ${PORTNAME}-${PORTVERSION}-freebsd-${ARCH}${EXTRACT_SUFX} + +MAINTAINER= dds@FreeBSD.org +COMMENT= Source code analyzer and refactoring browser for collections of C programs + +WRKSRC= ${WRKDIR}/${PORTNAME} +NO_BUILD= yes +USE_REINPLACE= yes + +MAN1= cscout.1 cswc.1 + +post-patch: +.if exists(/usr/include/g++/) + ${REINPLACE_CMD} -i "" -e 's:g++-3:g++:g' \ + ${WRKSRC}/etc/cscout_incs.FBSD_GCC +.endif + (${SED} -n '1,/Platform defines begin/p' \ + ${WRKSRC}/etc/cscout_defs.FBSD_GCC && \ + ${CPP} -O -dM /dev/null | ${SORT} && \ + ${SED} -n '/Platform defines end/,$$p' \ + ${WRKSRC}/etc/cscout_defs.FBSD_GCC ) \ + > ${WRKDIR}/cscout_defs.h + ${CP} ${WRKDIR}/cscout_defs.h ${WRKSRC}/etc/cscout_defs.FBSD_GCC + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/cscout ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/bin/cswc ${PREFIX}/bin + cd ${WRKSRC}/etc && ${FIND} . -print | \ + ${CPIO} -pdu -R ${BINOWN}:${BINGRP} --quiet ${PREFIX}/etc/${PORTNAME} +# don't overwrite an existing config +.if !exists(${PREFIX}/etc/${PORTNAME}/cscout_incs.h) + ${INSTALL_DATA} ${WRKSRC}/etc/cscout_incs.FBSD_GCC ${PREFIX}/etc/${PORTNAME}/cscout_incs.h +.endif +.if !exists(${PREFIX}/etc/${PORTNAME}/cscout_defs.h) + ${INSTALL_DATA} ${WRKDIR}/cscout_defs.h ${PREFIX}/etc/${PORTNAME}/cscout_defs.h +.endif +.if !defined(NOPORTDOCS) + cd ${WRKSRC}/example && ${FIND} . -print | \ + ${CPIO} -pdu -R ${BINOWN}:${BINGRP} --quiet ${EXAMPLESDIR} + cd ${WRKSRC}/doc && ${FIND} . -print | \ + ${CPIO} -pdu -R ${BINOWN}:${BINGRP} --quiet ${DOCSDIR} +.endif +.if !defined(NO_INSTALL_MANPAGES) +.for i in ${MAN1} + ${INSTALL_MAN} ${WRKSRC}/man/${i} ${PREFIX}/man/man1 +.endfor +.endif + +.include <bsd.port.mk> diff --git a/devel/cscout-devel/distinfo b/devel/cscout-devel/distinfo new file mode 100644 index 000000000000..6ea8a04de41d --- /dev/null +++ b/devel/cscout-devel/distinfo @@ -0,0 +1,4 @@ +MD5 (cscout-2.1-neutral.tar.gz) = 2417737acb6acfc9506f14d159add891 +SIZE (cscout-2.1-neutral.tar.gz) = 310397 +MD5 (cscout-2.1-freebsd-i386.tar.gz) = 6240dde2d4e32d37e90ae0ff81a3b429 +SIZE (cscout-2.1-freebsd-i386.tar.gz) = 736819 diff --git a/devel/cscout-devel/pkg-descr b/devel/cscout-devel/pkg-descr new file mode 100644 index 000000000000..faed598cf57c --- /dev/null +++ b/devel/cscout-devel/pkg-descr @@ -0,0 +1,29 @@ +CScout is a source code analyzer and refactoring browser for +collections of C programs. It can process workspaces of multiple +projects (we define a project as a collection of C source files +that are linked together) mapping the complexity introduced by the +C preprocessor back into the original C source code files. CScout +takes advantage of modern hardware advances (fast processors and +large memory capacities) to analyze C source code beyond the level +of detail and accuracy provided by current compilers and linkers. +The analysis CScout performs takes into account the identifier +scopes introduced by the C preprocessor and the C language proper +scopes and namespaces. CScout has already been applied on projects +ranging from tens of thousands of lines, like the apache web server +(using 36MB of memory, taking 6 minutes on a 500MHz Celeron processor), +to above a million lines of code, like the FreeBSD kernel (using +813MB of memory, taking 3 hours 42 minutes on a 900MHz Itanium 2 +processor). + +This free unsupported version of CScout is distributed under the terms +of the CScout Public License, which is available in the accompanying +documentation. + +Note that this is a development version, and there may be updates of +this package with the same version number. This will cause the +package install to fail the checksum check. To solve this problem, +*after confirming that the archive is correct*, perform: + + make makesum + +WWW: http://www.spinellis.gr/cscout/ diff --git a/devel/cscout-devel/pkg-plist b/devel/cscout-devel/pkg-plist new file mode 100644 index 000000000000..a36e49606c10 --- /dev/null +++ b/devel/cscout-devel/pkg-plist @@ -0,0 +1,104 @@ +bin/cscout +bin/cswc +@unexec if cmp -s %D/etc/cscout/cscout_defs.h %D/etc/cscout/cscout_defs.FBSD_GCC; then rm -f %D/etc/cscout/cscout_defs.h; fi +@unexec if cmp -s %D/etc/cscout/cscout_incs.h %D/etc/cscout/cscout_incs.FBSD_GCC; then rm -f %D/etc/cscout/cscout_incs.h; fi +etc/cscout/cscout_defs.BORLAND +etc/cscout/cscout_defs.FBSD_GCC +etc/cscout/cscout_defs.GENERIC +etc/cscout/cscout_defs.LINUX_GCC +etc/cscout/cscout_defs.WIN32_MINGW +etc/cscout/cscout_defs.WIN32_MSC +etc/cscout/cscout_incs.FBSD_GCC +etc/cscout/cscout_incs.GENERIC +etc/cscout/cscout_incs.LINUX_GCC +etc/cscout/cscout_incs.WIN32_MINGW +etc/cscout/cscout_incs.WIN32_MSC +@unexec rmdir %D/etc/cscout || true + +%%PORTDOCS%%%%DOCSDIR%%/access.html +%%PORTDOCS%%%%DOCSDIR%%/bib.html +%%PORTDOCS%%%%DOCSDIR%%/cg.html +%%PORTDOCS%%%%DOCSDIR%%/change.html +%%PORTDOCS%%%%DOCSDIR%%/concept.html +%%PORTDOCS%%%%DOCSDIR%%/contents.html +%%PORTDOCS%%%%DOCSDIR%%/copy_file.gif +%%PORTDOCS%%%%DOCSDIR%%/cvs.html +%%PORTDOCS%%%%DOCSDIR%%/dbschema.html +%%PORTDOCS%%%%DOCSDIR%%/egglos.html +%%PORTDOCS%%%%DOCSDIR%%/error.html +%%PORTDOCS%%%%DOCSDIR%%/ext.html +%%PORTDOCS%%%%DOCSDIR%%/faq.html +%%PORTDOCS%%%%DOCSDIR%%/file.html +%%PORTDOCS%%%%DOCSDIR%%/fileq.html +%%PORTDOCS%%%%DOCSDIR%%/fun.html +%%PORTDOCS%%%%DOCSDIR%%/funq.html +%%PORTDOCS%%%%DOCSDIR%%/geglos.html +%%PORTDOCS%%%%DOCSDIR%%/id.html +%%PORTDOCS%%%%DOCSDIR%%/idq.html +%%PORTDOCS%%%%DOCSDIR%%/idxprint.html +%%PORTDOCS%%%%DOCSDIR%%/index.html +%%PORTDOCS%%%%DOCSDIR%%/indexw.html +%%PORTDOCS%%%%DOCSDIR%%/intro.html +%%PORTDOCS%%%%DOCSDIR%%/license.html +%%PORTDOCS%%%%DOCSDIR%%/maincall.gif +%%PORTDOCS%%%%DOCSDIR%%/mancscout.html +%%PORTDOCS%%%%DOCSDIR%%/mancswc.html +%%PORTDOCS%%%%DOCSDIR%%/mismash.gif +%%PORTDOCS%%%%DOCSDIR%%/name.html +%%PORTDOCS%%%%DOCSDIR%%/obf.html +%%PORTDOCS%%%%DOCSDIR%%/op.html +%%PORTDOCS%%%%DOCSDIR%%/opt.html +%%PORTDOCS%%%%DOCSDIR%%/optf.html +%%PORTDOCS%%%%DOCSDIR%%/pragma.html +%%PORTDOCS%%%%DOCSDIR%%/qeg.html +%%PORTDOCS%%%%DOCSDIR%%/re.html +%%PORTDOCS%%%%DOCSDIR%%/run.html +%%PORTDOCS%%%%DOCSDIR%%/setfile.gif +%%PORTDOCS%%%%DOCSDIR%%/setup.html +%%PORTDOCS%%%%DOCSDIR%%/short.html +%%PORTDOCS%%%%DOCSDIR%%/simul.html +%%PORTDOCS%%%%DOCSDIR%%/smlogo.gif +%%PORTDOCS%%%%DOCSDIR%%/sql.html +%%PORTDOCS%%%%DOCSDIR%%/walk.html +%%PORTDOCS%%%%DOCSDIR%%/web.html +%%PORTDOCS%%%%DOCSDIR%%/wsp.html +%%PORTDOCS%%%%DOCSDIR%%/yacc.html +%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%PORTDOCS%%%%EXAMPLESDIR%%/.cscout/cscout_defs.h +%%PORTDOCS%%%%EXAMPLESDIR%%/.cscout/cscout_incs.h +%%PORTDOCS%%%%EXAMPLESDIR%%/.cscout/options +%%PORTDOCS%%%%EXAMPLESDIR%%/README +%%PORTDOCS%%%%EXAMPLESDIR%%/awk.cs +%%PORTDOCS%%%%EXAMPLESDIR%%/awk.prj +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/FIXES +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/README +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/awk.1 +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/awk.h +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/awkgram.y +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/b.c +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/buildwin.bat +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/lex.c +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/lib.c +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/mac.code +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/main.c +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/makefile +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/makefile.win +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/maketab.c +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/missing95.c +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/parse.c +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/proctab.c +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/proto.h +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/run.c +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/tran.c +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/vcvars32.bat +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/ytab.c +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/ytab.h +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/ytabc.bak +%%PORTDOCS%%%%EXAMPLESDIR%%/awk/ytabh.bak +%%PORTDOCS%%%%EXAMPLESDIR%%/bin.prj +%%PORTDOCS%%%%EXAMPLESDIR%%/mkproj +%%PORTDOCS%%%%EXAMPLESDIR%%/sh.prj +%%PORTDOCS%%%%EXAMPLESDIR%%/FreeBSD-kernel-4.8.cs +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/.cscout +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/awk +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% |