aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/malbolge.rb
blob: 6d34856184882339f61fa1bdbc10a930c10d65d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'formula'

class Malbolge < Formula

  url 'http://esoteric.sange.fi/orphaned/malbolge/malbolge.c'
  homepage 'http://esoteric.sange.fi/orphaned/malbolge/README.txt'
  md5 '447482be58906921e36520a8900095c5'
  version '0.1.0'

  def patches
    DATA
  end

  def install
    system "#{ENV['CXX']}", "malbolge.c", "-o", "malbolge"
    bin.install 'malbolge'
  end
end

__END__
--- /malbolge.c
+++ /malbolge.c 
25d24
< #include <malloc.h>