]> arthur.barton.de Git - homebrew-alex.git/blob - gxemul.rb
New formula: gxemul 0.6.0.1
[homebrew-alex.git] / gxemul.rb
1 require "formula"
2
3 class Gxemul < Formula
4   homepage "http://gxemul.sourceforge.net"
5   url "http://gxemul.sourceforge.net/src/gxemul-0.6.0.1.tar.gz"
6   sha1 "8a9b7a6c08628c2a59a6e7e9c7c449c3826b4744"
7
8   depends_on :x11
9
10   patch :DATA
11
12   def install
13     system "./configure"
14     system "make"
15     bin.install "gxemul"
16     man1.install "man/gxemul.1"
17   end
18 end
19
20 __END__
21 diff -urw gxemul-0.6.0.1/src/components/cpu/M88K_CPUComponent.cc gxemul-0.6.0.1-osx/src/components/cpu/M88K_CPUComponent.cc
22 --- gxemul-0.6.0.1/src/components/cpu/M88K_CPUComponent.cc      2014-08-17 10:45:14.000000000 +0200
23 +++ gxemul-0.6.0.1-osx/src/components/cpu/M88K_CPUComponent.cc  2014-09-01 15:07:04.000000000 +0200
24 @@ -337,7 +337,7 @@
25  }
26
27
28 -void (*M88K_CPUComponent::GetDyntransToBeTranslated())(CPUDyntransComponent*, DyntransIC*) const
29 +void (*M88K_CPUComponent::GetDyntransToBeTranslated())(CPUDyntransComponent*, DyntransIC*)
30  {
31         return instr_ToBeTranslated;
32  }
33 diff -urw gxemul-0.6.0.1/src/components/cpu/MIPS_CPUComponent.cc gxemul-0.6.0.1-osx/src/components/cpu/MIPS_CPUComponent.cc
34 --- gxemul-0.6.0.1/src/components/cpu/MIPS_CPUComponent.cc      2014-08-17 10:45:14.000000000 +0200
35 +++ gxemul-0.6.0.1-osx/src/components/cpu/MIPS_CPUComponent.cc  2014-09-01 15:08:22.000000000 +0200
36 @@ -327,7 +327,7 @@
37  }
38
39
40 -void (*MIPS_CPUComponent::GetDyntransToBeTranslated())(CPUDyntransComponent*, DyntransIC*) const
41 +void (*MIPS_CPUComponent::GetDyntransToBeTranslated())(CPUDyntransComponent*, DyntransIC*)
42  {
43         bool mips16 = m_pc & 1? true : false;
44         return mips16? instr_ToBeTranslated_MIPS16 : instr_ToBeTranslated;
45 diff -urw gxemul-0.6.0.1/src/include/components/CPUDyntransComponent.h gxemul-0.6.0.1-osx/src/include/components/CPUDyntransComponent.h
46 --- gxemul-0.6.0.1/src/include/components/CPUDyntransComponent.h        2014-08-17 10:45:13.000000000 +0200
47 +++ gxemul-0.6.0.1-osx/src/include/components/CPUDyntransComponent.h    2014-09-01 15:02:04.000000000 +0200
48 @@ -105,7 +105,7 @@
49  protected:
50         // Implemented by specific CPU families:
51         virtual int GetDyntransICshift() const = 0;
52 -       virtual void (*GetDyntransToBeTranslated())(CPUDyntransComponent* cpu, DyntransIC* ic) const = 0;
53 +       virtual void (*GetDyntransToBeTranslated())(CPUDyntransComponent* cpu, DyntransIC* ic) = 0;
54
55         void DyntransToBeTranslatedBegin(struct DyntransIC*);
56         bool DyntransReadInstruction(uint16_t& iword);
57 diff -urw gxemul-0.6.0.1/src/include/components/M88K_CPUComponent.h gxemul-0.6.0.1-osx/src/include/components/M88K_CPUComponent.h
58 --- gxemul-0.6.0.1/src/include/components/M88K_CPUComponent.h   2014-08-17 10:45:13.000000000 +0200
59 +++ gxemul-0.6.0.1-osx/src/include/components/M88K_CPUComponent.h       2014-09-01 15:06:26.000000000 +0200
60 @@ -377,7 +377,7 @@
61         virtual bool FunctionTraceReturnImpl(int64_t& retval) { retval = m_r[M88K_RETURN_VALUE_REG]; return true; }
62
63         virtual int GetDyntransICshift() const;
64 -       virtual void (*GetDyntransToBeTranslated())(CPUDyntransComponent*, DyntransIC*) const;
65 +       virtual void (*GetDyntransToBeTranslated())(CPUDyntransComponent*, DyntransIC*);
66
67         virtual void ShowRegisters(GXemul* gxemul, const vector<string>& arguments) const;
68
69 diff -urw gxemul-0.6.0.1/src/include/components/MIPS_CPUComponent.h gxemul-0.6.0.1-osx/src/include/components/MIPS_CPUComponent.h
70 --- gxemul-0.6.0.1/src/include/components/MIPS_CPUComponent.h   2014-08-17 10:45:13.000000000 +0200
71 +++ gxemul-0.6.0.1-osx/src/include/components/MIPS_CPUComponent.h       2014-09-01 15:07:38.000000000 +0200
72 @@ -196,7 +196,7 @@
73         virtual bool FunctionTraceReturnImpl(int64_t& retval);
74
75         virtual int GetDyntransICshift() const;
76 -       virtual void (*GetDyntransToBeTranslated())(CPUDyntransComponent*, DyntransIC*) const;
77 +       virtual void (*GetDyntransToBeTranslated())(CPUDyntransComponent*, DyntransIC*);
78
79         virtual void ShowRegisters(GXemul* gxemul, const vector<string>& arguments) const;
80