OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 20-Aug-2006 23:18:57
Branch: HEAD Handle: 2006082022185700
Added files:
openpkg-src/cocom cocom.patch cocom.spec
Log:
new package: cocom 0.995 (Compiler Creation Toolkit)
Summary:
Revision Changes Path
1.1 +148 -0 openpkg-src/cocom/cocom.patch
1.1 +88 -0 openpkg-src/cocom/cocom.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/cocom/cocom.patch
============================================================================
$ cvs diff -u -r0 -r1.1 cocom.patch
--- /dev/null 2006-08-20 23:16:15 +0200
+++ cocom.patch 2006-08-20 23:18:57 +0200
@@ -0,0 +1,148 @@
+Index: AMMUNITION/IEEE.h
+--- AMMUNITION/IEEE.h.orig 2002-05-18 22:46:49 +0200
++++ AMMUNITION/IEEE.h 2006-08-20 23:05:21 +0200
+@@ -558,9 +558,7 @@
+ typedef class IEEE_float IEEE_float_t;
+
+ /* This is for VC++ 5.0 */
+-#ifdef WIN32
+ #define NO_TEMPLATE
+-#endif
+
+ #ifndef NO_TEMPLATE
+
+Index: AMMUNITION/objstack.h
+--- AMMUNITION/objstack.h.orig 2002-05-18 22:46:49 +0200
++++ AMMUNITION/objstack.h 2006-08-20 23:04:32 +0200
+@@ -89,8 +89,7 @@
+ /* It is necessarry for VMS C compiler. */
+ #define _OS_ALIGNMENT 4
+ #else
+-#define _OS_ALIGNMENT\
+- ((char *) &((struct _os_auxiliary_struct *) 0)->_os_double - (char *) 0)
++#define _OS_ALIGNMENT sizeof(long long)
+ #endif
+
+ /* This macro is auxiliary. Its value is aligned address nearest to `a'. */
+@@ -532,8 +531,8 @@
+
+ /* The following function is used only by the package functions. */
+
+-private:
+ void _OS_expand_memory (size_t additional_length);
++private:
+ };
+
+ typedef os os_t;
+Index: DINO/d_ir.sprut
+--- DINO/d_ir.sprut.orig 2002-05-18 22:46:52 +0200
++++ DINO/d_ir.sprut 2006-08-20 23:00:05 +0200
+@@ -196,7 +196,6 @@
+ extern IR_node_t temp_unique_float;
+ extern IR_node_t temp_unique_char;
+ extern IR_node_t temp_unique_string;
+-extern IR_node_t temp_ident;
+ extern IR_node_t temp_decl;
+ extern IR_node_t temp_var_occurrence;
+ extern IR_node_t destroy_unique_ident;
+Index: DINO/d_main.c
+--- DINO/d_main.c.orig 2002-05-18 22:46:52 +0200
++++ DINO/d_main.c 2006-08-20 23:07:05 +0200
+@@ -57,7 +57,7 @@
+ #include "d_aixdl.c"
+ #endif
+
+-void
++int
+ main (int argc, char *argv[], char *envp[])
+ {
+ #if defined(HAVE_DLOPEN) && !defined(NO_DINO_SHLIB)
+@@ -133,4 +133,5 @@
+ #else
+ exit (dino_main (argc, argv, envp));
+ #endif
++ return 0;
+ }
+Index: DINO/ieee_int.c
+--- DINO/ieee_int.c.orig 2002-05-18 22:46:52 +0200
++++ DINO/ieee_int.c 2006-08-20 23:06:45 +0200
+@@ -29,6 +29,7 @@
+ #include "arithm.h"
+ #include "IEEE.h"
+ #include <assert.h>
++#include <string.h>
+
+ #ifdef WIN32
+
+Index: MSTA/main.c
+--- MSTA/main.c.orig 2002-05-18 22:46:51 +0200
++++ MSTA/main.c 2006-08-20 23:06:06 +0200
+@@ -427,7 +427,7 @@
+
+ #endif /* #ifdef NDEBUG */
+
+-void
++int
+ main (int argc, char **argv)
+ {
+ int i, okay;
+@@ -726,4 +726,5 @@
+ fprintf (stderr, "overall time -- %ssec\n",
+ active_time_string (all_ticker));
+ msta_finish (FALSE);
++ return 0;
+ }
+Index: NONA/main.c
+--- NONA/main.c.orig 2002-05-18 22:46:54 +0200
++++ NONA/main.c 2006-08-20 23:08:40 +0200
+@@ -235,7 +235,7 @@
+ semantic analyzer, and generator of NONA and sets up reaction on
+ user's signals. */
+
+-void
++int
+ main (int argc, char **argv)
+ {
+ int i, okay;
+@@ -348,4 +348,5 @@
+ if (number_of_errors == 0)
+ generate ();
+ nona_finish (FALSE);
++ return 0;
+ }
+Index: OKA/main.c
+--- OKA/main.c.orig 2002-05-18 22:46:55 +0200
++++ OKA/main.c 2006-08-20 23:07:20 +0200
+@@ -255,7 +255,7 @@
+ analyzer, and generator of OKA and sets up reaction on user's
+ signals. */
+
+-void
++int
+ main (int argc, char **argv)
+ {
+ int i, okay;
+@@ -418,4 +418,5 @@
+ fprintf (stderr, "all time:%s\n", active_time_string (all_time));
+ }
+ oka_finish (FALSE);
++ return 0;
+ }
+Index: SPRUT/main.c
+--- SPRUT/main.c.orig 2002-05-18 22:46:50 +0200
++++ SPRUT/main.c 2006-08-20 23:07:58 +0200
+@@ -316,7 +316,7 @@
+ analyzer, and generator of SPRUT and sets up reaction on user's
+ signals. */
+
+-void
++int
+ main (int argc, char **argv)
+ {
+ int i, okay;
+@@ -572,4 +572,5 @@
+ if (number_of_errors == 0)
+ generate_spi ();
+ sprut_finish (FALSE);
++ return 0;
+ }
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/cocom/cocom.spec
============================================================================
$ cvs diff -u -r0 -r1.1 cocom.spec
--- /dev/null 2006-08-20 23:16:15 +0200
+++ cocom.spec 2006-08-20 23:18:57 +0200
@@ -0,0 +1,88 @@
+##
+## cocom.spec -- OpenPKG RPM Package Specification
+## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
+## Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+# package information
+Name: cocom
+Summary: Compiler Creation Toolkit
+URL: http://cocom.sourceforge.net/
+Vendor: Vladimir Makarov
+Packager: OpenPKG
+Distribution: OpenPKG
+Class: EVAL
+Group: Language
+License: GPL/LGPL
+Version: 0.995
+Release: 20060820
+
+# list of sources
+Source0: http://switch.dl.sourceforge.net/cocom/cocom-%{version}.tar.gz
+Patch0: cocom.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, bison, flex
+PreReq: OpenPKG, openpkg >= 20040130
+AutoReq: no
+AutoReqProv: no
+
+%description
+ COCOM is a set of tools oriented onto the creation of compilers,
+ cross-compilers, interpreters, and other language processors.
+
+%track
+ prog cocom = {
+ version = %{version}
+ url = http://prdownloads.sourceforge.net/cocom/
+ regex = cocom-(__VER__)\.tar\.gz
+ }
+
+%prep
+ %setup -q
+ %patch -p0
+
+%build
+ CC="%{l_cc}" \
+ CFLAGS="%{l_cflags -O}" \
+ ./configure \
+ --prefix=%{l_prefix} \
+ --includedir=%{l_prefix}/include/cocom \
+ --libdir=%{l_prefix}/lib/cocom
+ %{l_make} %{l_mflags -O}
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+ rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/dino*
+ rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/dino.1
+ rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/cocom/dino-*
+ rm -rf $RPM_BUILD_ROOT%{l_prefix}/include/cocom/dino-*
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]