summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-05 04:51:39 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-05 04:51:39 +0000
commit5be0d950817c00f792f08ec44524e50508224420 (patch)
treec1446bef1e4bd4cd26ff12600051c1ebdc5bfa2b /games-util
parentVersion bump #111500 by Daniel Webert. (diff)
downloadhistorical-5be0d950817c00f792f08ec44524e50508224420.tar.gz
historical-5be0d950817c00f792f08ec44524e50508224420.tar.bz2
historical-5be0d950817c00f792f08ec44524e50508224420.zip
initial import #111281 by fabien Zouaoui
Package-Manager: portage-2.0.53_rc7
Diffstat (limited to 'games-util')
-rw-r--r--games-util/fteqcc/ChangeLog8
-rw-r--r--games-util/fteqcc/Manifest15
-rw-r--r--games-util/fteqcc/files/digest-fteqcc-25011
-rw-r--r--games-util/fteqcc/files/fteqcc-2501-cleanup-source.patch93
-rw-r--r--games-util/fteqcc/fteqcc-2501.ebuild38
-rw-r--r--games-util/fteqcc/metadata.xml5
6 files changed, 160 insertions, 0 deletions
diff --git a/games-util/fteqcc/ChangeLog b/games-util/fteqcc/ChangeLog
new file mode 100644
index 000000000000..f5a09340d9ac
--- /dev/null
+++ b/games-util/fteqcc/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for games-util/fteqcc
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-util/fteqcc/ChangeLog,v 1.1 2005/11/05 04:51:39 vapier Exp $
+
+*fteqcc-2501 (04 Nov 2005)
+
+ 04 Nov 2005; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by fabien Zouaoui #111281.
diff --git a/games-util/fteqcc/Manifest b/games-util/fteqcc/Manifest
new file mode 100644
index 000000000000..6a4b05aa3351
--- /dev/null
+++ b/games-util/fteqcc/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 d1d9e1453e5962cdcb3e7307a8f018ed ChangeLog 350
+MD5 64a5fec2359f46fcbd57d6cfb6f615af files/digest-fteqcc-2501 61
+MD5 860639741089f97beb1dc101ecd74256 files/fteqcc-2501-cleanup-source.patch 2655
+MD5 436c378c73cc02ce6e851fcb4f4e52fe fteqcc-2501.ebuild 812
+MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.2 (GNU/Linux)
+
+iD8DBQFDbDqagIKl8Uu19MoRAqYuAJ0QXs8Guo20NoJnJHn0pEWjbH0PmACfUR7Z
+XyUv2AEb6dZdUqZyih9r1SQ=
+=cNek
+-----END PGP SIGNATURE-----
diff --git a/games-util/fteqcc/files/digest-fteqcc-2501 b/games-util/fteqcc/files/digest-fteqcc-2501
new file mode 100644
index 000000000000..0e442cda0929
--- /dev/null
+++ b/games-util/fteqcc/files/digest-fteqcc-2501
@@ -0,0 +1 @@
+MD5 3b4117dcc159680928d6a66560946644 qclibsrc2501.zip 204047
diff --git a/games-util/fteqcc/files/fteqcc-2501-cleanup-source.patch b/games-util/fteqcc/files/fteqcc-2501-cleanup-source.patch
new file mode 100644
index 000000000000..35f3dcf100ae
--- /dev/null
+++ b/games-util/fteqcc/files/fteqcc-2501-cleanup-source.patch
@@ -0,0 +1,93 @@
+--- qcc_pr_comp.c
++++ qcc_pr_comp.c
+@@ -7322,7 +7322,7 @@
+ QCC_def_t *def, *d;
+ QCC_function_t *f;
+ QCC_dfunction_t *df;
+- int i;
++ int i = 0;
+ pbool shared=false;
+ pbool externfnc=false;
+ pbool isconstant = false;
+@@ -8541,8 +8545,6 @@
+ struct qcc_includechunk_s *oldcurrentchunk;
+ extern struct qcc_includechunk_s *currentchunk;
+
+- extern char qccmsourcedir[];
+-
+ ocompilingfile = compilingfile;
+ os_file = s_file;
+ os_file2 = s_file2;
+--- hash.h
++++ hash.h
+@@ -19,12 +19,12 @@
+ int Hash_Key(char *name, int modulus);
+ void *Hash_Get(hashtable_t *table, char *name);
+ void *Hash_GetInsensative(hashtable_t *table, char *name);
+-void *Hash_GetKey(hashtable_t *table, int key);
++void *Hash_GetKey(hashtable_t *table, long key);
+ void *Hash_GetNext(hashtable_t *table, char *name, void *old);
+ void *Hash_GetNextInsensative(hashtable_t *table, char *name, void *old);
+ void *Hash_Add(hashtable_t *table, char *name, void *data, bucket_t *buck);
+ void *Hash_AddInsensative(hashtable_t *table, char *name, void *data, bucket_t *buck);
+ void Hash_Remove(hashtable_t *table, char *name);
+ void Hash_RemoveData(hashtable_t *table, char *name, void *data);
+-void Hash_RemoveKey(hashtable_t *table, int key);
+-void *Hash_AddKey(hashtable_t *table, int key, void *data, bucket_t *buck);
++void Hash_RemoveKey(hashtable_t *table, long key);
++void *Hash_AddKey(hashtable_t *table, long key, void *data, bucket_t *buck);
+--- hash.c
++++ hash.c
+@@ -68,7 +68,7 @@
+ }
+ return NULL;
+ }
+-void *Hash_GetKey(hashtable_t *table, int key)
++void *Hash_GetKey(hashtable_t *table, long key)
+ {
+ int bucknum = key%table->numbuckets;
+ bucket_t *buck;
+@@ -77,7 +77,7 @@
+
+ while(buck)
+ {
+- if ((int)buck->keystring == key)
++ if ((long)buck->keystring == key)
+ return buck->data;
+
+ buck = buck->next;
+@@ -168,7 +168,7 @@
+
+ return buck;
+ }
+-void *Hash_AddKey(hashtable_t *table, int key, void *data, bucket_t *buck)
++void *Hash_AddKey(hashtable_t *table, long key, void *data, bucket_t *buck)
+ {
+ int bucknum = key%table->numbuckets;
+
+@@ -237,14 +237,14 @@
+ }
+
+
+-void Hash_RemoveKey(hashtable_t *table, int key)
++void Hash_RemoveKey(hashtable_t *table, long key)
+ {
+ int bucknum = key%table->numbuckets;
+ bucket_t *buck;
+
+ buck = table->bucket[bucknum];
+
+- if ((int)buck->keystring == key)
++ if ((long)buck->keystring == key)
+ {
+ table->bucket[bucknum] = buck->next;
+ return;
+@@ -253,7 +253,7 @@
+
+ while(buck->next)
+ {
+- if ((int)buck->next->keystring == key)
++ if ((long)buck->next->keystring == key)
+ {
+ buck->next = buck->next->next;
+ return;
diff --git a/games-util/fteqcc/fteqcc-2501.ebuild b/games-util/fteqcc/fteqcc-2501.ebuild
new file mode 100644
index 000000000000..861fdfcc36cb
--- /dev/null
+++ b/games-util/fteqcc/fteqcc-2501.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-util/fteqcc/fteqcc-2501.ebuild,v 1.1 2005/11/05 04:51:39 vapier Exp $
+
+inherit eutils
+
+DESCRIPTION="QC compiler"
+HOMEPAGE="http://fteqw.sourceforge.net/"
+SRC_URI="mirror://sourceforge/fteqw/qclibsrc${PV}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-cleanup-source.patch
+ sed -i \
+ -e "s: -O3 : :g" \
+ -e "s: -s : :g" \
+ Makefile || die "sed failed"
+ edos2unix readme.txt
+}
+
+src_compile() {
+ emake BASE_CFLAGS="${CFLAGS} -Wall" || die "emake qcc failed"
+}
+
+src_install() {
+ newbin fteqcc.bin fteqcc || die "newbin fteqcc.bin failed"
+ dodoc readme.txt
+}
diff --git a/games-util/fteqcc/metadata.xml b/games-util/fteqcc/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-util/fteqcc/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>