diff options
| author | Adam Vandenberg | 2009-09-22 14:36:36 -0700 |
|---|---|---|
| committer | Max Howell | 2009-09-25 19:22:02 +0100 |
| commit | 71c722605e82804193e00fe11709c56c08c6118e (patch) | |
| tree | 2b165cdd88a3c3c4c3c470a29727de355a16a314 /Library | |
| parent | 618ae3eb1d9f923148bbfbce2354be97d0cc6c58 (diff) | |
| download | homebrew-71c722605e82804193e00fe11709c56c08c6118e.tar.bz2 | |
Fix Nethack formula.
* Create the empty save folder on install.
* Deparallelize the build, since the master build runs a bunch of
nested makes, and we want the products to come out in-order.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/nethack.rb | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/Library/Formula/nethack.rb b/Library/Formula/nethack.rb index bf9be7fd1..3aa05f136 100644 --- a/Library/Formula/nethack.rb +++ b/Library/Formula/nethack.rb @@ -22,13 +22,19 @@ class Nethack <Formula ["http://github.com/adamv/nethack-osx/raw/82992eb6e4d8c76b05037579126293d644ef971d/patches/nethack-osx-343.patch"] } end - + + def skip_clean? path + path == libexec + "nethack/save" + end + def install + # Build everything in-order; no multi builds. + ENV.deparallelize + # Symlink makefiles system 'sh sys/unix/setup.sh' ## We are not using the default installer - # Install to a sane location, geez. nethackdir = "#{prefix}/libexec/nethack" system "mkdir -p #{nethackdir}" @@ -60,13 +66,4 @@ class Nethack <Formula bin.install 'src/nethack' system "mkdir #{prefix}/libexec/nethack/save" end - - def caveats - <<-EOS -In order to save your game, you need to create the save directory manually: - mkdir #{prefix}/libexec/nethack/save -If you can get this build script to create this folder, please patch it. -(Currently empty folders are nuked by a perl onliner.) - EOS - end end |
