diff options
author | jfitz <jfitz@FreeBSD.org> | 1996-10-24 15:55:29 +0800 |
---|---|---|
committer | jfitz <jfitz@FreeBSD.org> | 1996-10-24 15:55:29 +0800 |
commit | 6507a8a04da995e95b9dde6e521c2f7966a05b74 (patch) | |
tree | 989ecf71cef0e6fa9f23698e00f897b7b0bf556e /devel/p5-C-Scan | |
parent | dd8564232b907017a78e56dc6f07b8fbf7b61775 (diff) | |
download | freebsd-ports-gnome-6507a8a04da995e95b9dde6e521c2f7966a05b74.tar.gz freebsd-ports-gnome-6507a8a04da995e95b9dde6e521c2f7966a05b74.tar.zst freebsd-ports-gnome-6507a8a04da995e95b9dde6e521c2f7966a05b74.zip |
perl5 module to scan C language files for easily recognized constructs.
Diffstat (limited to 'devel/p5-C-Scan')
-rw-r--r-- | devel/p5-C-Scan/Makefile | 34 | ||||
-rw-r--r-- | devel/p5-C-Scan/distinfo | 1 | ||||
-rw-r--r-- | devel/p5-C-Scan/pkg-comment | 1 | ||||
-rw-r--r-- | devel/p5-C-Scan/pkg-descr | 82 | ||||
-rw-r--r-- | devel/p5-C-Scan/pkg-plist | 4 |
5 files changed, 122 insertions, 0 deletions
diff --git a/devel/p5-C-Scan/Makefile b/devel/p5-C-Scan/Makefile new file mode 100644 index 000000000000..2b2e14b9f513 --- /dev/null +++ b/devel/p5-C-Scan/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: p5-C-Scan +# Version required: 0.3 +# Date created: October 20th 1996 +# Whom: James FitzGibbon <jfitz@FreeBSD.org> +# +# $Id$ +# + +DISTNAME= C-Scan-0.3 +PKGNAME= p5-C-Scan-0.3 +CATEGORIES+= devel +MASTER_SITES= ftp://ftp.digital.com/pub/plan/perl/CPAN/modules/by-module/C/ \ + ftp://ftp.cdrom.com/pub/perl/CPAN/modules/by-module/C/ \ + ftp://ftp.cis.ufl.edu/pub/perl/CPAN/modules/by-module/C/ \ + ftp://ftp.leo.org/pub/comp/programming/languages/perl/CPAN/modules/by-module/C/ \ + ftp://ftp.demon.co.uk/pub/mirrors/perl/CPAN/modules/by-module/C/ \ + ftp://ftp.lab.kdd.co.jp/lang/perl/CPAN/modules/by-module/C/ + +MAINTAINER= jfitz@FreeBSD.ORG + +BUILD_DEPENDS= perl5.003:${PORTSDIR}/lang/perl5 \ + ${PREFIX}/lib/perl5/site_perl/Data/Flow.pm:${PORTSDIR}/perl5/Data-Flow + +do-configure: + @ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/perl Makefile.PL + +post-install: +.if !defined(NOMANCOMPRESS) + @ for file in C::Scan; do \ + gzip -9nf ${PREFIX}/lib/perl5/man/man3/$$file.3; \ + done +.endif + +.include <bsd.port.mk> diff --git a/devel/p5-C-Scan/distinfo b/devel/p5-C-Scan/distinfo new file mode 100644 index 000000000000..d074f83555b5 --- /dev/null +++ b/devel/p5-C-Scan/distinfo @@ -0,0 +1 @@ +MD5 (C-Scan-0.3.tar.gz) = 59a01840a75817d8c883233555c43c68 diff --git a/devel/p5-C-Scan/pkg-comment b/devel/p5-C-Scan/pkg-comment new file mode 100644 index 000000000000..39b7d8561fd3 --- /dev/null +++ b/devel/p5-C-Scan/pkg-comment @@ -0,0 +1 @@ +perl5 module to scan C language files for easily recognized constructs. diff --git a/devel/p5-C-Scan/pkg-descr b/devel/p5-C-Scan/pkg-descr new file mode 100644 index 000000000000..2a6004c00e54 --- /dev/null +++ b/devel/p5-C-Scan/pkg-descr @@ -0,0 +1,82 @@ + This description is VERY incomplete. + + This module uses Data::Flow interface, thus one uses it in + the following fashion: + + $c = new C::Scan(attr1 => $value1, attr2 => $value2); + $c->set( attr3 => $value3 ); + + $value4 = $c->get('attr4'); + + Attributes are depending on some other attributes. The + only required attribute, i.e., the attribute which should + be set, is filename, which denotes which file to parse. + + All other attributes are either optional, or would be + calculated basing on values of required and optional + attributes. + + Output attributes + + + includes Value: reference to a list of included + files. + + defines_args Value: reference to hash of macros with + arguments. The values are references to an + array of length 2, the first element is a + reference to the list of arguments, the + second one being the expansion. Newlines + are not unescaped, thus + + #define C(x,y) E\ + F + + will finish with ("C" => [ ["x", "y"], + "E\nF"]). + + defines_no_args + Value: reference to hash of macros without + arguments. Newlines are not escaped, thus + + + #define A B + + will finish with ("A" => "B"). + + fdecls Value: reference to list of declarations of + functions. + + inlines Value: reference to list of definitions of + functions. + + parsed_fdecls Value: reference to list of parsed + declarations of functions. + + A parsed declaration is a reference to a + list of (rt, nm, args, ft, mod). Here rt is + return type of a function, nm is the name, + args is the list of arguments, ft is the + full text of the declaration, and mod is the + modifier (which is always undef). + + Each entry in the list args is of the same + form (ty, nm, args, ft, mod), here ty is the + type of an argument, nm is the name (a + generated one if missing in the + declaration), args is undef, and mod is the + string of array modifiers. + + typedef_hash Value: a reference to a hash which contains + known typedefs as keys. + + typedef_texts Value: a reference to a list which contains + known expansions of typedefs. + + typedefs_maybe + Value: a reference to a list of typedefed + names. (Syncronized with typedef_texts). + + vdecls Value: a reference to a list of extern + variable declarations. + diff --git a/devel/p5-C-Scan/pkg-plist b/devel/p5-C-Scan/pkg-plist new file mode 100644 index 000000000000..07f5b9569e4c --- /dev/null +++ b/devel/p5-C-Scan/pkg-plist @@ -0,0 +1,4 @@ +lib/perl5/man/man3/C::Scan.3.gz +lib/perl5/site_perl/C/Scan.pm +lib/perl5/site_perl/i386-freebsd/auto/C/Scan/.packlist +@dirrm lib/perl5/site_perl/i386-freebsd/auto/C/Scan |