summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2002-12-07 03:17:19 +0000
committerGeorge Shapovalov <george@gentoo.org>2002-12-07 03:17:19 +0000
commitd98916219e7dbec597cda39674e40d6b192e3e3d (patch)
tree251fe9db7ba6d6562396156100df0ced8aebbd31 /dev-util/cproto
parentlicense for app-sci/systemc (diff)
downloadgentoo-2-d98916219e7dbec597cda39674e40d6b192e3e3d.tar.gz
gentoo-2-d98916219e7dbec597cda39674e40d6b192e3e3d.tar.bz2
gentoo-2-d98916219e7dbec597cda39674e40d6b192e3e3d.zip
new package
Diffstat (limited to 'dev-util/cproto')
-rw-r--r--dev-util/cproto/ChangeLog10
-rw-r--r--dev-util/cproto/cproto-4.6.ebuild36
-rw-r--r--dev-util/cproto/files/cproto-4.6-mkstemp.patch33
-rw-r--r--dev-util/cproto/files/digest-cproto-4.61
4 files changed, 80 insertions, 0 deletions
diff --git a/dev-util/cproto/ChangeLog b/dev-util/cproto/ChangeLog
new file mode 100644
index 000000000000..b7e5b47431e2
--- /dev/null
+++ b/dev-util/cproto/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-util/cproto
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
+# $Header: /var/cvsroot/gentoo-x86/dev-util/cproto/ChangeLog,v 1.1 2002/12/07 03:17:19 george Exp $
+
+*cproto-4.6.ebuild (06 äÅË 2002)
+
+ 06 Dec 2002; George Shapovalov <george@gentoo.org> ChangeLog, cproto-4.6.ebuild, files/\{cproto-4.6-mkstemp.patch,digest-cproto-4.6\} :
+ initial release
+ generate C function prototypes from C source code
+ ebuild submitted by Cory Visi <cory@visi.name>
diff --git a/dev-util/cproto/cproto-4.6.ebuild b/dev-util/cproto/cproto-4.6.ebuild
new file mode 100644
index 000000000000..428b69a113be
--- /dev/null
+++ b/dev-util/cproto/cproto-4.6.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/cproto/cproto-4.6.ebuild,v 1.1 2002/12/07 03:17:19 george Exp $
+
+IUSE=""
+
+S="${WORKDIR}/${P}"
+DESCRIPTION="generate C function prototypes from C source code"
+SRC_URI="http://dl.sourceforge.net/sourceforge/cproto/cproto-4.6.tar.gz"
+HOMEPAGE="http://cproto.sourceforge.net/"
+
+SLOT="0"
+KEYWORDS="~x86"
+LICENSE="public-domain"
+
+DEPEND="virtual/glibc"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ patch -p1 < ${FILESDIR}/${P}-mkstemp.patch
+}
+
+src_compile() {
+ econf || die "./configure failed"
+ emake
+}
+
+src_install() {
+
+ dodir /usr/bin
+ dobin cproto
+ doman cproto.1
+ dodoc README CHANGES
+}
diff --git a/dev-util/cproto/files/cproto-4.6-mkstemp.patch b/dev-util/cproto/files/cproto-4.6-mkstemp.patch
new file mode 100644
index 000000000000..00ac4298158f
--- /dev/null
+++ b/dev-util/cproto/files/cproto-4.6-mkstemp.patch
@@ -0,0 +1,33 @@
+diff -urN cproto-4.6-orig/cproto.c cproto-4.6/cproto.c
+--- cproto-4.6-orig/cproto.c 1998-01-23 20:42:07.000000000 -0500
++++ cproto-4.6/cproto.c 2002-10-18 16:20:34.000000000 -0400
+@@ -770,7 +770,7 @@
+ while (s != temp && s[-1] != '/')
+ s--;
+ (void)strcpy(s, "XXXXXX.c");
+- mktemp(temp);
++ mkstemp(temp);
+ if (link(argv[i], temp) < 0)
+ (void)strcpy(temp, argv[i]);
+ }
+@@ -790,7 +790,7 @@
+ * the file that we're writing to.
+ */
+ sprintf(cpp_cmd, cpp,
+- mktemp(strcpy(temp, "sys$scratch:XXXXXX.i")));
++ mkstemp(strcpy(temp, "sys$scratch:XXXXXX.i")));
+ sprintf(cpp_cmd + strlen(cpp_cmd), "%s %s", cpp_opt, FileName);
+ system(cpp_cmd);
+ inf = fopen(temp, "r");
+diff -urN cproto-4.6-orig/lex_yy.c cproto-4.6/lex_yy.c
+--- cproto-4.6-orig/lex_yy.c 1996-04-13 00:29:18.000000000 -0400
++++ cproto-4.6/lex_yy.c 2002-10-18 16:20:47.000000000 -0400
+@@ -2859,7 +2859,7 @@
+ tmpdir = "/tmp";
+ }
+ sprintf(name, "%s/TfXXXXXX", tmpdir);
+- mktemp(name);
++ mkstemp(name);
+
+ if ((f = fopen(name, "w+")) == (FILE *)0)
+ {
diff --git a/dev-util/cproto/files/digest-cproto-4.6 b/dev-util/cproto/files/digest-cproto-4.6
new file mode 100644
index 000000000000..8be78525349e
--- /dev/null
+++ b/dev-util/cproto/files/digest-cproto-4.6
@@ -0,0 +1 @@
+MD5 5968d18e9508b2892471e6ef16e140e3 cproto-4.6.tar.gz 124251