Skip to content

Commit

Permalink
Merge pull request #4910 from vitorgalvao/simplify-update-versioned-link
Browse files Browse the repository at this point in the history
Simplified update process for casks that have a version number in link stanza
  • Loading branch information
vitorgalvao committed Jun 24, 2014
2 parents b4fd9ac + 4edbe15 commit 2738bd1
Show file tree
Hide file tree
Showing 32 changed files with 169 additions and 108 deletions.
8 changes: 5 additions & 3 deletions Casks/aria-maestosa.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class AriaMaestosa < Cask
url 'https://downloads.sourceforge.net/sourceforge/ariamaestosa/AriaMaestosa-osx-1.4.9.zip'
homepage 'http://ariamaestosa.sourceforge.net'
version '1.4.9'
sha256 '3a8d8bc625a6e27b2312ff1c008e78b64c94faa5ef263c85c6005e72a98ec1bf'
link 'AriaMaestosa-1.4.9/Aria Maestosa.app'

url "https://downloads.sourceforge.net/sourceforge/ariamaestosa/AriaMaestosa-osx-#{version}.zip"
homepage 'http://ariamaestosa.sourceforge.net'

link "AriaMaestosa-#{version}/Aria Maestosa.app"
end
8 changes: 5 additions & 3 deletions Casks/bluej.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class Bluej < Cask
url 'http://www.bluej.org/download/files/BlueJ-311.zip'
homepage 'http://www.bluej.org'
version '3.1.1'
sha256 '63be0772de6d35d3627db9c8ea1b26efbee08ba3e105ca51fd3a9809f09f8c39'
link 'BlueJ 3.1.1/BlueJ.app'

url "http://www.bluej.org/download/files/BlueJ-#{version.gsub('.', '')}.zip"
homepage 'http://www.bluej.org'

link "BlueJ #{version}/BlueJ.app"
end
10 changes: 6 additions & 4 deletions Casks/bowtie.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
class Bowtie < Cask
url 'http://bowtieapp.com/bowtie-1.5.zip'
appcast 'http://updates.13bold.com/appcasts/bowtie'
homepage 'http://bowtieapp.com/'
version '1.5'
sha256 'd8406b066851c0730ca052036bedd5ded82019403de1fd58b579da34cfa4a948'
link 'Bowtie 1.5/Bowtie.app'

url "http://bowtieapp.com/bowtie-#{version}.zip"
appcast 'http://updates.13bold.com/appcasts/bowtie'
homepage 'http://bowtieapp.com/'

link "Bowtie #{version}/Bowtie.app"
end
8 changes: 5 additions & 3 deletions Casks/brogue.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class Brogue < Cask
url 'https://sites.google.com/site/broguegame/Brogue%20OS%20X%2010.6%2B%20v1.7.3.zip?attredirects=0&d=1'
homepage 'https://sites.google.com/site/broguegame/'
version '1.7.3'
sha256 'a8b6cc384bc0d7a63c60c7675a43fc672d621d03d5eb400b11749a1b1b5ca78f'
link 'Brogue v1.7.3/Brogue.app'

url "https://sites.google.com/site/broguegame/Brogue%20OS%20X%2010.6%2B%20v#{version}.zip?attredirects=0&d=1"
homepage 'https://sites.google.com/site/broguegame/'

link "Brogue v#{version}/Brogue.app"
end
8 changes: 5 additions & 3 deletions Casks/camed.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class Camed < Cask
url 'https://downloads.sourceforge.net/sourceforge/camprocessor/CAMEd-3.1.1-macosx-cocoa-x86_64.tar.gz'
homepage 'http://sourceforge.net/apps/mediawiki/camprocessor/index.php?title=Main_Page'
version '3.1.1'
sha256 'c9088796b6f5cee228341e2ec6c2ee0ff3e3a506ff0dde3643865ccbc9c4f744'
link 'CAMEd-3.1.1/CAMed.app'

url "https://downloads.sourceforge.net/sourceforge/camprocessor/CAMEd-#{version}-macosx-cocoa-x86_64.tar.gz"
homepage 'http://sourceforge.net/apps/mediawiki/camprocessor/index.php?title=Main_Page'

link "CAMEd-#{version}/CAMed.app"
end
8 changes: 5 additions & 3 deletions Casks/camranger.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class Camranger < Cask
url 'http://www.camranger.com/downloadFiles/CamRanger_1_7.zip'
homepage 'http://www.camranger.com/downloads/#fbox_5594'
version '1.7'
sha256 '1b00c6315a3bd7766f8cc3855a06853be83e355e34d4fdb80c69e88571bbaef8'
link '1.7/CamRanger.app'

