Revision: 7692 http://gar.svn.sourceforge.net/gar/?rev=7692&view=rev Author: dmichelsen Date: 2009-12-21 14:15:23 +0000 (Mon, 21 Dec 2009)
Log Message: ----------- cdecl: Initial commit Added Paths: ----------- csw/mgar/pkg/cdecl/ csw/mgar/pkg/cdecl/branches/ csw/mgar/pkg/cdecl/tags/ csw/mgar/pkg/cdecl/trunk/ csw/mgar/pkg/cdecl/trunk/Makefile csw/mgar/pkg/cdecl/trunk/checksums csw/mgar/pkg/cdecl/trunk/files/ csw/mgar/pkg/cdecl/trunk/files/0001-Remove-keyword-for-Sun-Studio.patch Property changes on: csw/mgar/pkg/cdecl/trunk ___________________________________________________________________ Added: svn:ignore + cookies download work Added: svn:externals + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2 Added: csw/mgar/pkg/cdecl/trunk/Makefile =================================================================== --- csw/mgar/pkg/cdecl/trunk/Makefile (rev 0) +++ csw/mgar/pkg/cdecl/trunk/Makefile 2009-12-21 14:15:23 UTC (rev 7692) @@ -0,0 +1,44 @@ +GARNAME = cdecl +GARVERSION = 2.5 +CATEGORIES = utils + +DESCRIPTION = C declaration guide/tool +define BLURB +endef + +MASTER_SITES = http://www.cdecl.org/files/ +DISTNAME = cdecl-blocks-$(GARVERSION) +DISTFILES = $(DISTNAME).tar.gz +PATCHFILES = 0001-Remove-keyword-for-Sun-Studio.patch + +# We define upstream file regex so we can be notifed of new upstream software release +UFILES_REGEX = $(GARNAME)-blocks-(\d+(?:\.\d+)*).tar.gz + +SPKG_SOURCEURL = http://www.cdecl.org/ + +LICENSE = README + +REQUIRED_PKGS = CSWreadline +PREREQUISITE_PKGS = $(REQUIRED_PKGS) + +CONFIGURE_SCRIPTS = + +LIBS = -lreadline +EXTRA_CFLAGS = $(CPPFLAGS) $(LDFLAGS) -DUSE_READLINE +BUILD_OVERRIDE_DIRS = CFLAGS CC LIBS + +TEST_TARGET = test +INSTALL_SCRIPTS = custom + +include gar/category.mk + +install-custom: + ginstall -d $(DESTDIR)$(docdir)/$(GARNAME) + ginstall $(WORKSRC)/README $(DESTDIR)$(docdir)/$(GARNAME) + ginstall -d $(DESTDIR)$(bindir) + ginstall $(WORKSRC)/cdecl $(DESTDIR)$(bindir)/cdecl + gln -s cdecl $(DESTDIR)$(bindir)/c++decl + ginstall -d $(DESTDIR)$(mandir)/man1 + ginstall $(WORKSRC)/cdecl.1 $(DESTDIR)$(mandir)/man1 + gln -s cdecl.1 $(DESTDIR)$(mandir)/man1/c++decl.1 + @$(MAKECOOKIE) Added: csw/mgar/pkg/cdecl/trunk/checksums =================================================================== --- csw/mgar/pkg/cdecl/trunk/checksums (rev 0) +++ csw/mgar/pkg/cdecl/trunk/checksums 2009-12-21 14:15:23 UTC (rev 7692) @@ -0,0 +1,2 @@ +0aedb14385504f8e03713029e3922679 0001-Remove-keyword-for-Sun-Studio.patch +c1927e146975b1c7524cbaf07a7c10f8 cdecl-blocks-2.5.tar.gz Added: csw/mgar/pkg/cdecl/trunk/files/0001-Remove-keyword-for-Sun-Studio.patch =================================================================== --- csw/mgar/pkg/cdecl/trunk/files/0001-Remove-keyword-for-Sun-Studio.patch (rev 0) +++ csw/mgar/pkg/cdecl/trunk/files/0001-Remove-keyword-for-Sun-Studio.patch 2009-12-21 14:15:23 UTC (rev 7692) @@ -0,0 +1,78 @@ +From d8a9a04271a883179f2b565d1b8b6d49bc50593d Mon Sep 17 00:00:00 2001 +From: Dagobert Michelsen <d...@opencsw.org> +Date: Mon, 21 Dec 2009 14:46:57 +0100 +Subject: [PATCH] Remove keyword for Sun Studio + +--- + cdecl.c | 20 ++++++++++---------- + 1 files changed, 10 insertions(+), 10 deletions(-) + +diff --git a/cdecl.c b/cdecl.c +index 73ad493..8f88658 100644 +--- a/cdecl.c ++++ b/cdecl.c +@@ -76,8 +76,8 @@ char cdeclsccsid[] = "@(#)cdecl.c 2.5 1/15/96"; + # ifndef NOVARARGS + # include <varargs.h> + # endif /* ndef NOVARARGS */ +-char *malloc(); +-void free(), exit(), perror(); ++/* char *malloc(); */ ++/* void free(), exit(), perror(); */ + # ifdef BSD + # include <strings.h> + extern int errno; +@@ -245,7 +245,7 @@ struct + /* for unsupported combinations of types. */ + void mbcheck() + { +- register int i, j, restrict; ++ register int i, j, restr; + char *t1, *t2; + + /* Loop through the types */ +@@ -262,26 +262,26 @@ void mbcheck() + if (!(modbits & crosstypes[j].bit)) + continue; + /* check the type of restriction */ +- restrict = crosscheck[i][j]; +- if (restrict == ALWAYS) ++ restr = crosscheck[i][j]; ++ if (restr == ALWAYS) + continue; + t1 = crosstypes[i].name; + t2 = crosstypes[j].name; +- if (restrict == NEVER) ++ if (restr == NEVER) + { + notsupported("", t1, t2); + } +- else if (restrict == RITCHIE) ++ else if (restr == RITCHIE) + { + if (RitchieFlag) + notsupported(" (Ritchie Compiler)", t1, t2); + } +- else if (restrict == PREANSI) ++ else if (restr == PREANSI) + { + if (PreANSIFlag || RitchieFlag) + notsupported(" (Pre-ANSI Compiler)", t1, t2); + } +- else if (restrict == ANSI) ++ else if (restr == ANSI) + { + if (!RitchieFlag && !PreANSIFlag) + notsupported(" (ANSI Compiler)", t1, t2); +@@ -290,7 +290,7 @@ void mbcheck() + { + (void) fprintf (stderr, + "%s: Internal error in crosscheck[%d,%d]=%d!\n", +- progname, i, j, restrict); ++ progname, i, j, restr); + exit(1); /* NOTREACHED */ + } + } +-- +1.6.5.1 + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ devel mailing list devel@lists.opencsw.org https://lists.opencsw.org/mailman/listinfo/devel