diff --git a/Casks/aquamacs.rb b/Casks/aquamacs.rb new file mode 100644 index 000000000..8451c91f1 --- /dev/null +++ b/Casks/aquamacs.rb @@ -0,0 +1,5 @@ +class Aquamacs < Cask + url 'http://downloads.sourceforge.net/project/aquamacs/Releases/Aquamacs-Emacs-2.4.dmg' + homepage 'http://aquamacs.org/' + version '2.4' +end diff --git a/Casks/arq.rb b/Casks/arq.rb new file mode 100644 index 000000000..f20e853d2 --- /dev/null +++ b/Casks/arq.rb @@ -0,0 +1,5 @@ +class Arq < Cask + url 'http://www.haystacksoftware.com/arq/Arq.zip' + homepage 'http://www.haystacksoftware.com/arq/' + version 'latest' +end diff --git a/Casks/back-in-time.rb b/Casks/back-in-time.rb new file mode 100644 index 000000000..e7c81b935 --- /dev/null +++ b/Casks/back-in-time.rb @@ -0,0 +1,5 @@ +class BackInTime < Cask + url 'http://www.tri-edre.com/pub/files/backintime203.dmg' + homepage 'http://www.tri-edre.fr/english/backintime.html' + version '2.0.3' +end diff --git a/Casks/boot-x-changer.rb b/Casks/boot-x-changer.rb new file mode 100644 index 000000000..2f7d7fe9f --- /dev/null +++ b/Casks/boot-x-changer.rb @@ -0,0 +1,5 @@ +class BootXChanger < Cask + url 'http://namedfork.net/_media/bootxchanger_2.0.dmg' + homepage 'http://namedfork.net/bootxchanger' + version '2.0' +end diff --git a/Casks/colloquy.rb b/Casks/colloquy.rb new file mode 100644 index 000000000..823f0c802 --- /dev/null +++ b/Casks/colloquy.rb @@ -0,0 +1,6 @@ +class Colloquy < Cask + url 'http://colloquy.info/downloads/colloquy-2.4.zip' + homepage 'http://colloquy.info/' + version '2.4' +end + diff --git a/Casks/divvy.rb b/Casks/divvy.rb new file mode 100644 index 000000000..c83e5a1a7 --- /dev/null +++ b/Casks/divvy.rb @@ -0,0 +1,5 @@ +class Divvy < Cask + url 'http://mizage.com/downloads/Divvy.zip' + homepage 'http://mizage.com/divvy/' + version 'latest' +end diff --git a/Casks/fluid.rb b/Casks/fluid.rb new file mode 100644 index 000000000..95c50e9e2 --- /dev/null +++ b/Casks/fluid.rb @@ -0,0 +1,5 @@ +class Fluid < Cask + url 'http://fluidapp.com/dist/Fluid_1.6.1.zip' + homepage 'http://fluidapp.com/' + version '1.6.1' +end diff --git a/Casks/gimp.rb b/Casks/gimp.rb new file mode 100644 index 000000000..79567406f --- /dev/null +++ b/Casks/gimp.rb @@ -0,0 +1,5 @@ +class Gimp < Cask + url 'ftp://ftp.gimp.org/pub/gimp/v2.8/osx/gimp-2.8.2-dmg-2.dmg' + homepage 'http://www.gimp.org' + version '2.8.2' +end diff --git a/Casks/gitx-l.rb b/Casks/gitx-l.rb new file mode 100644 index 000000000..9fdcfa3b1 --- /dev/null +++ b/Casks/gitx-l.rb @@ -0,0 +1,6 @@ +class GitxL < Cask + url 'https://github.com/downloads/laullon/gitx/GitX-L_v0.8.4.zip' + homepage 'http://gitx.laullon.com/' + version '0.8.4' +end + diff --git a/Casks/gitx.rb b/Casks/gitx.rb new file mode 100644 index 000000000..11cede448 --- /dev/null +++ b/Casks/gitx.rb @@ -0,0 +1,6 @@ +class Gitx < Cask + url 'http://frim.frim.nl/GitXStable.app.zip' + homepage 'http://gitx.frim.nl/' + version 'latest' +end + diff --git a/Casks/google-chrome-canary.rb b/Casks/google-chrome-canary.rb new file mode 100644 index 000000000..eb443ab0b --- /dev/null +++ b/Casks/google-chrome-canary.rb @@ -0,0 +1,5 @@ +class GoogleChromeCanary < Cask + url 'https://storage.googleapis.com/chrome-canary/GoogleChromeCanary.dmg' + homepage 'https://tools.google.com/dlpage/chromesxs' + version 'latest' +end diff --git a/Casks/jumpcut.rb b/Casks/jumpcut.rb new file mode 100644 index 000000000..f66e70fee --- /dev/null +++ b/Casks/jumpcut.rb @@ -0,0 +1,6 @@ +class Jumpcut < Cask + url 'http://downloads.sourceforge.net/project/jumpcut/jumpcut/0.63/Jumpcut_0.63.tgz' + homepage 'http://jumpcut.sourceforge.net/' + version '0.63' +end + diff --git a/Casks/livestation.rb b/Casks/livestation.rb new file mode 100644 index 000000000..d387241d0 --- /dev/null +++ b/Casks/livestation.rb @@ -0,0 +1,5 @@ +class Livestation < Cask + url 'http://updates.livestation.com/releases/Livestation-3.2.0-intel.dmg' + homepage 'http://www.livestation.com' + version '3.2.0' +end diff --git a/Casks/moom.rb b/Casks/moom.rb new file mode 100644 index 000000000..895e4fdd1 --- /dev/null +++ b/Casks/moom.rb @@ -0,0 +1,6 @@ +class Moom < Cask + url 'http://manytricks.com/download/moom' + homepage 'http://manytricks.com/moom/' + version 'latest' +end + diff --git a/lib/cask/installer.rb b/lib/cask/installer.rb index b189132ec..021597436 100644 --- a/lib/cask/installer.rb +++ b/lib/cask/installer.rb @@ -41,7 +41,7 @@ class Cask::Installer ensure `rm -rf '#{destdir}'` end - elsif _tar_bzip?(path) + elsif _tar?(path) destdir = "/tmp/brewcask_#{@title}_extracted" `mkdir -p '#{destdir}'` `tar jxf '#{path}' -C '#{destdir}'` @@ -65,9 +65,18 @@ class Cask::Installer output.chomp.include? 'compressed-encoding=application/zip; charset=binary; charset=binary' end + def _tar?(path) + _tar_bzip?(path) || _tar_gzip?(path) + end + def _tar_bzip?(path) output = `file -Izb '#{path}'` output.chomp == 'application/x-tar; charset=binary compressed-encoding=application/x-bzip2; charset=binary; charset=binary' end + + def _tar_gzip?(path) + output = `file -Izb '#{path}'` + output.chomp == 'application/x-tar; charset=binary compressed-encoding=application/x-gzip; charset=binary; charset=binary' + end end end