pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/cproto Add cproto-4.7f. TODO: integrate into pk...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8cc70801fd68
branches:  trunk
changeset: 548936:8cc70801fd68
user:      bjs <bjs%pkgsrc.org@localhost>
date:      Sat Oct 25 06:15:38 2008 +0000

description:
Add cproto-4.7f.  TODO: integrate into pkgsrc compiler infrastructure?

Cproto is a program that generates function prototypes and variable
declarations from C source code.  It can also convert function definitions
between the old style and the ANSI C style.  This conversion overwrites the
original files, so make a backup copy of your files in case something goes
wrong.

The program isn't confused by complex function definitions as much as other
prototype generators because it uses a yacc generated parser.  By ignoring all
the input between braces, I avoided implementing the entire C language grammar.

diffstat:

 devel/cproto/DESCR            |   9 +++++++++
 devel/cproto/Makefile         |  29 +++++++++++++++++++++++++++++
 devel/cproto/Makefile.version |   4 ++++
 devel/cproto/PLIST            |   3 +++
 devel/cproto/distinfo         |   5 +++++
 5 files changed, 50 insertions(+), 0 deletions(-)

diffs (70 lines):

diff -r fbda9968c62e -r 8cc70801fd68 devel/cproto/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cproto/DESCR        Sat Oct 25 06:15:38 2008 +0000
@@ -0,0 +1,9 @@
+Cproto is a program that generates function prototypes and variable
+declarations from C source code.  It can also convert function definitions
+between the old style and the ANSI C style.  This conversion overwrites the
+original files, so make a backup copy of your files in case something goes
+wrong.
+
+The program isn't confused by complex function definitions as much as other
+prototype generators because it uses a yacc generated parser.  By ignoring all
+the input between braces, I avoided implementing the entire C language grammar.
diff -r fbda9968c62e -r 8cc70801fd68 devel/cproto/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cproto/Makefile     Sat Oct 25 06:15:38 2008 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/10/25 06:15:38 bjs Exp $
+#
+
+.include "Makefile.version"
+
+DISTNAME=      cproto
+PKGNAME=       cproto-${CPROTO_VERSION}
+CATEGORIES=    devel
+MASTER_SITES=  ftp://invisible-island.net/cproto/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://invisible-island.net/cproto/
+COMMENT=       Generates function prototypes from C source
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+WRKSRC=                ${WRKDIR}/${PKGNAME_NOREV}
+GNU_CONFIGURE= yes
+###
+### XXX I cannot figure out why it won't build without bash.
+###    If you can fix this, please do.
+###
+USE_TOOLS+=    bash bison flex
+CONFIG_SHELL=  ${BASH}
+
+INSTALL_MAKE_FLAGS+=   prefix=${DESTDIR:Q}${PREFIX:Q}
+INSTALL_MAKE_FLAGS+=   mandir=${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR:Q}/man1
+
+.include "../../mk/bsd.pkg.mk"
diff -r fbda9968c62e -r 8cc70801fd68 devel/cproto/Makefile.version
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cproto/Makefile.version     Sat Oct 25 06:15:38 2008 +0000
@@ -0,0 +1,4 @@
+# $NetBSD: Makefile.version,v 1.1.1.1 2008/10/25 06:15:38 bjs Exp $
+#
+
+CPROTO_VERSION=        4.7f
diff -r fbda9968c62e -r 8cc70801fd68 devel/cproto/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cproto/PLIST        Sat Oct 25 06:15:38 2008 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/10/25 06:15:38 bjs Exp $
+bin/cproto
+man/man1/cproto.1
diff -r fbda9968c62e -r 8cc70801fd68 devel/cproto/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cproto/distinfo     Sat Oct 25 06:15:38 2008 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/10/25 06:15:38 bjs Exp $
+
+SHA1 (cproto.tar.gz) = 7a7f9964770b2091074964ba2906f687519942d6
+RMD160 (cproto.tar.gz) = 95ad5c790af622d491117a4f346b13b895622047
+Size (cproto.tar.gz) = 149616 bytes



Home | Main Index | Thread Index | Old Index