95884bae22
Closes Homebrew/homebrew#42407. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
21 lines
766 B
Ruby
21 lines
766 B
Ruby
class Wordplay < Formula
|
|
desc "Anagram generator"
|
|
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"
|
|
sha256 "9436a8c801144ab32e38b1e168130ef43e7494f4b4939fcd510c7c5bf7f4eb6d"
|
|
|
|
# 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"
|
|
sha256 "45d356c4908e0c69b9a7ac666c85f3de46a8a83aee028c8567eeea74d364ff89"
|
|
end
|
|
|
|
def install
|
|
inreplace "wordplay.c", "@PREFIX@", prefix
|
|
system "make", "CC=#{ENV.cc}"
|
|
bin.install "wordplay"
|
|
(share/"wordplay").install "words721.txt"
|
|
end
|
|
end
|