summaryrefslogtreecommitdiff
path: root/app-emulation/gxemul
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-emulation/gxemul
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-emulation/gxemul')
-rw-r--r--app-emulation/gxemul/Manifest6
-rw-r--r--app-emulation/gxemul/files/0.6.0-fix-mkstemp-test.patch10
-rw-r--r--app-emulation/gxemul/files/0.6.0-fix-mymkstemp.patch11
-rw-r--r--app-emulation/gxemul/files/0.6.0-gcc46.patch16
-rw-r--r--app-emulation/gxemul/gxemul-0.6.0-r1.ebuild42
-rw-r--r--app-emulation/gxemul/metadata.xml9
6 files changed, 94 insertions, 0 deletions
diff --git a/app-emulation/gxemul/Manifest b/app-emulation/gxemul/Manifest
new file mode 100644
index 000000000000..487d3810815e
--- /dev/null
+++ b/app-emulation/gxemul/Manifest
@@ -0,0 +1,6 @@
+AUX 0.6.0-fix-mkstemp-test.patch 384 BLAKE2B d7a5f2f222bf4875cdcc695645ea9a042446e9f1874fad978da04a5c78fe6f1e0dbc89eb843b4c73d79d8f5f6aefe6141a6e179d004aa9d6d4aaac772b741493 SHA512 f4f1283c116d155af14dbb2f6f4a0f25300ce68593ec4ddc7f4841c38b34cdc8519e34d76a43032d31e5166cb514a66943e3e982852197de2bd3607ff5be1c9b
+AUX 0.6.0-fix-mymkstemp.patch 253 BLAKE2B 583b6717f5d15bc235fd1933be9c7ba70e560aaa8be84f5bc63caea28d00e715e1062a98d9af9a30259974e540c7abc9587ae46e9baa4bbd021646d0c319481e SHA512 e7117b95fc2559442ef444417f8b6e59246a4e1476674de70926d9a9e589b5d9d45ad82ec52fac9873e4f052e9c00087a18ad36c0caf4ae93ffa0852073d2e4b
+AUX 0.6.0-gcc46.patch 418 BLAKE2B e098bc1d64a911e9f9c67dda43bf4a1249ac450d88217f92938b9662b72d5f33b75f419ad12630bb9c8638b6e6aed5bdb487eb9e861f9d6563ed3a2d0d98f6a6 SHA512 0652b82645c75a56b24ed88e3cd9d68bdbbd927e64819aae22d61614db520dcb4fa8b9eab06b2ccd5c01f78d20008c587f3245c520b9bde0cafbc5cfdf3083c1
+DIST gxemul-0.6.0.tar.gz 3598795 BLAKE2B 01bab252b8497379cc819899d9030fd267cf7679a90a421f435c6cb9ce84fedbdbd0ff23a11e0c91a17e41e166488562b4e173b3793cdbc2dd53b70701351429 SHA512 38108c7e4f1332bf80046a63e4a7c5e0fbce7f83a62fdeaa4518ef02947d7de83aac20b0307d286b7eb5d9c721b8400d449d4f244b2bc9358a2502fa21f56b73
+EBUILD gxemul-0.6.0-r1.ebuild 1034 BLAKE2B 59b382033033ea0807ef409e025e4a8dff6d2fc328b045bc5a4bfc5a3bcfbf822de7b66850af6a0ebca03ff8ed8367c9ff1455198954bfcd0c584494a4026690 SHA512 6fea228b23216ca715fa560c41cc7b3ddad2b32d6fdeebd028eca6f97bb717bedce8afd05975c42c2cacfbba398d0a16f63b03a4142a8c3997c5a56e3e35fe6b
+MISC metadata.xml 422 BLAKE2B fafd4fe4407522b0d25cdd546c636eba02a245ccb86ec2affa49f479c069cd73aa677f524fd73e41c441f10fd759d96c82157b9a1f8d7fc3ff715fe35e1dc637 SHA512 78942cda34c7b5fe85d937f517846730a76c2b52688a871c683630c122db7fb4ae8db2fbc8a03fa06218e2c3d18ffc406692f81b021ae5613a818feefa54513a
diff --git a/app-emulation/gxemul/files/0.6.0-fix-mkstemp-test.patch b/app-emulation/gxemul/files/0.6.0-fix-mkstemp-test.patch
new file mode 100644
index 000000000000..88883309b909
--- /dev/null
+++ b/app-emulation/gxemul/files/0.6.0-fix-mkstemp-test.patch
@@ -0,0 +1,10 @@
+--- configure 2012-11-03 09:08:09.373041529 +0000
++++ configure.new 2012-11-03 09:08:31.999585979 +0000
+@@ -705,6 +705,7 @@
+ # mkstemp missing?
+ printf "checking for mkstemp... "
+ printf "#include <unistd.h>
++#include <stdlib.h>
+ int main(int argc, char *argv[]) { int x; char *y = \"abc\";
+ x = mkstemp(y); return 0;}\n" > _tests.cc
+ $CXX $CXXFLAGS _tests.cc -o _tests 2> /dev/null
diff --git a/app-emulation/gxemul/files/0.6.0-fix-mymkstemp.patch b/app-emulation/gxemul/files/0.6.0-fix-mymkstemp.patch
new file mode 100644
index 000000000000..80d69f92c827
--- /dev/null
+++ b/app-emulation/gxemul/files/0.6.0-fix-mymkstemp.patch
@@ -0,0 +1,11 @@
+--- src/old_main/misc.cc 2012-11-03 08:47:34.309732354 +0000
++++ src/old_main/misc.cc.new 2012-11-03 08:47:02.096573614 +0000
+@@ -122,7 +122,7 @@
+ p++;
+ }
+
+- h = open(templ, O_RDWR, 0600);
++ h = open(templ, O_CREAT | O_RDWR, 0600);
+ return h;
+ }
+
diff --git a/app-emulation/gxemul/files/0.6.0-gcc46.patch b/app-emulation/gxemul/files/0.6.0-gcc46.patch
new file mode 100644
index 000000000000..eb0ce26b6e1c
--- /dev/null
+++ b/app-emulation/gxemul/files/0.6.0-gcc46.patch
@@ -0,0 +1,16 @@
+ src/include/refcount_ptr.h | 2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/src/include/refcount_ptr.h b/src/include/refcount_ptr.h
+index 4645769..ebabd58 100644
+--- a/src/include/refcount_ptr.h
++++ b/src/include/refcount_ptr.h
+@@ -1,6 +1,8 @@
+ #ifndef REFCOUNT_PTR_H
+ #define REFCOUNT_PTR_H
+
++#include <stddef.h>
++
+ /*
+ * Copyright (C) 2007-2010 Anders Gavare. All rights reserved.
+ *
diff --git a/app-emulation/gxemul/gxemul-0.6.0-r1.ebuild b/app-emulation/gxemul/gxemul-0.6.0-r1.ebuild
new file mode 100644
index 000000000000..889530285923
--- /dev/null
+++ b/app-emulation/gxemul/gxemul-0.6.0-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A Machine Emulator, Mainly emulates MIPS, but supports other CPU types"
+HOMEPAGE="http://gxemul.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/gxemul/GXemul/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86 ~x86-fbsd"
+IUSE="debug X"
+
+RDEPEND="X? ( x11-libs/libX11 )"
+DEPEND="${RDEPEND}
+ X? ( x11-base/xorg-proto )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-gcc46.patch
+ epatch "${FILESDIR}"/${PV}-fix-mymkstemp.patch # Bug 441558
+ epatch "${FILESDIR}"/${PV}-fix-mkstemp-test.patch # Bug 441558
+ sed -i configure -e 's|-O3||g' || die "sed configure"
+ tc-export CC CXX
+}
+
+src_configure() {
+ # no autotools
+ ./configure \
+ --disable-valgrind \
+ $(use debug && echo --debug) \
+ $(use X || echo --disable-x) || die "configure failed"
+}
+
+src_install() {
+ dobin gxemul
+ doman man/gxemul.1
+ dodoc HISTORY README
+ dohtml -r doc/*
+}
diff --git a/app-emulation/gxemul/metadata.xml b/app-emulation/gxemul/metadata.xml
new file mode 100644
index 000000000000..ce46ccfd0e80
--- /dev/null
+++ b/app-emulation/gxemul/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-needed -->
+ <longdescription>Machine Emulator. Supports emulation across several architectures. Primarily for MIPS support, but other platform support coming soon.</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">gxemul</remote-id>
+ </upstream>
+</pkgmetadata>