url "http://www.camranger.com/downloadFiles/CamRanger_#{version.gsub('.', '_')}.zip"
homepage 'http://www.camranger.com/downloads/#fbox_5594'

link "#{version}/CamRanger.app"
end
10 changes: 6 additions & 4 deletions Casks/cd-to.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class CdTo < Cask
url 'https://github.com/jbtule/cdto/releases/download/2_6_0/cdto_2_6.zip'
homepage 'https://github.com/jbtule/cdto'
version '2.6'
version '2.6.0'
sha256 'a92def521d332a373f655a41338d0ec18dfaa6e24eb9ec2ca6df281398db3d46'
link 'cdto_2_6/terminal/cd to.app'

url "https://github.com/jbtule/cdto/releases/download/#{version.gsub('.', '_')}/cdto_#{version.gsub('.', '_').gsub(/_\d$/, '')}.zip"
homepage 'https://github.com/jbtule/cdto'

link "cdto_#{version.gsub('.', '_').gsub(/_\d$/, '')}/terminal/cd to.app"
end
8 changes: 5 additions & 3 deletions Casks/clix.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class Clix < Cask
url 'ftp://rixstep.com/CLIX.tar.bz2'
homepage 'http://rixstep.com/4/0/clix/index.shtml'
version '2.1'
sha256 'a4f9d270792e9da698326924e4c899c7a5f13f157c7793b82187688f8c189008'
link 'CLIX2.1/CLIX.app'

url 'ftp://rixstep.com/CLIX.tar.bz2'
homepage 'http://rixstep.com/4/0/clix/index.shtml'

link "CLIX#{version}/CLIX.app"
end
10 changes: 6 additions & 4 deletions Casks/fs-uae.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
class FsUae < Cask
url 'http://fs-uae.net/fs-uae/stable/2.2.3/fs-uae-plus-2.2.3-macosx.tar.gz'
homepage 'http://fs-uae.net/'
version '2.2.3'
sha256 '3e949a673fb44abd8c788aa70361315fb7fb389575966dddee89f66fbda354ca'
link 'fs-uae-2.2.3-macosx/FS-UAE.app'
link 'fs-uae-2.2.3-macosx/FS-UAE Launcher.app'

url "http://fs-uae.net/fs-uae/stable/#{version}/fs-uae-plus-#{version}-macosx.tar.gz"
homepage 'http://fs-uae.net/'

link "fs-uae-#{version}-macosx/FS-UAE.app"
link "fs-uae-#{version}-macosx/FS-UAE Launcher.app"
end
17 changes: 9 additions & 8 deletions Casks/golly.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
class Golly < Cask
version '2.6'

if MacOS.version == :mavericks
url 'http://downloads.sourceforge.net/project/golly/golly/golly-2.6/golly-2.6-mac109.zip'
version '2.6'
url "http://downloads.sourceforge.net/project/golly/golly/golly-#{version}/golly-#{version}-mac109.zip"
sha256 '360c1e279d89fc3a19bed9c75dfe5b1085a67672490f17fe38941cab3680b983'
link 'golly-2.6-mac109/Golly.app'
binary 'golly-2.6-mac109/bgolly'
link "golly-#{version}-mac109/Golly.app"
binary "golly-#{version}-mac109/bgolly"
else
url 'http://downloads.sourceforge.net/project/golly/golly/golly-2.6/golly-2.6-mac106.zip/'
version '2.6'
url "http://downloads.sourceforge.net/project/golly/golly/golly-#{version}/golly-#{version}-mac106.zip/"
sha256 '6fee35e8e4f63ee2c1b0913b7e8009b2548c4e4469050f9c31791900e1e97f16'
link 'golly-2.6-mac106/Golly.app'
binary 'golly-2.6-mac106/bgolly'
link "golly-#{version}-mac106/Golly.app"
binary "golly-#{version}-mac106/bgolly"
end

homepage 'http://golly.sourceforge.net/'
caveats do
files_in_usr_local
Expand Down
8 changes: 5 additions & 3 deletions Casks/igetter.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class Igetter < Cask
url 'http://www.igetter.net/search/downloads/iGetter2.9.2.dmg'
homepage 'http://www.igetter.net/'
version '2.9.2'
sha256 '86fd84cbd16ad975e586498cad89a7784087a62e11ba969000a1d48a0b634461'
link 'iGetter 2.9.2/iGetter.app'

