summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Kursawe <phosphan@gentoo.org>2003-09-30 13:32:29 +0000
committerPatrick Kursawe <phosphan@gentoo.org>2003-09-30 13:32:29 +0000
commitb15b6f183b19a34a3b18e9d36b206bbe871512ba (patch)
treec8314b47814adfaba221fd776fae3b49482d6147 /dev-util/cdecl
parentInitial import (diff)
downloadhistorical-b15b6f183b19a34a3b18e9d36b206bbe871512ba.tar.gz
historical-b15b6f183b19a34a3b18e9d36b206bbe871512ba.tar.bz2
historical-b15b6f183b19a34a3b18e9d36b206bbe871512ba.zip
Initial import
Diffstat (limited to 'dev-util/cdecl')
-rw-r--r--dev-util/cdecl/Manifest6
-rw-r--r--dev-util/cdecl/cdecl-2.5.ebuild39
-rw-r--r--dev-util/cdecl/files/cdecl-2.5.patch33
-rw-r--r--dev-util/cdecl/files/digest-cdecl-2.51
-rw-r--r--dev-util/cdecl/metadata.xml8
5 files changed, 85 insertions, 2 deletions
diff --git a/dev-util/cdecl/Manifest b/dev-util/cdecl/Manifest
index 6a68f9456f12..977dbfd547cd 100644
--- a/dev-util/cdecl/Manifest
+++ b/dev-util/cdecl/Manifest
@@ -1,3 +1,5 @@
-MD5 66f8599d86010446cc01e0482b39c222 cdecl-2.5.ebuild 591
+MD5 2a8997a540fca96fe732c1566885783b cdecl-2.5.ebuild 843
+MD5 2a0a357b0d2263d2eb9337ca396e5ae7 ChangeLog 390
+MD5 b742040acaeddc3798a21739bd59e8aa metadata.xml 224
MD5 78064d7ba6746c4ca40c6078594dd9fb files/digest-cdecl-2.5 60
-MD5 a5445ccb51bec08289c6b2d806d25659 files/cdecl-2.5.patch 791
+MD5 4cfcbfaea827c2ce9f6c5ebd297a64df files/cdecl-2.5.patch 736
diff --git a/dev-util/cdecl/cdecl-2.5.ebuild b/dev-util/cdecl/cdecl-2.5.ebuild
new file mode 100644
index 000000000000..93fa68f0e965
--- /dev/null
+++ b/dev-util/cdecl/cdecl-2.5.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/cdecl/cdecl-2.5.ebuild,v 1.1 2003/09/30 13:32:23 phosphan Exp $
+
+inherit eutils
+
+DESCRIPTION="Turn English phrases to C or C++ declarations"
+SRC_URI="ftp://ftp.netsw.org/softeng/lang/c/tools/cdecl/${P}.tar.gz"
+
+KEYWORDS="~x86"
+LICENSE="public-domain"
+SLOT="0"
+
+DEPEND=">=sys-apps/sed-4
+ readline? ( sys-libs/ncurses
+ sys-libs/readline )"
+
+IUSE="readline"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}.patch
+}
+
+
+src_compile() {
+ if use readline; then
+ CFLAGS="${CFLAGS} -DUSE_READLINE"
+ LIBS="${LIBS} -lreadline -lncurses"
+ fi
+ emake CFLAGS="${CFLAGS}" LIBS="${LIBS}" || die
+}
+
+src_install() {
+ dobin cdecl
+ dohard /usr/bin/cdecl /usr/bin/c++decl
+ dodoc README
+}
diff --git a/dev-util/cdecl/files/cdecl-2.5.patch b/dev-util/cdecl/files/cdecl-2.5.patch
new file mode 100644
index 000000000000..62a8a9ffdba9
--- /dev/null
+++ b/dev-util/cdecl/files/cdecl-2.5.patch
@@ -0,0 +1,33 @@
+--- cdecl-2.5.orig/Makefile
++++ cdecl-2.5/Makefile
+@@ -15,9 +15,9 @@
+ #
+ # add -DUSE_READLINE To compile in support for the GNU readline library.
+
+-CFLAGS= -s -O2 -DUSE_READLINE
++
+ CC= gcc
+-LIBS= -lreadline -ltermcap
++
+ ALLFILES= makefile cdgram.y cdlex.l cdecl.c cdecl.1 testset testset++
+ BINDIR= /usr/bin
+ MANDIR= /usr/man/man1
+--- cdecl-2.5.orig/cdecl.c
++++ cdecl-2.5/cdecl.c
+@@ -67,6 +67,7 @@
+ # include <stddef.h>
+ # include <string.h>
+ # include <stdarg.h>
++# include <errno.h>
+ #else
+ # ifndef NOVARARGS
+ # include <varargs.h>
+@@ -124,7 +125,6 @@
+
+ #if __STDC__
+ char *ds(char *), *cat(char *, ...), *visible(int);
+- int getopt(int,char **,char *);
+ int main(int, char **);
+ int yywrap(void);
+ int dostdin(void);
+
diff --git a/dev-util/cdecl/files/digest-cdecl-2.5 b/dev-util/cdecl/files/digest-cdecl-2.5
new file mode 100644
index 000000000000..ed1873546ded
--- /dev/null
+++ b/dev-util/cdecl/files/digest-cdecl-2.5
@@ -0,0 +1 @@
+MD5 29895dab52e85b2474a59449e07b7996 cdecl-2.5.tar.gz 21435
diff --git a/dev-util/cdecl/metadata.xml b/dev-util/cdecl/metadata.xml
new file mode 100644
index 000000000000..bce3a70882f8
--- /dev/null
+++ b/dev-util/cdecl/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>phosphan@gentoo.org</email>
+</maintainer>
+</pkgmetadata>