New formula for "wordplay" program #14295

Closed
wants to merge 3 commits into from

2 participants

@bahamat

Wordplay is an anagram generator.

@adamv

Can use Pathname methods: bin.install "wordplay" for instance.

Ok, I'll do that. Should I create a new pull request afterward?

@adamv

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.

@adamv

Error running this software:

$ wordplay "thing"
Wordplay Version 7.22  03-20-96, 1991   by Evans A Criswell
University of Alabama in Huntsville     criswell@cs.uah.edu


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.
@adamv

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.

@bahamat

That patch doesn't seem to work for me. It has this in the error:

Word list file      :  "@PREFIX@/share/wordplay/words721.txt"
@bahamat

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 ....

@bahamat

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.

@adamv

Please squash to a single commit for review.

@adamv adamv added a commit that closed this pull request Jan 21, 2013
@bahamat bahamat wordplay 7.22
Closes #14295.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
78c6535
@adamv adamv closed this in 78c6535 Jan 21, 2013
@norioxkimura norioxkimura added a commit to norioxkimura/homebrew that referenced this pull request Jan 26, 2013
@bahamat bahamat wordplay 7.22
Closes #14295.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
681d7e4
@rajeeja rajeeja pushed a commit that referenced this pull request Apr 19, 2013
@bahamat bahamat wordplay 7.22
Closes #14295.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
4ccb803
@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.