url "http://www.igetter.net/search/downloads/iGetter#{version}.dmg"
homepage 'http://www.igetter.net/'

link "iGetter #{version}/iGetter.app"
end
8 changes: 5 additions & 3 deletions Casks/imagemin.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class Imagemin < Cask
url 'https://github.com/kevva/imagemin-app/releases/download/0.1.0/imagemin-app-v0.1.0-darwin.zip'
homepage 'https://github.com/kevva/imagemin-app'
version '0.1.0'
sha256 '8a4304d37eaa8a71fbeb550aece6a80c98dbcdf7a9fb6eb09faae1ad93df40d6'
link 'imagemin-app-v0.1.0-darwin/Atom.app', :target => 'imagemin.app'

url "https://github.com/kevva/imagemin-app/releases/download/#{version}/imagemin-app-v#{version}-darwin.zip"
homepage 'https://github.com/kevva/imagemin-app'

link "imagemin-app-v#{version}-darwin/Atom.app', :target => 'imagemin.app"
end
8 changes: 5 additions & 3 deletions Casks/itsycal.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class Itsycal < Cask
url 'https://s3.amazonaws.com/itsycal/Itsycal-0.8.0.zip'
homepage 'http://www.mowglii.com/itsycal/'
version '0.8.0'
sha256 '20c2f650c2ffe6b69d508d620ef620010a729b0c7e9766380ba737236aed5aa6'
link 'Itsycal 0.8.0/Itsycal.app'

url "https://s3.amazonaws.com/itsycal/Itsycal-#{version}.zip"
homepage 'http://www.mowglii.com/itsycal/'

link "Itsycal #{version}/Itsycal.app"
end
8 changes: 5 additions & 3 deletions Casks/jaspersoft-studio.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
class JaspersoftStudio < Cask
url 'https://downloads.sourceforge.net/project/jasperstudio/JaspersoftStudio-5.5.1/jaspersoftstudio-5.5.1.final-mac-x86_64.dmg'
homepage 'http://community.jaspersoft.com/project/jaspersoft-studio'
version '5.5.1'
sha256 '05294e98a9c11e0e5ffb03c68da5fab4e738c6060fcc8bcca674848d67c5dd7c'
link 'Jaspersoft Studio 5.5.1.final/Jaspersoft Studio.app'

url "https://downloads.sourceforge.net/project/jasperstudio/JaspersoftStudio-#{version}/jaspersoftstudio-#{version}.final-mac-x86_64.dmg"
homepage 'http://community.jaspersoft.com/project/jaspersoft-studio'

link "Jaspersoft Studio #{version}.final/Jaspersoft Studio.app"
caveats do
arch_only 'intel-64'
end
Expand Down
8 changes: 5 additions & 3 deletions Casks/jdiskreport.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class Jdiskreport < Cask
url 'http://www.jgoodies.com/download/jdiskreport/jdiskreport-1_4_1-mac.zip'
homepage 'http://www.jgoodies.com/freeware/jdiskreport/'
version '1.4.1'
sha256 'cb64f3d7ea8e43b142a69cabdded832b8de8e503766ccf1c7a16b314d2bc0d44'
link 'JDiskReport 1.4.1/JDiskReport.app'

url "http://www.jgoodies.com/download/jdiskreport/jdiskreport-#{version.gsub('.', '_')}-mac.zip"
homepage 'http://www.jgoodies.com/freeware/jdiskreport/'

link "JDiskReport #{version}/JDiskReport.app"
end
8 changes: 5 additions & 3 deletions Casks/mactubes.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class Mactubes < Cask
url 'http://macapps.sakura.ne.jp/mactubes/archives/MacTubes_v3.1.6.zip'
homepage 'http://macapps.sakura.ne.jp/mactubes/index_en.html'
version '3.1.6'
sha256 'd3fbe0ee7fb95c1eea0f70b84140a816561601f0a1f36ba2b16ba63bfa57cd19'
link 'MacTubes_v3.1.6/MacTubes.app'

url "http://macapps.sakura.ne.jp/mactubes/archives/MacTubes_v#{version}.zip"
homepage 'http://macapps.sakura.ne.jp/mactubes/index_en.html'

