diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-lang/jwasm | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-lang/jwasm')
-rw-r--r-- | dev-lang/jwasm/Manifest | 2 | ||||
-rw-r--r-- | dev-lang/jwasm/files/jwasm-2.10-gcc-4.8-fwdecl.patch | 41 | ||||
-rw-r--r-- | dev-lang/jwasm/files/jwasm-2.10-types-test.patch | 60 | ||||
-rw-r--r-- | dev-lang/jwasm/files/jwasm-2.10-uint_32-on-amd64.patch | 28 | ||||
-rw-r--r-- | dev-lang/jwasm/files/jwasm-2.11-types-test.patch | 58 | ||||
-rw-r--r-- | dev-lang/jwasm/jwasm-2.10-r1.ebuild | 42 | ||||
-rw-r--r-- | dev-lang/jwasm/jwasm-2.11.ebuild | 40 | ||||
-rw-r--r-- | dev-lang/jwasm/metadata.xml | 9 |
8 files changed, 280 insertions, 0 deletions
diff --git a/dev-lang/jwasm/Manifest b/dev-lang/jwasm/Manifest new file mode 100644 index 000000000000..51d2814cdc0c --- /dev/null +++ b/dev-lang/jwasm/Manifest @@ -0,0 +1,2 @@ +DIST JWasm210s.zip 939008 SHA256 8d9a5ac95fa07a8e935423f3d1e44127c79d873e380f04d1ce8e1a65ca7daafd SHA512 fed6a02e9c58d8c8e4ad83cfd93207c99dc2cc73626188abc2f376465f72dea5ad2ac747b2832cfd8053220b76fdfd58b89d9e484f380c2eb0af2b541f24ca7e WHIRLPOOL 703f860303008cfadd6b42e36aee92e32d5b19af6f70040b083408e43ab5b7bbf83539c5ee96202c6a613ba8640ce2c8e18c465b853e1ac1727e03f30b2b10e8 +DIST JWasm211s.zip 1006791 SHA256 6d5ab10908fbedddf652b2c683e9fdf450caae9741082c1077100308d0879146 SHA512 acbe102b8c6c5d1fdc3ae80944cc3c0fcf287b6ee967b13251ea3e2bcf9547a772c7c658f4f90e8da70b60749add59d5ab321773dc317eac652325b2bd874dd6 WHIRLPOOL e2c28b46aa3d2d53e879f06931fa4ff3d7701541eb4fec7595b7df0c6682ddf72843ba04d072e2d55eb74139041c21a86298a03dad997c8f5b73cbc91958dbc6 diff --git a/dev-lang/jwasm/files/jwasm-2.10-gcc-4.8-fwdecl.patch b/dev-lang/jwasm/files/jwasm-2.10-gcc-4.8-fwdecl.patch new file mode 100644 index 000000000000..88bbcb94723c --- /dev/null +++ b/dev-lang/jwasm/files/jwasm-2.10-gcc-4.8-fwdecl.patch @@ -0,0 +1,41 @@ +From c2b789403a1ca833bcabada5347bb18d7bd095c2 Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich <slyfox@gentoo.org> +Date: Wed, 15 May 2013 22:04:01 +0300 +Subject: [PATCH] fix build failure on gcc-4.8 (missing forward declaration) + +Fixes the following build error: +> gcc -c -IH -D__UNIX__ -DNDEBUG -O2 -o GccUnixR/parser.o parser.c +> In file included from parser.c:35:0: +> H/parser.h:305:48: warning: 'struct expr' declared inside parameter list [enabled by default] +> extern void EmitConstError( const struct expr * ); +> ^ +> H/parser.h:305:48: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] +> parser.c:790:6: error: conflicting types for 'EmitConstError' +> void EmitConstError( const struct expr *opnd ) +> ^ +> In file included from parser.c:35:0: +> H/parser.h:305:19: note: previous declaration of 'EmitConstError' was here +> extern void EmitConstError( const struct expr * ); +> ^ +> make: *** [GccUnixR/parser.o] Error 1 + +Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> +--- + H/parser.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/H/parser.h b/H/parser.h +index 1744f0d..c2c7b99 100644 +--- a/H/parser.h ++++ b/H/parser.h +@@ -302,6 +302,7 @@ extern int SizeFromMemtype( enum memtype, int, struct asym * ); + extern ret_code MemtypeFromSize( int, enum memtype * );
+ extern int SizeFromRegister( int );
+ extern ret_code GetLangType( int *, struct asm_tok[], enum lang_type * );
++struct expr;
+ extern void EmitConstError( const struct expr * );
+
+ extern void sym_add_table( struct symbol_queue *, struct dsym * );
+-- +1.8.2.1 + diff --git a/dev-lang/jwasm/files/jwasm-2.10-types-test.patch b/dev-lang/jwasm/files/jwasm-2.10-types-test.patch new file mode 100644 index 000000000000..e57c08afc83e --- /dev/null +++ b/dev-lang/jwasm/files/jwasm-2.10-types-test.patch @@ -0,0 +1,60 @@ +From b19339d4356efbd9b49f73e67ed7c09b9dad4b75 Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich <slyfox@gentoo.org> +Date: Thu, 16 May 2013 12:24:17 +0300 +Subject: [PATCH 1/2] types: add sanity tests for used sizes + +Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> +--- + GccUnix.mak | 2 +- + checks.c | 26 ++++++++++++++++++++++++++ + 2 files changed, 27 insertions(+), 1 deletion(-) + create mode 100644 checks.c + +diff --git a/GccUnix.mak b/GccUnix.mak +index 567b842..bcb2fef 100644 +--- a/GccUnix.mak ++++ b/GccUnix.mak +@@ -44,7 +44,7 @@ proj_obj = $(OUTD)/main.o $(OUTD)/assemble.o $(OUTD)/assume.o \ + $(OUTD)/apiemu.o $(OUTD)/dbgcv.o $(OUTD)/end.o \ + $(OUTD)/backptch.o $(OUTD)/msgtext.o $(OUTD)/tbyte.o \ + $(OUTD)/cpumodel.o $(OUTD)/safeseh.o $(OUTD)/cmdline.o \ +- $(OUTD)/fastpass.o ++ $(OUTD)/fastpass.o $(OUTD)/checks.o + ###### + + #.c.o: +diff --git a/checks.c b/checks.c +new file mode 100644 +index 0000000..af8630f +--- /dev/null ++++ b/checks.c +@@ -0,0 +1,26 @@ ++/****************************************************************************
++*
++* This code is Public Domain.
++*
++* ========================================================================
++*
++* Description: make sure "inttype.h" filelds are of the desired size.
++*
++****************************************************************************/
++
++#include "inttype.h"
++ ++/* fails to compile if type sizes are of unexpected size */ ++static void validate_inttype_sizes() ++{ ++/* try to create */ ++#define T_IS_SIZE(__type, __expected_size, __test_name) \ ++ char __test_name[2 * (sizeof (__type) == (__expected_size)) - 1]; ++ ++ T_IS_SIZE(uint_8, 1, size_of_uint_8_must_be_1_byte); ++ T_IS_SIZE(uint_16, 2, size_of_uint_16_must_be_2_bytes); ++ T_IS_SIZE(uint_32, 4, size_of_uint_32_must_be_4_bytes); ++ T_IS_SIZE(uint_64, 8, size_of_uint_64_must_be_8_bytes); ++ ++#undef T_IS_SIZE ++} +-- +1.8.2.1 + diff --git a/dev-lang/jwasm/files/jwasm-2.10-uint_32-on-amd64.patch b/dev-lang/jwasm/files/jwasm-2.10-uint_32-on-amd64.patch new file mode 100644 index 000000000000..f6100f657fcb --- /dev/null +++ b/dev-lang/jwasm/files/jwasm-2.10-uint_32-on-amd64.patch @@ -0,0 +1,28 @@ +From 4399dabdd55fdf9da08c3604c5b3545391c1d44f Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich <slyfox@gentoo.org> +Date: Thu, 16 May 2013 12:24:44 +0300 +Subject: [PATCH 2/2] H/inttype.h: make uint_32 be a 32-bit int on x86_64-gcc + +Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> +--- + H/inttype.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/H/inttype.h b/H/inttype.h +index 7316cbc..af2ef17 100644 +--- a/H/inttype.h ++++ b/H/inttype.h +@@ -31,6 +31,10 @@ +
+ #ifndef _INTTYPE_H_INCLUDED_
+ #define _INTTYPE_H_INCLUDED_
++/* some autoconfiguration */
++#if defined(__LP64__)
++# define LONG_IS_64BITS 1
++#endif /* __LP64__ */
+
+ typedef unsigned uint;
+
+-- +1.8.2.1 + diff --git a/dev-lang/jwasm/files/jwasm-2.11-types-test.patch b/dev-lang/jwasm/files/jwasm-2.11-types-test.patch new file mode 100644 index 000000000000..047d1d005510 --- /dev/null +++ b/dev-lang/jwasm/files/jwasm-2.11-types-test.patch @@ -0,0 +1,58 @@ +From b19339d4356efbd9b49f73e67ed7c09b9dad4b75 Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich <slyfox@gentoo.org> +Date: Thu, 16 May 2013 12:24:17 +0300 +Subject: [PATCH 1/2] types: add sanity tests for used sizes + +Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> +--- + GccUnix.mak | 2 +- + checks.c | 26 ++++++++++++++++++++++++++ + 2 files changed, 27 insertions(+), 1 deletion(-) + create mode 100644 checks.c + +diff --git a/gccmod.inc b/gccmod.inc +index 70f388a..86cb2bf 100644 +--- a/gccmod.inc ++++ b/gccmod.inc +@@ -6,6 +6,7 @@ $(OUTD)/atofloat.o \ + $(OUTD)/backptch.o \
+ $(OUTD)/bin.o \
+ $(OUTD)/branch.o \
++$(OUTD)/checks.o \
+ $(OUTD)/cmdline.o \
+ $(OUTD)/codegen.o \
+ $(OUTD)/coff.o \
+diff --git a/checks.c b/checks.c +new file mode 100644 +index 0000000..af8630f +--- /dev/null ++++ b/checks.c +@@ -0,0 +1,26 @@ ++/****************************************************************************
++*
++* This code is Public Domain.
++*
++* ========================================================================
++*
++* Description: make sure "inttype.h" filelds are of the desired size.
++*
++****************************************************************************/
++
++#include "inttype.h"
++ ++/* fails to compile if type sizes are of unexpected size */ ++static void validate_inttype_sizes() ++{ ++/* try to create */ ++#define T_IS_SIZE(__type, __expected_size, __test_name) \ ++ char __test_name[2 * (sizeof (__type) == (__expected_size)) - 1]; ++ ++ T_IS_SIZE(uint_8, 1, size_of_uint_8_must_be_1_byte); ++ T_IS_SIZE(uint_16, 2, size_of_uint_16_must_be_2_bytes); ++ T_IS_SIZE(uint_32, 4, size_of_uint_32_must_be_4_bytes); ++ T_IS_SIZE(uint_64, 8, size_of_uint_64_must_be_8_bytes); ++ ++#undef T_IS_SIZE ++} +-- +1.8.2.1 diff --git a/dev-lang/jwasm/jwasm-2.10-r1.ebuild b/dev-lang/jwasm/jwasm-2.10-r1.ebuild new file mode 100644 index 000000000000..27c32ea82f5d --- /dev/null +++ b/dev-lang/jwasm/jwasm-2.10-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs versionator + +# 2.10 -> 210s +MY_PN=JWasm +MY_PV="$(delete_version_separator 1)s" +MY_P="${MY_PN}${MY_PV}" + +DESCRIPTION="MASM-compatible TASM-similar assembler (fork of Wasm)" +HOMEPAGE="http://www.japheth.de/JWasm.html" +SRC_URI="http://www.japheth.de/Download/${MY_PN}/${MY_P}.zip" +LICENSE="Watcom-1.0" + +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="" +DEPEND="" + +S="${WORKDIR}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc-4.8-fwdecl.patch + epatch "${FILESDIR}"/${P}-types-test.patch + epatch "${FILESDIR}"/${P}-uint_32-on-amd64.patch + # don't strip binary + sed -i GccUnix.mak -e 's/ -s / /g' || die +} + +src_compile() { + emake -f GccUnix.mak CC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" +} + +src_install() { + dobin GccUnixR/jwasm + dodoc *.txt Doc/*.txt +} diff --git a/dev-lang/jwasm/jwasm-2.11.ebuild b/dev-lang/jwasm/jwasm-2.11.ebuild new file mode 100644 index 000000000000..4e4db2bbbc93 --- /dev/null +++ b/dev-lang/jwasm/jwasm-2.11.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs versionator + +# 2.10 -> 210s +MY_PN=JWasm +MY_PV="$(delete_version_separator 1)s" +MY_P="${MY_PN}${MY_PV}" + +DESCRIPTION="MASM-compatible TASM-similar assembler (fork of Wasm)" +HOMEPAGE="http://www.japheth.de/JWasm.html" +SRC_URI="http://www.japheth.de/Download/${MY_PN}/${MY_P}.zip" +LICENSE="Watcom-1.0" + +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="" +DEPEND="" + +S="${WORKDIR}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-types-test.patch + # don't strip binary + sed -i GccUnix.mak -e 's/ -s / /g' || die +} + +src_compile() { + emake -f GccUnix.mak CC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" +} + +src_install() { + dobin GccUnixR/jwasm + dodoc *.txt Doc/*.txt +} diff --git a/dev-lang/jwasm/metadata.xml b/dev-lang/jwasm/metadata.xml new file mode 100644 index 000000000000..9406077f08b4 --- /dev/null +++ b/dev-lang/jwasm/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>slyfox@gentoo.org</email> + <name>Sergei Trofimovich</name> + <description>Primary Maintainer</description> + </maintainer> +</pkgmetadata> |