Skip to content

Commit

Permalink
brogue 1.7.4
Browse files Browse the repository at this point in the history
Directory hierarchy changed a bit.  Original tarball extracts as 'brogue-linux-1.7.3/brogue-1.7.3/' and the new one extracts as 'brogue-1.7.4/'.  The tarball itself also changed from '.tar.gz' to '.tbz2' .

Closes #133.

Signed-off-by: Misty De Meo <[email protected]>
  • Loading branch information
sandlst authored and mistydemeo committed Aug 17, 2014
1 parent 6eb3559 commit 4cda2f8
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions brogue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ class Brogue < Formula

# The OS X version doesn't contain a Makefile, so we
# need to download the Linux version
url 'https://sites.google.com/site/broguegame/brogue-linux-1.7.3.tar.gz'
sha1 'acd9d3f107518cbbcd8ad974fa6c261d6439fb8d'
url 'https://sites.google.com/site/broguegame/brogue-1.7.4-linux-amd64.tbz2'
sha1 'd2a7f74b040fe29dee81cb1ff8e78f8ee807c1c0'
version "1.7.4"

def patches
# put the highscores file in HOMEBREW_PREFIX/var/brogue/ instead of a
Expand All @@ -17,22 +18,20 @@ def patches
def install
mkdir_p "#{var}/brogue"

cd 'brogue-1.7.3' do
doc.install 'Readme.rtf' => 'README.rtf'
doc.install 'agpl.txt' => 'COPYING'
doc.install 'Readme.rtf' => 'README.rtf'
doc.install 'agpl.txt' => 'COPYING'

system "make", "clean"
system "make", "curses"
system "make", "clean"
system "make", "curses"

# The files are installed in libexec
# and the provided `brogue` shell script,
# which is just a convenient way to launch the game,
# is placed in the `bin` directory.
inreplace 'brogue', /`dirname \$0`\/bin$/, libexec
bin.install 'brogue'
libexec.install 'bin/brogue'
libexec.install 'bin/keymap'
end
# The files are installed in libexec
# and the provided `brogue` shell script,
# which is just a convenient way to launch the game,
# is placed in the `bin` directory.
inreplace 'brogue', /`dirname \$0`\/bin$/, libexec
bin.install 'brogue'
libexec.install 'bin/brogue'
libexec.install 'bin/keymap'
end

def caveats; <<-EOS.undent
Expand All @@ -46,8 +45,8 @@ def test
end
end
__END__
--- a/brogue-1.7.3/src/platform/platformdependent.c 2013-10-08 21:53:15.000000000 +0200
+++ b/brogue-1.7.3/src/platform/platformdependent.c 2013-10-08 21:55:22.000000000 +0200
--- a/src/platform/platformdependent.c 2013-10-08 21:53:15.000000000 +0200
+++ b/src/platform/platformdependent.c 2013-10-08 21:55:22.000000000 +0200
@@ -75,7 +75,7 @@
short i;
FILE *scoresFile;
Expand Down

0 comments on commit 4cda2f8

Please sign in to comment.