link "MacTubes_v#{version}/MacTubes.app"
end
10 changes: 6 additions & 4 deletions Casks/max.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
class Max < Cask
url 'http://files.sbooth.org/Max-0.9.1.tar.bz2'
appcast 'http://sbooth.org/Max/appcast.xml'
homepage 'http://sbooth.org/Max/'
version '0.9.1'
sha256 '722bf714696d3d39329ba98ffddc9f117f8cc6863f71670507cd12f62a5e5f14'
link 'Max-0.9.1/Max.app'

url "http://files.sbooth.org/Max-#{version}.tar.bz2"
appcast 'http://sbooth.org/Max/appcast.xml'
homepage 'http://sbooth.org/Max/'

link "Max-#{version}/Max.app"
end
8 changes: 5 additions & 3 deletions Casks/menubar-countdown.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class MenubarCountdown < Cask
url 'https://s3.amazonaws.com/capablehands/downloads/MenubarCountdown-1.2.zip'
homepage 'http://capablehands.net/menubarcountdown'
version '1.2'
sha256 '4ee0a7a87dbd4013c461b59316c749a5f9a92160bdf6d90afb1ff029f9381c01'
link 'MenubarCountdown-1.2/Menubar Countdown.app'

url "https://s3.amazonaws.com/capablehands/downloads/MenubarCountdown-#{version}.zip"
homepage 'http://capablehands.net/menubarcountdown'

link "MenubarCountdown-#{version}/Menubar Countdown.app"
end
8 changes: 5 additions & 3 deletions Casks/milkytracker.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class Milkytracker < Cask
url 'http://www.milkytracker.org/files/milkytracker-0.90.86-osx_universal.zip'
homepage 'http://www.milkytracker.org/'
version '0.90.86'
sha256 '0029fe9a5e62d2b0db11fcbedb3c13997a4199259d1f36c55f966b0417d818b0'
link 'milkytracker-0.90.86-osx_universal/MilkyTracker.app'

url "http://www.milkytracker.org/files/milkytracker-#{version}-osx_universal.zip"
homepage 'http://www.milkytracker.org/'

link "milkytracker-#{version}-osx_universal/MilkyTracker.app"
end
10 changes: 6 additions & 4 deletions Casks/mp4tools.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
class Mp4tools < Cask
url 'http://www.emmgunn.com/downloads/mp4tools3.4.3.zip',
:referer => 'http://www.emmgunn.com/mp4tools/mp4toolsdownload.html'
homepage 'http://www.emmgunn.com/mp4tools/mp4toolshome.html'
version '3.4.3'
sha256 'f57adc460f9a6e14ccf807b07cfe1eec0b07689e88e70139a625ab3002fb4289'
link 'mp4tools3.4.3/MP4Tools.app'

url "http://www.emmgunn.com/downloads/mp4tools#{version}.zip",
:referer => 'http://www.emmgunn.com/mp4tools/mp4toolsdownload.html'
homepage 'http://www.emmgunn.com/mp4tools/mp4toolshome.html'

link "mp4tools#{version}/MP4Tools.app"
end
8 changes: 5 additions & 3 deletions Casks/netlogo.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class Netlogo < Cask
url 'https://ccl.northwestern.edu/netlogo/5.0.5/NetLogo%205.0.5.dmg'
homepage 'http://ccl.northwestern.edu/netlogo/'
version '5.0.5'
sha256 '317faad5fadff9bababce580d9c72d74a491ec81de5129529a5d2f4dd8241ebf'
link 'NetLogo 5.0.5/NetLogo 5.0.5.app'

url "https://ccl.northwestern.edu/netlogo/#{version}/NetLogo%20#{version}.dmg"
homepage 'http://ccl.northwestern.edu/netlogo/'

link "NetLogo #{version}/NetLogo #{version}.app"
end
10 changes: 6 additions & 4 deletions Casks/neu.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
class Neu < Cask
url 'http://downloads.elegantchaos.com/neu/neu-v1.2.1.zip'
appcast 'http://sparkle.elegantchaos.com/neu/appcast.xml'
homepage 'http://www.elegantchaos.com/neu/'
version '1.2.1'
sha256 '7d46be5ae865882553887f0942fe7d441b71b70a4ad593d3f72c897c47642552'
link 'neu-v1.2.1/Neu.app'

url "http://downloads.elegantchaos.com/neu/neu-v#{version}.zip"
appcast 'http://sparkle.elegantchaos.com/neu/appcast.xml'
homepage 'http://www.elegantchaos.com/neu/'

