summaryrefslogtreecommitdiff
path: root/devel/cmunge
diff options
context:
space:
mode:
Diffstat (limited to 'devel/cmunge')
-rw-r--r--devel/cmunge/Makefile39
-rw-r--r--devel/cmunge/distinfo2
-rw-r--r--devel/cmunge/files/patch-src_ctran.c106
-rw-r--r--devel/cmunge/files/patch-src_proc-incl.c61
-rw-r--r--devel/cmunge/pkg-descr13
5 files changed, 0 insertions, 221 deletions
diff --git a/devel/cmunge/Makefile b/devel/cmunge/Makefile
deleted file mode 100644
index a808e1eeb0d3..000000000000
--- a/devel/cmunge/Makefile
+++ /dev/null
@@ -1,39 +0,0 @@
-PORTNAME= cmunge
-PORTVERSION= 1.0
-PORTREVISION= 2
-CATEGORIES= devel
-MASTER_SITES= ftp://ftp.vcpc.univie.ac.at/vcpc/jhm/code/ \
- http://bsd-geek.de/FreeBSD/distfiles/
-DISTNAME= ${PORTNAME}
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Tool for encrypting and compacting C source code
-WWW= http://www.vcpc.univie.ac.at/~jhm/cmunge/
-
-BROKEN= Unfetchable
-DEPRECATED= Upstream is gone
-EXPIRATION_DATE=2025-05-31
-
-WRKSRC= ${WRKDIR}/cmunger
-MAKE_ARGS= CC="${CC} ${CFLAGS}"
-
-PLIST_FILES= bin/cmunge bin/ctran bin/proc-incl
-PORTDOCS= *
-
-OPTIONS_DEFINE= DOCS
-
-post-patch:
- @${REINPLACE_CMD} -e \
- 's|/vcpc_users/jhm/bin/cmunger|${PREFIX}|; \
- s|/usr/ccs/lib/cpp|/usr/bin/cpp|' ${WRKSRC}/cmunge
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/ctran ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/proc-incl ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/cmunge ${STAGEDIR}${PREFIX}/bin
-
-do-install-DOCS-on:
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
-
-.include <bsd.port.mk>
diff --git a/devel/cmunge/distinfo b/devel/cmunge/distinfo
deleted file mode 100644
index c6322d2209b1..000000000000
--- a/devel/cmunge/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (cmunge.tar.gz) = 6de936c37a47f7dd1cef592c8d8c5f3aed96f77e9773019347247a42faf8444c
-SIZE (cmunge.tar.gz) = 27591
diff --git a/devel/cmunge/files/patch-src_ctran.c b/devel/cmunge/files/patch-src_ctran.c
deleted file mode 100644
index d8c44e0ce3da..000000000000
--- a/devel/cmunge/files/patch-src_ctran.c
+++ /dev/null
@@ -1,106 +0,0 @@
---- ./src/ctran.c.orig 1998-08-28 19:01:57.000000000 +0200
-+++ ./src/ctran.c 2011-12-15 18:06:56.000000000 +0100
-@@ -7,6 +7,9 @@
- ----------------------------------------------------------------*/
- /*{{{ global decls*/
- #include <stdio.h>
-+#include <stdlib.h>
-+#include <string.h>
-+
- #define BUFLEN 1000 /* max len of ID or keyword in i/p */
- #define PROTECT_LINE_CHAR '@' /* replaces some "#include's */
-
-@@ -762,11 +765,11 @@
- int lineno = 0, max_val = 0, val;
-
- if ( !(dict_file = fopen (dict_filename, "r")) )
-- return;
-+ return 0;
-
- if ( ! fgets (buf, BUFLEN, dict_file) ) {
- fclose (dict_file);
-- return;
-+ return 0;
- }
-
- /*{{{ 1st line may give 'next_val' (otherwise its a normal line)*/
-@@ -928,7 +931,7 @@
- }
-
- fclose (dict_file);
-- return;
-+ return 0;
- }
- /*}}}*/
- /*{{{ write_new_dict ()*/
-@@ -1110,7 +1113,7 @@
- while ((c = getc (ip_file)) != delim) {
- switch (c) {
- case EOF :
-- return;
-+ return 0;
-
- case '\\' :
- /*---------------------------------------*/
-@@ -1118,7 +1121,7 @@
- /*---------------------------------------*/
- c = getc (ip_file);
- if (c == EOF)
-- return;
-+ return 0;
- break;
- }
- }
-@@ -1208,7 +1211,7 @@
- c = getc (ip_file);
-
- if (c == EOF)
-- return;
-+ return 0;
-
- last_token_type &= ~TK_SPACE; /* unset TK_SPACE, if set */
- op_linelen = 0;
-@@ -1380,7 +1383,7 @@
- while ((c = getc (ip_file)) != delim) {
- switch (c) {
- case EOF :
-- return;
-+ return 0;
-
- case '\\' :
- /*---------------------------------------*/
-@@ -1388,7 +1391,7 @@
- /*---------------------------------------*/
- write_and_get_next_char (c);
- if (c == EOF)
-- return;
-+ return 0;
- writechar (c);
- break;
-
-@@ -1571,14 +1574,14 @@
- /*------------------------------------------------------*/
- for (sp = keytab [hashval]; sp; sp = sp->next)
- if (! strcmp (sp->word, word))
-- return; /* found! */
-+ return 0; /* found! */
-
- /*------------------------------------------------------*/
- /* Now search for it in the symbol table, 'symtab'. */
- /*------------------------------------------------------*/
- for (sp = symtab [hashval]; sp; sp = sp->next)
- if (! strcmp (sp->word, word))
-- return; /* found! */
-+ return 0; /* found! */
-
- /*------------------------------------------------------*/
- /* Not found in either table (i.e. not a keyword and */
-@@ -1609,7 +1612,7 @@
- sp->next = symtab [hashval]; /* add to front of list */
- symtab [hashval] = sp;
-
-- return;
-+ return 0;
- }
-
- /*}}}*/
diff --git a/devel/cmunge/files/patch-src_proc-incl.c b/devel/cmunge/files/patch-src_proc-incl.c
deleted file mode 100644
index 7361587d240a..000000000000
--- a/devel/cmunge/files/patch-src_proc-incl.c
+++ /dev/null
@@ -1,61 +0,0 @@
---- ./src/proc-incl.c.orig 1993-12-11 19:01:52.000000000 +0100
-+++ ./src/proc-incl.c 2011-12-15 18:06:38.000000000 +0100
-@@ -5,6 +5,8 @@
- /*----------------------------------------------------------------------*/
- /*{{{ global decls*/
- #include <stdio.h>
-+#include <stdlib.h>
-+#include <string.h>
- #include <sys/types.h> /* for 'stat ()' */
- #include <sys/stat.h> /* " " " */
-
-@@ -247,7 +249,7 @@
- int processed, val;
-
- if ( !(dict_file = fopen (incl_dict_filename, "r")) )
-- return;
-+ return 0;
-
- next_val = 0;
- while (fgets (buf, BUFLEN, dict_file) ) {
-@@ -297,7 +299,7 @@
- }
-
- fclose (dict_file);
-- return;
-+ return 0;
- }
- /*}}}*/
- /*{{{ write_new_dict () -- OK*/
-@@ -362,7 +364,7 @@
- while ((c = getchar ()) != delim) {
- switch (c) {
- case EOF :
-- return;
-+ return 0;
-
- case '\\' :
- /*---------------------------------------*/
-@@ -370,7 +372,7 @@
- /*---------------------------------------*/
- putchar (c);
- if ((c = getchar ()) == EOF)
-- return;
-+ return 0;
- putchar (c);
- break;
-
-@@ -406,11 +408,11 @@
- do {
- switch (getchar ()) {
- case EOF :
-- return;
-+ return 0;
- case '*' :
- switch (c = getchar ()) {
- case EOF :
-- return;
-+ return 0;
- case '/' :
- in_comment = FALSE;
- break;
diff --git a/devel/cmunge/pkg-descr b/devel/cmunge/pkg-descr
deleted file mode 100644
index 69b9de8adc08..000000000000
--- a/devel/cmunge/pkg-descr
+++ /dev/null
@@ -1,13 +0,0 @@
-CMUNGE is a simple tool for encrypting and compacting C source code, while
-leaving it syntactically and semantically unchanged. It does this by:
-
-* Recursively in-lining `user-defined' #include files.
-* Renaming C identifiers, except those in the C Standard Library, with names
- like l1 (i.e. letter-l one), l2, l3, etc.
-* Removing comments and blank lines, converting multiple consecutive whitespace
- characters (including `\n') into single blanks, removing all unnecessary
- whitespace between tokens.
-* Outputting the transformed code in lines of least N characters long, where N
- is a user-specified minimum line length.
-
-It accepts ANSI and K & R C as its input language.