[41731] trunk/dports/devel
blb at macports.org
blb at macports.org
Sun Nov 9 17:23:20 PST 2008
Revision: 41731
http://trac.macports.org/changeset/41731
Author: blb at macports.org
Date: 2008-11-09 17:23:19 -0800 (Sun, 09 Nov 2008)
Log Message:
-----------
New port devel/cextract
Added Paths:
-----------
trunk/dports/devel/cextract/
trunk/dports/devel/cextract/Portfile
trunk/dports/devel/cextract/files/
trunk/dports/devel/cextract/files/patch-Makefile_darwin.diff
trunk/dports/devel/cextract/files/patch-io.c.diff
trunk/dports/devel/cextract/files/patch-xtract.h.diff
Added: trunk/dports/devel/cextract/Portfile
===================================================================
--- trunk/dports/devel/cextract/Portfile (rev 0)
+++ trunk/dports/devel/cextract/Portfile 2008-11-10 01:23:19 UTC (rev 41731)
@@ -0,0 +1,52 @@
+# $Id$
+
+PortSystem 1.0
+name cextract
+version 1.7
+categories devel
+maintainers ucla.edu:jameskyle blb
+description C prototype extractor
+long_description \
+ cextract is ideal for generating header files for large multi-file C \
+ programs, and will provide an automated method for generating all of \
+ the prototypes for all of the functions in such a program. cextract \
+ also functions as a rudimentary documentation extractor, generating a \
+ sorted list of all functions and their locations.
+
+platforms darwin
+
+homepage http://www.cs.bu.edu/pub/adb/
+master_sites ${homepage}
+distname ${name}
+dist_subdir ${name}/${version}
+extract.suffix .tar.Z
+
+checksums md5 c3afd8f535fa23000d35fc1ab37d1bf3 \
+ sha1 798033c7128d811ab63767cd1e8fd10536cd74b6 \
+ rmd160 f0087686b7f648fd97889e4f78767faa262af53a
+
+# No uncompress option for distfiles, so extract manually
+extract {
+ system "cd ${workpath} && uncompress -c ${distpath}/${distfiles} | tar xf -"
+}
+
+patchfiles patch-xtract.h.diff patch-io.c.diff
+
+use_configure no
+
+set sysrc SYSRC=${prefix}/etc/cext.config
+
+build.target-append ${sysrc}
+
+destroot.target-append install.man
+destroot.destdir-append BINDIR=${prefix}/bin \
+ MANDIR=${prefix}/share/man/man ${sysrc}
+
+post-activate {
+ system "${prefix}/bin/cextract -B"
+}
+
+platform darwin {
+ patchfiles-append patch-Makefile_darwin.diff
+}
+
Property changes on: trunk/dports/devel/cextract/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/devel/cextract/files/patch-Makefile_darwin.diff
===================================================================
--- trunk/dports/devel/cextract/files/patch-Makefile_darwin.diff (rev 0)
+++ trunk/dports/devel/cextract/files/patch-Makefile_darwin.diff 2008-11-10 01:23:19 UTC (rev 41731)
@@ -0,0 +1,32 @@
+--- Makefile.orig 1992-10-30 14:20:13.000000000 -0700
++++ Makefile 2008-11-09 18:09:58.000000000 -0700
+@@ -15,7 +15,7 @@
+
+ # C preprocessor, if you don't wish to use the default.
+ # [this line can usually be left commented out]
+-#CPPFLG = -DCPP=\"/lib/cpp\"
++CPPFLG = -DCPP=\"/usr/bin/cpp\"
+
+ # Flag to tell the C preprocessor to not strip out comments,
+ # if the default value is not correct.
+@@ -45,9 +45,9 @@
+ # -DNO_PERROR if your system does not have the
+ # perror(3) function.
+ #
+-#SYSFLG = -DBSD # Most BSD derivatives
++SYSFLG = -DBSD # Most BSD derivatives
+ #SYSFLG = -DSYSV # Most SysV derivatives
+-SYSFLG = -DSYSV -DBSD # Sun OS 4.1
++#SYSFLG = -DSYSV -DBSD # Sun OS 4.1
+ #SYSFLG = -DSYSV -DAIX # IBM AIX operating systems
+ #SYSFLG = -DSYSV -DSGI # Silicon Graphics machines
+ #SYSFLG = -DBSD -DULTRIX # Digital Ultrix systems
+@@ -129,7 +129,7 @@
+ @${ECHO} all targets done
+
+ # install the binary
+-install: ${CXTRACT} ${SYSRC}
++install: ${CXTRACT}
+ ${TESTDIR} ${DESTDIR}${BINDIR} || ${MKDIR} ${DESTDIR}${BINDIR}
+ ${INSTBIN} ${CXTRACT} ${DESTDIR}${BINDIR}
+ -(cd ${DESTDIR}${BINDIR}; ${RM} ${DOCTRG} ${NULL}; ${LINK} ${CXTRACT} ${DOCTRG})
Added: trunk/dports/devel/cextract/files/patch-io.c.diff
===================================================================
--- trunk/dports/devel/cextract/files/patch-io.c.diff (rev 0)
+++ trunk/dports/devel/cextract/files/patch-io.c.diff 2008-11-10 01:23:19 UTC (rev 41731)
@@ -0,0 +1,92 @@
+--- io.c.orig 2008-11-09 17:13:21.000000000 -0800
++++ io.c 2008-11-09 17:09:02.000000000 -0800
+@@ -1060,7 +1060,7 @@
+ if (minmatch_str(cmd_str, "comments", 4)) {
+ set_option(OPT_COMMENTS, setmode_value, set_val);
+ did_cmd_parse = TRUE;
+- } else if (count = minmatch_str(cmd_str, "cpp-program", 3)) {
++ } else if ((count = minmatch_str(cmd_str, "cpp-program", 3))) {
+ did_cmd_parse = TRUE;
+ if (files_parsed > 0) {
+ if (cmd_line) {
+@@ -1084,7 +1084,7 @@
+ cfg_err("warning, blank cpp-program name", cmd_line);
+ }
+ }
+- } else if (count = minmatch_str(cmd_str, "config-file", 4)) {
++ } else if ((count = minmatch_str(cmd_str, "config-file", 4))) {
+ did_cmd_parse = TRUE;
+ for (/* set by minmatch_str */; cmd_str[count] != '\0'; count++) {
+ if ((cmd_str[count] == ':') ||
+@@ -1127,7 +1127,7 @@
+ } else {
+ doc_extract = DOC_NORMAL;
+ }
+- } else if (count = minmatch_str(cmd_str, "define", 3)) {
++ } else if ((count = minmatch_str(cmd_str, "define", 3))) {
+ did_cmd_parse = TRUE;
+ for (/* set by minmatch_str */; cmd_str[count] != '\0'; count++) {
+ if ((cmd_str[count] == ':') ||
+@@ -1273,7 +1273,7 @@
+ break;
+ case 'h':
+ /* header string */
+- if (count = minmatch_str(cmd_str, "header-string", 4)) {
++ if ((count = minmatch_str(cmd_str, "header-string", 4))) {
+ did_cmd_parse = TRUE;
+ /* can only replace on the command line */
+ if ((header_string[0] != '\0') && !cmd_line) break;
+@@ -1295,7 +1295,7 @@
+ break;
+ case 'i':
+ /* include file */
+- if (count = minmatch_str(cmd_str, "include", 3)) {
++ if ((count = minmatch_str(cmd_str, "include", 3))) {
+ did_cmd_parse = TRUE;
+ for (/* set by minmatch_str */; cmd_str[count] != '\0'; count++) {
+ if ((cmd_str[count] == ':') ||
+@@ -1335,7 +1335,7 @@
+ break;
+ case 'o':
+ /* output file */
+- if (count = minmatch_str(cmd_str, "output-file", 3)) {
++ if ((count = minmatch_str(cmd_str, "output-file", 3))) {
+ did_cmd_parse = TRUE;
+ if (files_parsed > 0) {
+ if (cmd_line) {
+@@ -1546,7 +1546,7 @@
+ }
+ break;
+ case 't':
+- if (count = minmatch_str(cmd_str, "tab-width", 3)) {
++ if ((count = minmatch_str(cmd_str, "tab-width", 3))) {
+ int tab_width;
+ did_cmd_parse = TRUE;
+ for (/* set by minmatch_str */; cmd_str[count] != '\0'; count++) {
+@@ -1576,7 +1576,7 @@
+ break;
+ case 'u':
+ /* undefine macro */
+- if (count = minmatch_str(cmd_str, "undefine", 3)) {
++ if ((count = minmatch_str(cmd_str, "undefine", 3))) {
+ did_cmd_parse = TRUE;
+ for (/* set by minmatch_str */; cmd_str[count] != '\0'; count++) {
+ if ((cmd_str[count] == ':') ||
+@@ -1610,7 +1610,7 @@
+ break;
+ case 'w':
+ /* wrapping */
+- if (count = minmatch_str(cmd_str, "wrap-parameters", 4)) {
++ if ((count = minmatch_str(cmd_str, "wrap-parameters", 4))) {
+ did_cmd_parse = TRUE;
+ for (/* set by minmatch_str */; cmd_str[count] != '\0'; count++) {
+ if ((cmd_str[count] == ':') ||
+@@ -1864,7 +1864,7 @@
+ char *second_half;
+
+ /* split at function name */
+- if (second_half = strstr(f_ptr->ftype, f_ptr->name)) {
++ if ((second_half = strstr(f_ptr->ftype, f_ptr->name))) {
+ outch_cnt = strlen(second_half);
+ for (ch_out = f_ptr->ftype;
+ (ch_out != second_half) &&
Added: trunk/dports/devel/cextract/files/patch-xtract.h.diff
===================================================================
--- trunk/dports/devel/cextract/files/patch-xtract.h.diff (rev 0)
+++ trunk/dports/devel/cextract/files/patch-xtract.h.diff 2008-11-10 01:23:19 UTC (rev 41731)
@@ -0,0 +1,10 @@
+--- xtract.h.orig 1992-10-30 14:20:15.000000000 -0700
++++ xtract.h 2008-11-09 18:02:47.000000000 -0700
+@@ -13,6 +13,7 @@
+ #endif /* __STDC__ */
+ #endif /* SGI */
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <ctype.h>
+ #include <time.h>
+ #ifdef _POSIX_SOURCE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081109/8931f771/attachment-0001.html>
More information about the macports-changes
mailing list