link "neu-v#{version}/Neu.app"
end
10 changes: 6 additions & 4 deletions Casks/opensong.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
class Opensong < Cask
url 'https://downloads.sourceforge.net/sourceforge/opensong/OpenSongOSX-V2.1.1.dmg'
homepage 'http://www.opensong.org/'
version '2.1.1'
sha256 '7663e04a1ae46aec948fad9e80cd8966c5a006744b9da42bc85cca4bb4dda4bc'
link 'OpenSong V2.1.1/OpenSongOSX-Cocoa.app'
link 'Opensong V2.1.1/OpenSongOSX.app'

url "https://downloads.sourceforge.net/sourceforge/opensong/OpenSongOSX-V#{version}.dmg"
homepage 'http://www.opensong.org/'

link "OpenSong V#{version}/OpenSongOSX-Cocoa.app"
link "Opensong V#{version}/OpenSongOSX.app"
end
8 changes: 5 additions & 3 deletions Casks/pixel-check.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class PixelCheck < Cask
url 'http://macguitar.me/apps/pixelcheck/PXC1.3.zip'
homepage 'http://macguitar.me/apps/pixelcheck/'
version '1.3'
sha256 '99da44c4538463c6476be2f7d6584a4e5a9bfa175895d72e5baf1f3271316b02'
link 'PiXel Check 1.3/PiXel Check.app'

url "http://macguitar.me/apps/pixelcheck/PXC#{version}.zip"
homepage 'http://macguitar.me/apps/pixelcheck/'

link "PiXel Check #{version}/PiXel Check.app"
end
8 changes: 5 additions & 3 deletions Casks/platypus.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class Platypus < Cask
url 'http://sveinbjorn.org/files/software/platypus.zip'
homepage 'http://sveinbjorn.org/platypus'
version '4.8'
sha256 '754d9153b92e32faf7e56a4e181de59c6f0b72b3208663042a22e1767d87cb05'
link 'Platypus-4.8/Platypus.app'

url 'http://sveinbjorn.org/files/software/platypus.zip'
homepage 'http://sveinbjorn.org/platypus'

link "Platypus-#{version}/Platypus.app"
end
8 changes: 5 additions & 3 deletions Casks/rocks-n-diamonds.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class RocksNDiamonds < Cask
url 'http://www.artsoft.org/RELEASES/macosx/rocksndiamonds/rocksndiamonds-3.3.1.2.dmg'
homepage 'http://www.artsoft.org/rocksndiamonds/'
version '3.3.1.2'
sha256 '5405786ac296e4052e25f26a2a200a01d49e9c0ae77070a9b94ecbce893ae543'
link "Rocks'n'Diamonds 3.3.1.2/Rocks'n'Diamonds.app"

url "http://www.artsoft.org/RELEASES/macosx/rocksndiamonds/rocksndiamonds-#{version}.dmg"
homepage 'http://www.artsoft.org/rocksndiamonds/'

link "Rocks'n'Diamonds #{version}/Rocks'n'Diamonds.app"
end
10 changes: 6 additions & 4 deletions Casks/simpletag.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class Simpletag < Cask
url 'https://sourceforge.net/projects/simpletag/files/latest/download'
version '1.5.8'
sha256 'dcd183808fa09dd15d7ec9c1050fee7588e59b9bbaa8cd0fd49e337d2ed2028a'

url "http://downloads.sourceforge.net/sourceforge/simpletag/simpletag-gui-#{version}-osx.zip"
homepage 'http://sourceforge.net/projects/simpletag/'
version 'latest'
sha256 :no_check
link 'simpletag-gui-jface-1.5.3/SimpleTAG-GUI.app'

link "simpletag-gui-jface-#{version}/SimpleTAG-GUI.app"
end
8 changes: 5 additions & 3 deletions Casks/sloth.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
class Sloth < Cask
url 'http://sveinbjorn.org/files/software/sloth.zip'
homepage 'http://sveinbjorn.org/sloth'
version '1.5'
sha256 '01f8f9fec88d5bc0cb0edcf7391d5ed0ac085f7fa8dcb6682059a238d7786165'
link 'Sloth-1.5/Sloth.app'

url 'http://sveinbjorn.org/files/software/sloth.zip'
homepage 'http://sveinbjorn.org/sloth'

link "Sloth-#{version}/Sloth.app"
end
Loading

0 comments on commit 2738bd1

Please sign in to comment.