Wordplay is an anagram generator.
New formula "wordplay"
Changed wordplay to use inline patch
Can use Pathname methods: bin.install "wordplay" for instance.
Ok, I'll do that. Should I create a new pull request afterward?
If you made this pull request from a non-master branch, then you can git push -f after rebasing to update this pull request in place.
git push -f
Error running this software:
$ wordplay "thing"
Wordplay Version 7.22 03-20-96, 1991 by Evans A Criswell
University of Alabama in Huntsville firstname.lastname@example.org
Candidate word list : no
Anagram Generation : yes
Adjacent duplicates : no
Vowel-free words OK : no
Max anagram depth : 32
Maximum word length : 128
Minimum word length : 0
Word list file : "words721.txt"
String to anagram : "THING"
Initializing. Please wait while words are being loaded
and unnecessary words are being filtered out ...
Error opening word file.
MacPorts patches the .c file to find the words file: https://trac.macports.org/browser/trunk/dports/games/wordplay/files/patch-wordplay.c
Also note that this hardcodes GCC as a compiler.
Merge branch 'master' of https://github.com/mxcl/homebrew
That patch doesn't seem to work for me. It has this in the error:
Word list file : "@PREFIX@/share/wordplay/words721.txt"
Also, for using bin.install, that works fine. But for other things I can't figure out how to get the files into the right place. Using share.install just dumps them into /usr/local/share. The files aren't in a directory so share.install Dir[something] won't work.
I'd rather just have all of the install methods be the same. Unless you can tell me how to make share.install do what I need I'm just going to leave everything with system "install ....
system "install ...
As for hardcoding gcc, I'm not sure what you mean. The makefile from upstream already explicitly sets the compiler to gcc. I'm making as few changes as possible. Using fails_with lines don't seem to make any difference.
Please squash to a single commit for review.
Signed-off-by: Adam Vandenberg <email@example.com>