debian/0000755000000000000000000000000012163705414007171 5ustar debian/patches/0000755000000000000000000000000012163704214010615 5ustar debian/patches/20_isabella_path.patch0000644000000000000000000000106312162041314014721 0ustar Author: gregor herrmann Description: Update path to Isabella.ttf Bug-Debian: http://bugs.debian.org/653953 --- magicmaze-1.4.3.6.dfsg.orig/magicmaze/graphics.rb +++ magicmaze-1.4.3.6.dfsg/magicmaze/graphics.rb @@ -171,7 +171,7 @@ @font32 = SDL::TTF.open( fontfile, fontsize.last * SCALE_FACTOR ) rescue SDL::Error => err # Debian font - fontfile = "/usr/share/fonts/truetype/Isabella.ttf" + fontfile = "/usr/share/fonts/truetype/ttf-isabella/Isabella.ttf" fontsize = [12, 28] if tries < 1 then tries += 1 # to avoid loop. debian/patches/10_use_FHS_paths.patch0000644000000000000000000000556112162043037014636 0ustar Author: Joe Nahmias Description: Change paths used by magicmaze to be FHS-compliant --- magicmaze-1.4.3.6.dfsg.orig/mm.rb +++ magicmaze-1.4.3.6.dfsg/mm.rb @@ -1,4 +1,4 @@ -#!/usr/bin/ruby -I. +#!/usr/bin/env ruby ############################################################ # This game is FREE as in both BEER and SPEECH. It is available and can --- magicmaze-1.4.3.6.dfsg.orig/magicmaze/graphics.rb +++ magicmaze-1.4.3.6.dfsg/magicmaze/graphics.rb @@ -22,7 +22,7 @@ include Images # Generic GFX. DEBUG = true - GFX_PATH = 'data/gfx/' + GFX_PATH = '/usr/share/magicmaze/gfx/' SCREEN_IMAGES = { :titlescreen => 'title.pcx', :background => 'background.pcx', @@ -122,7 +122,7 @@ SDL.init( SDL::INIT_VIDEO ) SDL::Mouse.hide SDL::WM.set_caption( _("Magic Maze"),"" ) - # SDL::WM.icon=( SDL::Surface.load("data/gfx/icon.png") ) + # SDL::WM.icon=( SDL::Surface.load(GFX_PATH+"icon.png") ) screen_mode = SDL::HWSURFACE + SDL::DOUBLEBUF screen_mode += SDL::FULLSCREEN if options[:fullscreen] @@ -130,7 +130,7 @@ @screen = SDL::setVideoMode(@xsize,@ysize, @bpp, screen_mode) early_progress - SDL::WM.icon=( SDL::Surface.load("data/gfx/icon.png") ) + SDL::WM.icon=( SDL::Surface.load(GFX_PATH+"icon.png") ) early_progress unless @screen.respond_to? :draw_rect then @@ -163,7 +163,7 @@ ## Fonts SDL::TTF.init # Free font found at: http://www.squaregear.net/fonts/ - fontfile = "data/gfx/fraktmod.ttf" + fontfile = GFX_PATH+"fraktmod.ttf" fontsize = [16, 32] tries = 0 begin --- magicmaze-1.4.3.6.dfsg.orig/magicmaze/gameloop.rb +++ magicmaze-1.4.3.6.dfsg/magicmaze/gameloop.rb @@ -21,6 +21,8 @@ attr_reader :graphics, :sound, :input + MAP_PATH = '/usr/share/magicmaze/maps/' + def initialize( game_config, level = 1, player_status = nil ) @game_config = game_config @graphics = game_config.graphics @@ -42,7 +44,7 @@ def load_map( level = 1, saved = nil ) puts "Loading level: %s" % level filename = level - filename = sprintf("data/maps/mm_map.%03d",level + filename = sprintf(MAP_PATH + "mm_map.%03d",level ) if level.kind_of? Numeric filemap = MagicMaze::FileMap.new( filename ) --- magicmaze-1.4.3.6.dfsg.orig/magicmaze/sound.rb +++ magicmaze-1.4.3.6.dfsg/magicmaze/sound.rb @@ -21,6 +21,7 @@ # class Sound ALL_CHANNELS = -1 + SOUND_PATH = '/usr/share/magicmaze/sound/' ## # Singleton graphics instance. @@ -39,7 +40,7 @@ SDL::Mixer.open @sounds = {} (1..4).each{|sound_no| - filename = sprintf "data/sound/sound%d.wav", sound_no + filename = sprintf SOUND_PATH+"sound%d.wav", sound_no sound = SDL::Mixer::Wave.load( filename ) @sounds[sound_no] = sound } debian/patches/series0000644000000000000000000000011012163703005012017 0ustar 10_use_FHS_paths.patch 20_isabella_path.patch 30_fix-game-pausing.patch debian/patches/30_fix-game-pausing.patch0000644000000000000000000000122112163704214015275 0ustar Description: fix crash when pausing magicmaze The game crashes because of a bug in ruby-sdl where drawBlendedUTF8() bombs out if passed an empty string. Author: Joe Nahmias Last-Update: 2013-06-29 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- magicmaze-1.4.3.6+dfsg.orig/magicmaze/gameloop.rb +++ magicmaze-1.4.3.6+dfsg/magicmaze/gameloop.rb @@ -141,7 +141,7 @@ end def pause_game - @graphics.show_long_message( _("Paused!\n\nPress any key\nto resume game.") ) + @graphics.show_long_message( _("Paused!\n \nPress any key\nto resume game.") ) @game_input.get_key_press end debian/manpages0000644000000000000000000000002312161565161010703 0ustar debian/magicmaze.6 debian/watch0000644000000000000000000000036312163705336010227 0ustar version=3 # opts="uversionmangle=s/_/./g,dversionmangle=s/\+dfsg\.?\d*$//" \ http://rubyforge.org/frs/?group_id=378 \ /frs/download.php/\d+/magicmaze-(.*)\.tar\.gz \ debian \ uupdate debian/copyright0000644000000000000000000000324012162047633011124 0ustar This package was debianized by Joe Nahmias on Sun, 20 Jul 2008 15:29:14 -0400. It was downloaded from and repackaged to remove the Fraktur Modern font which is not DFSG-free. Upstream Author: Kent "MenThal" Dahl Copyright: Copyright (C) 2004-2008 Kent Dahl License: ############################################################ # This game is FREE as in both BEER and SPEECH. It is available and can # be distributed under the terms of the GPL license (version 2) or # alternatively the dual-licensing terms of Ruby itself. # Please see README.txt and COPYING_GPL.txt for details. # # Magic Maze - a simple and low-tech monster-bashing maze game. # Copyright (C) 2004-2008 Kent Dahl # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. # ############################################################ The Debian packaging is (C) 2008-2013, Joe Nahmias and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. debian/install0000644000000000000000000000041212162047412010553 0ustar magicmaze/ usr/lib/ruby/vendor_ruby/ data/sound usr/share/magicmaze/ data/maps usr/share/magicmaze/ data/gfx/*.pcx usr/share/magicmaze/gfx/ data/gfx/*.dat usr/share/magicmaze/gfx/ data/gfx/*.png usr/share/magicmaze/gfx/ debian/magicmaze.xpm usr/share/pixmaps/ debian/docs0000644000000000000000000000002112161565161010036 0ustar README.TXT doc/* debian/control0000644000000000000000000000131412162050334010564 0ustar Source: magicmaze Section: games Priority: extra Maintainer: Joe Nahmias Build-Depends: debhelper (>= 9) Standards-Version: 3.9.4 Homepage: http://magicmaze.rubyforge.org/ Package: magicmaze Architecture: all Depends: ruby | ruby-interpreter, ruby-sdl, ttf-isabella, ${misc:Depends} Description: rescue the maiden while avoiding the monsters This is a simple game where you are a wizard searching the evil demon's tower to try and rescue the beautiful maiden. Inspired by Gauntlet II, your goal is to avoid/kill the monsters while trying to find the exit and, eventually, the big boss who is holding your girlfriend captive. Includes support for playing in full-screen and with a joystick. debian/README.source0000644000000000000000000000050512162054245011346 0ustar magicmaze for Debian -------------------- Patches are stored in standard format for 3.0 (quilt) packages. Source has been repackaged from original to remove non-dfsg-free files. This has been automated and can be run using `debian/rules get-orig-source` -- Joe Nahmias Mon, 24 Jun 2013 10:31:02 -0400 debian/magicmaze.xpm0000644000000000000000000000263112161565161011657 0ustar /* XPM */ static char *magicmaze[] = { /* columns rows colors chars-per-pixel */ "29 31 20 1", " c #221718", ". c #881718", "X c #B21718", "o c #E21718", "O c #FF1718", "+ c #43AF18", "@ c #88E618", "# c #FFFF18", "$ c #3403A2", "% c #3E17E4", "& c #4F17FB", "* c #5B17FF", "= c #6D17FF", "- c #8817E9", "; c #8117FF", ": c #8E17FF", "> c #A317FF", ", c #B217FF", "< c #C917FF", "1 c #E217FF", /* pixels */ "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$", "$$$$$$$$$$$$OOOOO$$$$$$$$$$$$", "$$$$$$$$$$OO OO$$$$$$$$$$", "$$$$$$$$$O O$$$$$$$$$", "$$$$$$$$$O ++ ++ O$$$$$$$$$", "$$$$$$$$$O +#@ @#+ O$$$$$$$$$", "$$$$$$$$$.O O.$$$$$$$$$", "$$$$$$*$$.O O.$$*$$$$$$", "$$$$$$=$..O O..$=$$$$$$", "$$$$$O;Ooo.O O.ooO;O$$$$$", "$$$$* : *ooO Ooo* : *$$$$", "$$$O ;>; OX.O O.XO ;>; O$$$", "$*=;:><>:;=*.O O.*=;:><>:;=*$", "$$$O ;>; OXX..O..XXO ;>; O$$$", "$$$O* : *OXXX.%.XXXO* : *O$$$", "$$$$O ; OXXXX.%.XXXXO ; O$$$$", "$$$$O = OXXXX.%.XXXXO = O$$$$", "$$$$O * OXXXX.%.XXXXO * O$$$$", "$$$$$O O$oXXX.%.XXXo$O O$$$$$", "$$$$$O O$oXX-.%.-XXo$O O$$$$$", "$$$$$$O$$1,,&.%.&,,1$$O$$$$$$", "$$$$$$O$$=**-.%.-**=$$O$$$$$$", "$$$$$$$$$1,,X.%.X,,1$$$$$$$$$", "$$$$$$$$$oXXX.%.XXXo$$$$$$$$$", "$$$$$$$$$oXXX.%.XXXo$$$$$$$$$", "$$$$$$$$oXXXX.%.XXXXo$$$$$$$$", "$$$$$$$$oXXXX.%.XXXXo$$$$$$$$", "$$$$$$$oXXXXX.%.XXXXXo$$$$$$$", "$$$$$$oXXXXXX.%.XXXXXXo$$$$$$", "$$$$$oooooooo.$.oooooooo$$$$$", "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$" }; debian/magicmaze.60000644000000000000000000000367112161565161011225 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH MAGICMAZE 6 "July 20, 2008" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME magicmaze \- simple monster-bashing game .SH SYNOPSIS .B magicmaze .RI [ options ] .SH DESCRIPTION This manual page documents briefly the .B magicmaze command. .PP \fBmagicmaze\fP is a simple and low-tech monster-bashing maze game. It was originally inspired by playing Gauntlet II on the Atari ST. .SH OPTIONS These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. .TP .B \-D, \-\-savedir \fIdir\fP Specify the directory for the saved game. The default is .IB $HOME /.magicmaze .TP .B \-f, \-\-fullscreen Start in full-screen mode. .TP .B \-h, \-\-help Show summary of options. .TP .B \-j, \-\-joystick \fP[\fI#\fP] Enable joystick mode, optionally specifying which joystick to use. .TP .B \-L, \-\-loadgame Load and continue playing saved game. .TP .B \-l, \-\-level \fI1-10\fP Start on a particular level. .TP .B \-S, \-\-nosound Disables the sound output. .TP .B \-s, \-\-scale \fI1-5\fP Specify graphical resolution scaling. .TP .B \-v, \-\-volume \fI1-10\fP Set the volume of the sound. .SH AUTHOR \fBmagicmaze\fP was written by Kent Dahl . .PP This manual page was written by Joe Nahmias , for the Debian project (but may be used by others). debian/menu0000644000000000000000000000022412161565161010057 0ustar ?package(magicmaze):needs="X11" section="Games/Action" title="Magic Maze"\ command="/usr/games/magicmaze" icon="/usr/share/pixmaps/magicmaze.xpm" debian/rules0000755000000000000000000000114512162053302010241 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 #export DH_OPTIONS=-v get-orig-source: rm -f magicmaze-1_4_3_6.tar.gz magicmaze-1_4_3_6.tar magicmaze-1.4.3.6+dfsg.tar magicmaze-1.4.3.6+dfsg.tar.gz wget http://rubyforge.org/frs/download.php/56121/magicmaze-1_4_3_6.tar.gz gunzip magicmaze-1_4_3_6.tar.gz tar --delete --wildcards -f magicmaze-1_4_3_6.tar *fraktmod.* mv magicmaze-1_4_3_6.tar magicmaze_1.4.3.6+dfsg.orig.tar gzip --best magicmaze_1.4.3.6+dfsg.orig.tar override_dh_install: dh_install cp -a mm.rb $(CURDIR)/debian/magicmaze/usr/games/magicmaze %: dh $@ debian/dirs0000644000000000000000000000001212161565161010047 0ustar usr/games debian/compat0000644000000000000000000000000212162042051010355 0ustar 9 debian/changelog0000644000000000000000000000340312163705363011046 0ustar magicmaze (1.4.3.6+dfsg-2) unstable; urgency=low * fix crash when pausing the game * fix mangling in d/watch -- Joe Nahmias Sat, 29 Jun 2013 21:25:55 -0400 magicmaze (1.4.3.6+dfsg-1) unstable; urgency=low * New upstream release + fixes display of help screen, closes: #583274. * Convert patches from dpatch to quilt * Switch to dpkg-source 3.0 (quilt) format, closes: #670383. * Bump to debhelper level 9 * Minimize d/rules using dh(1) * Bump copyright years * Bump std. version to 3.9.4, no changes needed. * add README.source to document how to recreate dfsg-free tarball -- Joe Nahmias Mon, 24 Jun 2013 10:33:20 -0400 magicmaze (1.4.3.2.dfsg-1.1) unstable; urgency=low * Non-maintainer upload. * Fix "magicmaze searches for Isabella.ttf in wrong place, crashes.": - add patch 20_isabella.dpatch: adjust fontfile variable to point to new location of Isabella.ttf - debian/control: make dependency on ttf-isabella versioned Thanks to Raphael Wimmer for the bug report. (Closes: #653953) -- gregor herrmann Sun, 22 Jan 2012 16:33:43 +0100 magicmaze (1.4.3.2.dfsg-1) unstable; urgency=low * The "Now with DFSG-free orig tarball!" release * Removed Fraktur Modern font from upstream tarball since it's not dfsg-free (non-commercial only, no source). * Add get-orig-source target which automates this -- Joe Nahmias Thu, 24 Jul 2008 21:02:17 -0400 magicmaze (1.4.3.2-1) unstable; urgency=low * Initial release, closes: #491597. * Patch file paths to follow FHS instead of assuming current dir. * Don't install non-free fraktmod font, use ttf-isabella instead. -- Joe Nahmias Tue, 22 Jul 2008 23:47:26 -0400 debian/source/0000755000000000000000000000000012162042645010470 5ustar debian/source/format0000644000000000000000000000001412162037566011704 0ustar 3.0 (quilt)