summaryrefslogtreecommitdiff
path: root/dev-lang/jwasm
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-lang/jwasm
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-lang/jwasm')
-rw-r--r--dev-lang/jwasm/Manifest6
-rw-r--r--dev-lang/jwasm/files/jwasm-2.11-types-test.patch58
-rw-r--r--dev-lang/jwasm/jwasm-2.11a.ebuild39
-rw-r--r--dev-lang/jwasm/metadata.xml12
4 files changed, 115 insertions, 0 deletions
diff --git a/dev-lang/jwasm/Manifest b/dev-lang/jwasm/Manifest
new file mode 100644
index 000000000000..0cab26ed8bd1
--- /dev/null
+++ b/dev-lang/jwasm/Manifest
@@ -0,0 +1,6 @@
+AUX jwasm-2.11-types-test.patch 1761 SHA256 aec5aab1ffe275da2a4c6c825ca1372934a6046d673405fe420b306dbfe6189e SHA512 0a4f3e613c8e724939ce9e23f8f4ce10ca89bf6c1579929719b3ccad62ac66cceecc3f8799c20c2875b7d4dcc7390bf0e4ca64aa08aab0b39bd7a4ab381b150b WHIRLPOOL b835c0122306bf35559d0b4d74472c1e4717e89933abd4d9742f4d588519d2616fcdb5d1ae22bcf235cd231135ec1bfdbd294dbd60d61fc74ddf1528c2cc93a6
+DIST JWasm211as.zip 1004993 SHA256 6c7b8b4bc576a4e9d50a452f1b3117bb67e6043c34ac971f3cb250d2c2a55ae4 SHA512 3e48e09955ccf8e641b36f54c93c3f36b275a0e662013a17dfd1f52a3e2872eff54be869596d0e72bdb2cc7e59c8fd1dee13477bf89a59bba4b212959cff9006 WHIRLPOOL 2b2bfd100b86dc749e77a0c99d77adf355a76ffbb0fee5464dd57e506c9178338368a3be7240c46a78c66f573ce25c8d7e1d0a4bedd388268b2932af7c5efd85
+EBUILD jwasm-2.11a.ebuild 810 SHA256 791ee8b1dbf50b94f9aee17252dc17588117da1c7c60517b2a03b86a64d0ab17 SHA512 074c5966954c12ce0faf29133f8b3d1a442b1ae889eaae16ef3dcc88716f900773dafac87949b129c7a0a05cdc7bed6a90b333293ce0fd15483aa39f5375993b WHIRLPOOL 7537178c7dfc49c30a65dc584097756c647b7ddac85d5ab5d9aeb5e634785cc870f3273dc8481b9c57b745ee394ad84b92abf93d30c7d267d48af2e748147ba2
+MISC ChangeLog 2538 SHA256 07528c4c7d1a212b9e06fe99ec75bf69bcd3116520eb3439c92983aace33fb3f SHA512 6f44007127294fa2e8ff53a904c1c3e011e013ea105b148271f28a033c9b7432260665c2135822ca3a5a72e910f7907fff757646748d979ba6b1aa9a0fe44451 WHIRLPOOL 4f92f928f07db8a617c6515465f212e45edde5e93276dc86b7978fcc60c0e64e23096ef1c3f540784f787680ca4e8f05c1420b393321cda97ecd0bb9073f3b7e
+MISC ChangeLog-2015 927 SHA256 63dcea6efd6cbdc3fc6277f52f137e3a37eb8a2edf25bf4e1ec934ea7a15dc99 SHA512 4a150958968072d5b87058218b7cc56a9f813cfd3d2dcd4b4f109f5378d3cf2692a7c7fbf2fb96cea9c3d8b246a8c62be93867236898c4854f76b80c1f2c5ce4 WHIRLPOOL d96aa9203519bd2c072583e98bd1854d25cbdbb7951c93db72b54c5ded20075f7a90f3e30cf995e8d1a6dbf6c44f2e9c4eb86450dcaf5bc9baa278c7af21e1b2
+MISC metadata.xml 374 SHA256 47f12455f71eac0ee9ea6bf6b460e0e1538959b6d3b139483d4bff3deafd767e SHA512 49b5ffdd4290e014be34ad29b840053768a876ad60e58130224df77e44f87082b6c153d5dbb4c4d7116aa530222effdb95808711c0e9865720500632f7e7d895 WHIRLPOOL cb0631b6853ae18c5be721b21a01a924429c1cc27e91c0dd7252e95a2cb1084cb79be05605cb28e404ed8a5d056f83324cd94156e7f9b919b315b0f24b23ae08
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.11a.ebuild b/dev-lang/jwasm/jwasm-2.11a.ebuild
new file mode 100644
index 000000000000..0eab110f0fbb
--- /dev/null
+++ b/dev-lang/jwasm/jwasm-2.11a.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="https://sourceforge.net/projects/jwasm/"
+SRC_URI="mirror://sourceforge/${PN}/JWasm%20Source%20Code/${MY_P}.zip"
+LICENSE="Watcom-1.0"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=""
+DEPEND=""
+
+S="${WORKDIR}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.11-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..d8af4656c230
--- /dev/null
+++ b/dev-lang/jwasm/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>slyfox@gentoo.org</email>
+ <name>Sergei Trofimovich</name>
+ <description>Primary Maintainer</description>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">jwasm</remote-id>
+ </upstream>
+</pkgmetadata>