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

class Wordplay < Formula
  homepage 'http://hsvmovies.com/static_subpages/personal_orig/wordplay/index.html'
  url 'http://hsvmovies.com/static_subpages/personal_orig/wordplay/wordplay722.tar.Z'
  version '7.22'
  sha1 '629b4a876b6be966be7ddde7ccdfaa89fc226942'

  # Fixes compiler warnings on Darwin
  # Point to words file in share
  patch :p0 do
    url "https://trac.macports.org/export/101903/trunk/dports/games/wordplay/files/patch-wordplay.c"
    sha1 "fe330ca634826cf0dedb7a106945efdee260ac2d"
  end

  def install
    inreplace "wordplay.c", "@PREFIX@", prefix
    system "make", "CC=#{ENV.cc}"
    bin.install 'wordplay'
    (share/'wordplay').install 'words721.txt'
  end
end