Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Synth1 Audio Unit and VST #15644

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Casks/synth1-au.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cask :v1 => 'synth1-au' do
version '1.13beta8'
sha256 '78660848d78c19cdda2597bd050a2ec95fa915cc1a1ab598bde0192a1cbc9a6f'

url 'http://www.geocities.jp/daichi1969/softsynth/Synth1macau113beta8.zip'
name 'Synth1 (AU)'
name 'Synth 1 (AU)'
homepage 'http://www.geocities.jp/daichi1969/softsynth/'
license :gratis

audio_unit_plugin 'Synth1.component'
end
12 changes: 12 additions & 0 deletions Casks/synth1-vst.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cask :v1 => 'synth1-vst' do
version '1.13beta8'
sha256 '6b172b9433358bce21f0af75a28505c3365d934fadee04a738336e7f5f601675'

url 'http://www.geocities.jp/daichi1969/softsynth/Synth1macvst113beta8.zip'
name 'Synth1 (VST)'
name 'Synth 1 (VST)'
homepage 'http://www.geocities.jp/daichi1969/softsynth/'
license :gratis

vst_plugin 'Synth1.vst'
end
2 changes: 2 additions & 0 deletions doc/CASK_LANGUAGE_REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ Each Cask must declare one or more *artifacts* (i.e. something to install)
| `qlplugin` | yes | relative path to a QuickLook plugin that should be linked into the `~/Library/QuickLook` folder on installation
| `screen_saver` | yes | relative path to a Screen Saver that should be linked into the `~/Library/Screen Savers` folder on installation
| `service` | yes | relative path to a service that should be linked into the `~/Library/Services` folder on installation
| `audio_unit_plugin`| yes | relative path to an Audio Unit plugin that should be linked into the `~/Library/Audio/Components` folder on installation
| `vst_plugin` | yes | relative path to a VST plugin that should be linked into the `~/Library/Audio/VST` folder on installation
| `suite` | yes | relative path to a containing directory that should be linked into the `~/Applications` folder on installation (see also [Suite Stanza Details](#suite-stanza-details))
| `artifact` | yes | relative path to an arbitrary path that should be symlinked on installation. This is only for unusual cases. The `app` stanza is strongly preferred when linking `.app` bundles.
| `installer` | yes | describes an executable which must be run to complete the installation. (see [Installer Stanza Details](#installer-stanza-details))
Expand Down
10 changes: 8 additions & 2 deletions doc/src/brew-cask.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ names, and other aspects of this manual are still subject to change.
* `search` or `-S` <text> | /<regexp>/:
Perform a substring search of known Cask tokens for <text>. If the text
is delimited by slashes, it is interpreted as a Ruby regular expression.

* `uninstall [--force]` or `rm` or `remove` <token> [ <token> ... ]:
Uninstall the given Cask. With `--force`, uninstall even if the Cask
does not appear to be present.
Expand All @@ -105,7 +105,7 @@ names, and other aspects of this manual are still subject to change.
`uninstall` without `--force` is also imperfect. It may be unable to
perform an `uninstall` operation if the given Cask has changed since you
installed it. This issue is being addressed.

* `update`:
For convenience. `brew cask update` is a synonym for `brew update`.

Expand Down Expand Up @@ -166,6 +166,12 @@ in a future version.
* `--internet_plugindir=<path>`:
Target location for Internet Plugin links. The default value is `~/Library/Internet Plug-Ins`.

* `--audio_unit_plugindir=<path>`:
Target location for Audio Unit Plugin links. The default value is `~/Library/Audio/Plug-Ins/Components`.

* `--vst_plugindir=<path>`:
Target location for VST Plugin links. The default value is `~/Library/Audio/Plug-Ins/VST`.

* `--screen_saverdir=<path>`:
Target location for Screen Saver links. The default value is `~/Library/Screen Savers`.

Expand Down
4 changes: 4 additions & 0 deletions lib/hbc/artifact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ module Hbc::Artifact; end
require 'hbc/artifact/input_method'
require 'hbc/artifact/installer'
require 'hbc/artifact/internet_plugin'
require 'hbc/artifact/audio_unit_plugin'
require 'hbc/artifact/vst_plugin'
require 'hbc/artifact/nested_container'
require 'hbc/artifact/pkg'
require 'hbc/artifact/postflight_block'
Expand Down Expand Up @@ -49,6 +51,8 @@ def self.artifacts
Hbc::Artifact::Binary,
Hbc::Artifact::InputMethod,
Hbc::Artifact::InternetPlugin,
Hbc::Artifact::AudioUnitPlugin,
Hbc::Artifact::VstPlugin,
Hbc::Artifact::ScreenSaver,
Hbc::Artifact::Uninstall,
Hbc::Artifact::PostflightBlock,
Expand Down
3 changes: 3 additions & 0 deletions lib/hbc/artifact/audio_unit_plugin.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Hbc::Artifact::AudioUnitPlugin < Hbc::Artifact::Symlinked

end
3 changes: 3 additions & 0 deletions lib/hbc/artifact/vst_plugin.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Hbc::Artifact::VstPlugin < Hbc::Artifact::Symlinked

end
6 changes: 6 additions & 0 deletions lib/hbc/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ def self.parser
opts.on("--internet_plugindir=MANDATORY") do |v|
Hbc.internet_plugindir = Pathname(v).expand_path
end
opts.on("--audio_unit_plugindir=MANDATORY") do |v|
Hbc.audio_unit_plugindir = Pathname(v).expand_path
end
opts.on("--vst_plugindir=MANDATORY") do |v|
Hbc.vst_plugindir = Pathname(v).expand_path
end
opts.on("--screen_saverdir=MANDATORY") do |v|
Hbc.screen_saverdir = Pathname(v).expand_path
end
Expand Down
2 changes: 2 additions & 0 deletions lib/hbc/cli/internal_stanza.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class Hbc::CLI::InternalStanza < Hbc::CLI::InternalUseBase
:binary,
:input_method,
:internet_plugin,
:audio_unit_plugin,
:vst_plugin,
:screen_saver,
:pkg,
:installer,
Expand Down
2 changes: 2 additions & 0 deletions lib/hbc/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ def self.ordinary_artifact_types
:binary,
:input_method,
:internet_plugin,
:audio_unit_plugin,
:vst_plugin,
:screen_saver,
:pkg,
:stage_only,
Expand Down
16 changes: 16 additions & 0 deletions lib/hbc/locations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,22 @@ def internet_plugindir=(_internet_plugindir)
@internet_plugindir = _internet_plugindir
end

def audio_unit_plugindir
@audio_unit_plugindir ||= Pathname.new('~/Library/Audio/Plug-Ins/Components').expand_path
end

def audio_unit_plugindir=(_audio_unit_plugindir)
@audio_unit_plugindir = _audio_unit_plugindir
end

def vst_plugindir
@vst_plugindir ||= Pathname.new('~/Library/Audio/Plug-Ins/VST').expand_path
end

def vst_plugindir=(_vst_plugindir)
@vst_plugindir = _vst_plugindir
end

def screen_saverdir
@screen_saverdir ||= Pathname.new('~/Library/Screen Savers').expand_path
end
Expand Down