From ce00cb4c11c2a5b72f6079fa9e6b2730bb6525e2 Mon Sep 17 00:00:00 2001 From: Marius Bergmann Date: Sat, 24 Jan 2015 13:11:04 +0100 Subject: [PATCH 1/5] Add Scansnap Manager for S1300 --- Casks/scansnap-manager-s1300.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Casks/scansnap-manager-s1300.rb diff --git a/Casks/scansnap-manager-s1300.rb b/Casks/scansnap-manager-s1300.rb new file mode 100644 index 000000000..1161c473a --- /dev/null +++ b/Casks/scansnap-manager-s1300.rb @@ -0,0 +1,15 @@ +cask :v1 => 'scansnap-manager-s1300' do + version '3.2L31' + sha256 '4bdc782e7b2d86c1a3c7e55ae6753440f208a9c92ac1c4290bc17e40ba2f5513' + + url 'http://www.fujitsu.com/downloads/IMAGE/driver/ss/mgr/m-s1300/ScanSnap.dmg' + name 'ScanSnap Manager for Fujitsu ScanSnap S1300' + homepage 'http://www.fujitsu.com/global/support/computing/peripheral/scanners/software/s1300m-setup.html' + license :commercial + + pkg 'Scansnap Manager.pkg' + + uninstall :pkgutil => 'jp.co.pfu.ScanSnap.V10L10' + + depends_on :macos => '>= :tiger' +end From acdd23440be4c0dacadc018b617ea58f8d97a3df Mon Sep 17 00:00:00 2001 From: Marius Bergmann Date: Mon, 26 Jan 2015 22:54:14 +0100 Subject: [PATCH 2/5] Rename existing scansnap-manager versions to reflect supported models --- ...ap-manager-s300m-s500m-s510m-fi-5110eoxm-legacy.rb} | 10 +++++++--- ...nager-v22l16.rb => scansnap-manager-s300m-s510m.rb} | 7 ++++--- 2 files changed, 11 insertions(+), 6 deletions(-) rename Casks/{scansnap-manager-v22l11.rb => scansnap-manager-s300m-s500m-s510m-fi-5110eoxm-legacy.rb} (67%) rename Casks/{scansnap-manager-v22l16.rb => scansnap-manager-s300m-s510m.rb} (78%) diff --git a/Casks/scansnap-manager-v22l11.rb b/Casks/scansnap-manager-s300m-s500m-s510m-fi-5110eoxm-legacy.rb similarity index 67% rename from Casks/scansnap-manager-v22l11.rb rename to Casks/scansnap-manager-s300m-s500m-s510m-fi-5110eoxm-legacy.rb index 44b1cbbb5..51cfdc287 100644 --- a/Casks/scansnap-manager-v22l11.rb +++ b/Casks/scansnap-manager-s300m-s500m-s510m-fi-5110eoxm-legacy.rb @@ -1,15 +1,18 @@ -cask :v1 => 'scansnap-manager-v22l11' do +cask :v1 => 'scansnap-manager-s300m-s500m-s510m-fi-5110eoxm-legacy' do version '2.2L11' sha256 '63d22a3ea7b01a32b0064bacad74dd82359ed366f5039d0fb6519e78cfee5beb' url 'http://www.fujitsu.com/downloads/IMAGE/driver/ss/ScanSnap_V22L11.dmg' - name 'ScanSnap Manager for Mac (V2.2L11)' + name 'ScanSnap Manager for Fujitsu ScanSnap S300M' + name 'ScanSnap Manager for Fujitsu ScanSnap S500M' + name 'ScanSnap Manager for Fujitsu ScanSnap S510M' + name 'ScanSnap Manager for Fujitsu ScanSnap fi-5110EOXM' homepage 'http://www.fujitsu.com/global/support/computing/peripheral/scanners/software/mac.html' license :commercial pkg 'ScanSnap_V22L11.pkg' - caveats "Install cask `scansnap-manager-v22l16` after to update for compatibility with OS X 10.6+" + caveats "Install cask `scansnap-manager-s300m-s510m` after to update for compatibility with OS X 10.6+" uninstall :pkgutil => 'jp.co.pfu.ScanSnap.V10L10', :quit => [ @@ -26,4 +29,5 @@ cask :v1 => 'scansnap-manager-v22l11' do 'jp.co.pfu.ScanSnap.V10L10' ] + depends_on :macos => [:tiger, :leopard] end diff --git a/Casks/scansnap-manager-v22l16.rb b/Casks/scansnap-manager-s300m-s510m.rb similarity index 78% rename from Casks/scansnap-manager-v22l16.rb rename to Casks/scansnap-manager-s300m-s510m.rb index d3fcc3a94..789509c59 100644 --- a/Casks/scansnap-manager-v22l16.rb +++ b/Casks/scansnap-manager-s300m-s510m.rb @@ -1,9 +1,10 @@ -cask :v1 => 'scansnap-manager-v22l16' do +cask :v1 => 'scansnap-manager-s300m-s510m' do version '2.2L16' sha256 'e67ce69636883acbdaaec40bb02d8f774c383aaa1c834a08c305a990c8a49436' url 'http://www.fujitsu.com/downloads/IMAGE/driver/ss/ScanSnap_V22L16.dmg' - name 'ScanSnap Manager for Mac Update (V2.2L16)' + name 'ScanSnap Manager for Fujitsu ScanSnap S300M (OS X 10.6+)' + name 'ScanSnap Manager for Fujitsu ScanSnap S510M (OS X 10.6+)' homepage 'http://www.fujitsu.com/global/support/computing/peripheral/scanners/software/mac-mg22-eol.html' license :commercial @@ -24,5 +25,5 @@ cask :v1 => 'scansnap-manager-v22l16' do 'jp.co.pfu.ScanSnap.V10L10' ] - depends_on :cask => 'scansnap-manager-v22l11' + depends_on :cask => 'scansnap-manager-s300m-s500m-s510m-fi-5110eoxm-legacy' end From 337b9237b967f0ba49f774c241d64bef3db48903 Mon Sep 17 00:00:00 2001 From: Marius Bergmann Date: Mon, 26 Jan 2015 22:57:32 +0100 Subject: [PATCH 3/5] Add ScanSnap manager for SV600 I moved this from the standard casks, as we wanted to keep the separate versions inside homebrew-versions to help the user choose the proper software by the model name of their scanner (see caskroom/homebrew-cask#8938). --- Casks/scansnap-manager-sv600.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Casks/scansnap-manager-sv600.rb diff --git a/Casks/scansnap-manager-sv600.rb b/Casks/scansnap-manager-sv600.rb new file mode 100644 index 000000000..ad33c7b80 --- /dev/null +++ b/Casks/scansnap-manager-sv600.rb @@ -0,0 +1,15 @@ +cask :v1 => 'scansnap-manager-sv600' do + version '6.2L10' + sha256 '7273034398e9a57eb0fa89167c9e801ad2bf9fe56b52b3d9591628e978168afb' + + url "https://www.fujitsu.com/downloads/IMAGE/driver/ss/mgr/m-sv600/MacScanSnapV#{version.gsub('.','')}WW.dmg" + name "ScanSnap Manager for Fujitsu ScanSnap SV600" + homepage 'http://www.fujitsu.com/global/support/computing/peripheral/scanners/software/' + license :commercial + + pkg 'ScanSnap Manager.pkg' + + uninstall :pkgutil => 'jp.co.pfu.ScanSnap.*' + + depends_on :macos => '>= :lion' +end From d8806818fe7d551074a5bf2ba403029e652c2267 Mon Sep 17 00:00:00 2001 From: Marius Bergmann Date: Tue, 27 Jan 2015 07:33:57 +0100 Subject: [PATCH 4/5] Add OS version dependency to scansnap-manager-s300m-s510m --- Casks/scansnap-manager-s300m-s510m.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Casks/scansnap-manager-s300m-s510m.rb b/Casks/scansnap-manager-s300m-s510m.rb index 789509c59..8f48138df 100644 --- a/Casks/scansnap-manager-s300m-s510m.rb +++ b/Casks/scansnap-manager-s300m-s510m.rb @@ -3,8 +3,8 @@ cask :v1 => 'scansnap-manager-s300m-s510m' do sha256 'e67ce69636883acbdaaec40bb02d8f774c383aaa1c834a08c305a990c8a49436' url 'http://www.fujitsu.com/downloads/IMAGE/driver/ss/ScanSnap_V22L16.dmg' - name 'ScanSnap Manager for Fujitsu ScanSnap S300M (OS X 10.6+)' - name 'ScanSnap Manager for Fujitsu ScanSnap S510M (OS X 10.6+)' + name 'ScanSnap Manager for Fujitsu ScanSnap S300M' + name 'ScanSnap Manager for Fujitsu ScanSnap S510M' homepage 'http://www.fujitsu.com/global/support/computing/peripheral/scanners/software/mac-mg22-eol.html' license :commercial @@ -26,4 +26,5 @@ cask :v1 => 'scansnap-manager-s300m-s510m' do ] depends_on :cask => 'scansnap-manager-s300m-s500m-s510m-fi-5110eoxm-legacy' + depends_on :macos => '>= :snow_leopard' end From 97e3898769dff6d7749750aba5543d804abafb5b Mon Sep 17 00:00:00 2001 From: Marius Bergmann Date: Tue, 27 Jan 2015 17:44:21 +0100 Subject: [PATCH 5/5] Change licenses for ScanSnap Manager casks Fujitsu offers a free download of the software and permits free usage on one machine at a time. The homebrew-cask `:commercial` stanza should be used for software, which is not freely available, as per https://github.com/caskroom/homebrew-cask/blob/master/doc/CASK_LANGUAGE_REFERENCE.md#license-stanza-details. Therefor, `:gratis` should be a better fit. --- Casks/scansnap-manager-s1300.rb | 2 +- Casks/scansnap-manager-s300m-s500m-s510m-fi-5110eoxm-legacy.rb | 2 +- Casks/scansnap-manager-s300m-s510m.rb | 2 +- Casks/scansnap-manager-sv600.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Casks/scansnap-manager-s1300.rb b/Casks/scansnap-manager-s1300.rb index 1161c473a..2074732ce 100644 --- a/Casks/scansnap-manager-s1300.rb +++ b/Casks/scansnap-manager-s1300.rb @@ -5,7 +5,7 @@ cask :v1 => 'scansnap-manager-s1300' do url 'http://www.fujitsu.com/downloads/IMAGE/driver/ss/mgr/m-s1300/ScanSnap.dmg' name 'ScanSnap Manager for Fujitsu ScanSnap S1300' homepage 'http://www.fujitsu.com/global/support/computing/peripheral/scanners/software/s1300m-setup.html' - license :commercial + license :gratis pkg 'Scansnap Manager.pkg' diff --git a/Casks/scansnap-manager-s300m-s500m-s510m-fi-5110eoxm-legacy.rb b/Casks/scansnap-manager-s300m-s500m-s510m-fi-5110eoxm-legacy.rb index 51cfdc287..3071aec0a 100644 --- a/Casks/scansnap-manager-s300m-s500m-s510m-fi-5110eoxm-legacy.rb +++ b/Casks/scansnap-manager-s300m-s500m-s510m-fi-5110eoxm-legacy.rb @@ -8,7 +8,7 @@ cask :v1 => 'scansnap-manager-s300m-s500m-s510m-fi-5110eoxm-legacy' do name 'ScanSnap Manager for Fujitsu ScanSnap S510M' name 'ScanSnap Manager for Fujitsu ScanSnap fi-5110EOXM' homepage 'http://www.fujitsu.com/global/support/computing/peripheral/scanners/software/mac.html' - license :commercial + license :gratis pkg 'ScanSnap_V22L11.pkg' diff --git a/Casks/scansnap-manager-s300m-s510m.rb b/Casks/scansnap-manager-s300m-s510m.rb index 8f48138df..ca485e047 100644 --- a/Casks/scansnap-manager-s300m-s510m.rb +++ b/Casks/scansnap-manager-s300m-s510m.rb @@ -6,7 +6,7 @@ cask :v1 => 'scansnap-manager-s300m-s510m' do name 'ScanSnap Manager for Fujitsu ScanSnap S300M' name 'ScanSnap Manager for Fujitsu ScanSnap S510M' homepage 'http://www.fujitsu.com/global/support/computing/peripheral/scanners/software/mac-mg22-eol.html' - license :commercial + license :gratis pkg 'ScanSnap_V22L16.pkg' diff --git a/Casks/scansnap-manager-sv600.rb b/Casks/scansnap-manager-sv600.rb index ad33c7b80..740343ba9 100644 --- a/Casks/scansnap-manager-sv600.rb +++ b/Casks/scansnap-manager-sv600.rb @@ -5,7 +5,7 @@ cask :v1 => 'scansnap-manager-sv600' do url "https://www.fujitsu.com/downloads/IMAGE/driver/ss/mgr/m-sv600/MacScanSnapV#{version.gsub('.','')}WW.dmg" name "ScanSnap Manager for Fujitsu ScanSnap SV600" homepage 'http://www.fujitsu.com/global/support/computing/peripheral/scanners/software/' - license :commercial + license :gratis pkg 'ScanSnap Manager.pkg'