diff options
author | Patrick Kursawe <phosphan@gentoo.org> | 2003-06-11 08:14:56 +0000 |
---|---|---|
committer | Patrick Kursawe <phosphan@gentoo.org> | 2003-06-11 08:14:56 +0000 |
commit | 7bcdd0d570b4d3fc6f8ab32580ef84fd6bf8fb53 (patch) | |
tree | b745edda326e4092b48c5da08f88389c817ba238 /dev-util/pccts | |
parent | Version bump (diff) | |
download | historical-7bcdd0d570b4d3fc6f8ab32580ef84fd6bf8fb53.tar.gz historical-7bcdd0d570b4d3fc6f8ab32580ef84fd6bf8fb53.tar.bz2 historical-7bcdd0d570b4d3fc6f8ab32580ef84fd6bf8fb53.zip |
Version bump
Diffstat (limited to 'dev-util/pccts')
-rw-r--r-- | dev-util/pccts/Manifest | 4 | ||||
-rw-r--r-- | dev-util/pccts/files/digest-pccts-1.33.33 | 1 | ||||
-rw-r--r-- | dev-util/pccts/files/pccts-1.33.33-gentoo.diff | 69 | ||||
-rw-r--r-- | dev-util/pccts/pccts-1.33.33.ebuild | 61 |
4 files changed, 133 insertions, 2 deletions
diff --git a/dev-util/pccts/Manifest b/dev-util/pccts/Manifest index 084a1e5781cc..2fee45542184 100644 --- a/dev-util/pccts/Manifest +++ b/dev-util/pccts/Manifest @@ -1,5 +1,5 @@ -MD5 c3f65e98bd0855e1923c421a62e02183 pccts-1.33.33.ebuild 1634 -MD5 410f2d5952d8be7dbee4705b2988e071 ChangeLog 1593 +MD5 a5aa2a857750f9bf99ffc8123e803251 pccts-1.33.33.ebuild 1637 +MD5 f22a3c6dcb726b1a5af45fbec7f2b5ab ChangeLog 1773 MD5 47b0f5b638f11892b451d02d85dc5da8 pccts-1.33.32-r1.ebuild 1634 MD5 2ec6fce1ca1a72638ca24ccf17df2ee7 files/digest-pccts-1.33.33 61 MD5 70dad4dcec43b98978f7c8ca37814051 files/pccts-1.33.33-gentoo.diff 2408 diff --git a/dev-util/pccts/files/digest-pccts-1.33.33 b/dev-util/pccts/files/digest-pccts-1.33.33 new file mode 100644 index 000000000000..f8f84b81c908 --- /dev/null +++ b/dev-util/pccts/files/digest-pccts-1.33.33 @@ -0,0 +1 @@ +MD5 fd70972b0a6aa2d3cf8b5c66d26d229d pccts133mr33.zip 738635 diff --git a/dev-util/pccts/files/pccts-1.33.33-gentoo.diff b/dev-util/pccts/files/pccts-1.33.33-gentoo.diff new file mode 100644 index 000000000000..5835c807104c --- /dev/null +++ b/dev-util/pccts/files/pccts-1.33.33-gentoo.diff @@ -0,0 +1,69 @@ +--- pccts/support/genmk/genmk.c Fri Aug 3 17:12:51 2001 ++++ pccts/support/genmk/genmk-gentoo.c Fri Aug 3 17:12:14 2001 +@@ -7,6 +7,11 @@ + * U of MN + */ + ++/* modified 20010803 by Peter Kadau ++ * for better fhs-compliance ++ * i.e. from "none" to "hmmm soso" ;-) ++ */ ++ + #include <stdio.h> + #include <string.h> + #include "pcctscfg.h" /* be sensitive to what ANTLR/DLG call the files */ +@@ -65,7 +70,7 @@ + static int nondef_comp = 0; /* 1=compiler is non default */ + static char *compilerCCC="CC"; + static char *compilerCC="cc"; +-static char *pccts_path="/usr/local/pccts"; ++static char *pccts_path="/usr/include/pccts"; + + #ifdef __STDC__ + void help(void); +@@ -356,7 +361,7 @@ + { "-cfiles",1,pCFiles, "Additional files in C or C++ to compile"}, + { "-sor",0,pSor, "Start of sorcerer group"}, + { "-pccts_path",1,ppccts_path, +- "Path for $PCCTS directory (default is /usr/local/pccts)"}, ++ "Path for $PCCTS directory (default is /usr/include/pccts)"}, + { "-compiler",1,pCompiler, + "Default compiler (default is CC/cc)"}, + { "*", 0,pFile, "" }, /* anything else is a file */ +@@ -495,13 +500,13 @@ + else printf("SCAN = %s%s\n", DIR(), dlg_class); + + printf("PCCTS = %s\n",pccts_path); +- printf("ANTLR_H = $(PCCTS)%sh\n", DirectorySymbol); ++ printf("ANTLR_H = $(PCCTS)\n"); + if (num_sors>0) { +- printf("SOR_H = $(PCCTS)%ssorcerer%sh\n", DirectorySymbol, DirectorySymbol); ++ printf("SOR_H = $(PCCTS)%ssorcerer\n", DirectorySymbol); + printf("SOR_LIB = $(PCCTS)%ssorcerer%slib\n", + DirectorySymbol, DirectorySymbol); + } +- printf("BIN = $(PCCTS)%sbin\n", DirectorySymbol); ++ printf("BIN = %susr%sbin\n", DirectorySymbol, DirectorySymbol); + printf("ANTLR = $(BIN)%santlr\n", DirectorySymbol); + printf("DLG = $(BIN)%sdlg\n", DirectorySymbol); + if (num_sors>0) printf("SOR = $(BIN)%ssor\n", DirectorySymbol); +--- pccts/sorcerer/lib/sorlist.c 1999-06-30 03:15:56.000000000 +0200 ++++ pccts/sorcerer/lib/sorlist.c.new 2003-05-23 11:11:09.000000000 +0200 +@@ -28,6 +28,7 @@ + */ + #include <stdio.h> + #include <setjmp.h> ++#include "pcctscfg.h" + + #ifdef PCCTS_USE_STDARG + #include <stdarg.h> +--- pccts/sorcerer/lib/sintstack.c 1999-06-30 15:08:06.000000000 +0200 ++++ pccts/sorcerer/lib/sintstack.c.new 2003-05-23 12:54:26.000000000 +0200 +@@ -28,6 +28,7 @@ + */ + #include <stdio.h> + #include <setjmp.h> ++#include "pcctscfg.h" + + #ifdef PCCTS_USE_STDARG + #include <stdarg.h> diff --git a/dev-util/pccts/pccts-1.33.33.ebuild b/dev-util/pccts/pccts-1.33.33.ebuild new file mode 100644 index 000000000000..ee7572a2331c --- /dev/null +++ b/dev-util/pccts/pccts-1.33.33.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/pccts/pccts-1.33.33.ebuild,v 1.1 2003/06/11 08:14:47 phosphan Exp $ + +S=${WORKDIR}/${PN} +DESCRIPTION="Purdue Compiler Construction Tool Set is an embedded C/C++ parser generator" +SRC_URI="http://www.polhode.com/pccts133mr33.zip" +HOMEPAGE="http://www.polhode.com/" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~x86 ~ppc ~sparc ~alpha" + +DEPEND="app-arch/unzip" + +src_unpack() { + unpack ${A} + + patch -p0 <${FILESDIR}/${PF}-gentoo.diff || die +} + +src_compile() { + emake COPT="${CFLAGS}" || die "compilation failed" +} + +src_install() { + + # main binaries + dobin bin/{antlr,dlg,genmk,sor} + + # .c and .cpp files go into /usr/include/pccts also, + # because genmk looks for them for being included in output-files + # (which are c/c++) generated from grammar-files + # right now i include _everything_ just to make sure + # it doesn't break pccts-based projects + # + # if i dive further into the details of genmk.c + # it should be possible to put that stuff into /usr/share/pccts + # + # the M$ and MAC specific stuff gets _not_ included + # + # main includes + insinto /usr/include/pccts + doins h/*.{h,c,cpp} + + # sorcerer includes + insinto /usr/include/pccts/sorcerer + doins sorcerer/h/*.{h,c,cpp} + + # sorcerer libraries + insinto /usr/include/pccts/sorcerer/lib + doins sorcerer/lib/*.{h,c,cpp} + + # documentation + # leaving out the M$ and MAC stuff + dodoc CHANGES* KNOWN_PROBLEMS* README RIGHTS history.txt history.ps + dodoc sorcerer/README sorcerer/UPDATES + + # manual pages + doman dlg/dlg.1 antlr/antlr.1 +} |