Skip to content

Commit

Permalink
Use version conversions where possible. (Homebrew#2460)
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus authored and fanquake committed Aug 16, 2016
1 parent 68affb5 commit 53ebef0
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Casks/adobe-reader-de.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
version '11.0.00'
sha256 'fba620a52ab0073c53dca18dc29edeebfe3e534325b97bbcd2a318f3747b6a98'

url "http://ardownload.adobe.com/pub/adobe/reader/mac/#{version.major}.x/#{version}/de_DE/AdbeRdr#{version.gsub('.', '')}_de_DE.dmg"
url "http://ardownload.adobe.com/pub/adobe/reader/mac/#{version.major}.x/#{version}/de_DE/AdbeRdr#{version.no_dots}_de_DE.dmg"
name 'Adobe Reader'
homepage 'https://www.adobe.com/de/products/reader.html'
license :unknown # TODO: change license and remove this comment; ':unknown' is a machine-generated placeholder

pkg 'Adobe Reader XI Installer.pkg'

uninstall pkgutil: "com.adobe.acrobat.reader.#{version.gsub('.', '')}.*",
uninstall pkgutil: "com.adobe.acrobat.reader.#{version.no_dots}.*",
delete: '/Applications/Adobe Reader.app'

zap delete: [
Expand Down
4 changes: 2 additions & 2 deletions Casks/adobe-reader-fr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
version '11.0.00'
sha256 '528b3fae5b712d3bb115c5ca47e507eaa2f34008b6c8a1aab542aac8770b7f77'

url "http://ardownload.adobe.com/pub/adobe/reader/mac/#{version.major}.x/#{version}/fr_FR/AdbeRdr#{version.gsub('.', '')}_fr_FR.dmg"
url "http://ardownload.adobe.com/pub/adobe/reader/mac/#{version.major}.x/#{version}/fr_FR/AdbeRdr#{version.no_dots}_fr_FR.dmg"
name 'Adobe Reader'
homepage 'https://www.adobe.com/fr/products/reader.html'
license :unknown # TODO: change license and remove this comment; ':unknown' is a machine-generated placeholder

pkg 'Adobe Reader XI Installer.pkg'

uninstall pkgutil: "com.adobe.acrobat.reader.#{version.gsub('.', '')}.*",
uninstall pkgutil: "com.adobe.acrobat.reader.#{version.no_dots}.*",
delete: '/Applications/Adobe Reader.app'

zap delete: [
Expand Down
6 changes: 2 additions & 4 deletions Casks/adobe-reader-ja.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
version '11.0.00'
sha256 '69f71085799700ecd7e7f59e14095eafc5889e8962ed3a2e84e0a40d3a04d570'

major_version = version.split('.')[0]

url "http://ardownload.adobe.com/pub/adobe/reader/mac/#{major_version}.x/#{version}/ja_JP/AdbeRdr#{version.gsub('.', '')}_ja_JP.dmg"
url "http://ardownload.adobe.com/pub/adobe/reader/mac/#{version.major}.x/#{version}/ja_JP/AdbeRdr#{version.no_dots}_ja_JP.dmg"
name 'Adobe Reader'
homepage 'https://www.adobe.com/jp/products/reader.html'
license :closed

pkg 'Adobe Reader XI Installer.pkg'

uninstall pkgutil: "com.adobe.acrobat.reader.#{major_version}.*",
uninstall pkgutil: "com.adobe.acrobat.reader.#{version.major}.*",
delete: '/Applications/Adobe Reader.app'
end
4 changes: 2 additions & 2 deletions Casks/adobe-reader-pl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
version '11.0.00'
sha256 'cfeeef917cec3175ab7673c9afd9df081794d952c5e919e29a962df21e041b37'

url "http://ardownload.adobe.com/pub/adobe/reader/mac/#{version.major}.x/#{version}/pl_PL/AdbeRdr#{version.gsub('.', '')}_pl_PL.dmg"
url "http://ardownload.adobe.com/pub/adobe/reader/mac/#{version.major}.x/#{version}/pl_PL/AdbeRdr#{version.no_dots}_pl_PL.dmg"
name 'Adobe Reader'
homepage 'https://www.adobe.com/pl/products/reader.html'
license :gratis

pkg 'Adobe Reader XI Installer.pkg'

uninstall pkgutil: "com.adobe.acrobat.reader.#{version.gsub('.', '')}.*",
uninstall pkgutil: "com.adobe.acrobat.reader.#{version.no_dots}.*",
delete: '/Applications/Adobe Reader.app'

zap delete: [
Expand Down
4 changes: 2 additions & 2 deletions Casks/adobe-reader-pt-br.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
version '11.0.00'
sha256 '432b83f2d895c42c496226214e5b700e1ee078bc03b4501500b9a783d63e4dad'

url "http://ardownload.adobe.com/pub/adobe/reader/mac/#{version.major}.x/#{version}/pt_BR/AdbeRdr#{version.gsub('.', '')}_pt_BR.dmg"
url "http://ardownload.adobe.com/pub/adobe/reader/mac/#{version.major}.x/#{version}/pt_BR/AdbeRdr#{version.no_dots}_pt_BR.dmg"
name 'Adobe Reader'
homepage 'https://www.adobe.com/br/products/reader.html'
license :gratis

pkg 'Adobe Reader XI Installer.pkg'

uninstall pkgutil: "com.adobe.acrobat.reader.#{version.gsub('.', '')}.*",
uninstall pkgutil: "com.adobe.acrobat.reader.#{version.no_dots}.*",
delete: '/Applications/Adobe Reader.app'

zap delete: [
Expand Down
2 changes: 1 addition & 1 deletion Casks/scansnap-manager-sv600.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version '6.2L10'
sha256 '7273034398e9a57eb0fa89167c9e801ad2bf9fe56b52b3d9591628e978168afb'

url "https://www.fujitsu.com/downloads/IMAGE/driver/ss/mgr/m-sv600/MacScanSnapV#{version.gsub('.', '')}WW.dmg"
url "https://www.fujitsu.com/downloads/IMAGE/driver/ss/mgr/m-sv600/MacScanSnapV#{version.no_dots}WW.dmg"
name 'ScanSnap Manager for Fujitsu ScanSnap SV600'
homepage 'https://www.fujitsu.com/global/support/computing/peripheral/scanners/software/'
license :gratis
Expand Down

0 comments on commit 53ebef0

Please sign in to comment.