aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc
diff options
context:
space:
mode:
authorEitot2016-10-23 17:32:19 +0200
committerEitot2016-10-23 17:43:06 +0200
commit0b176f9cc8ee4f95271fc398b6e9a521bda9ebdb (patch)
tree65688fc105eb066ee98f0c5e81d6375d4e3476f0 /Library/Homebrew/cask/lib/hbc
parent773d20fb0c23439f3efbb9ecb1475c5cbe5b3957 (diff)
downloadbrew-0b176f9cc8ee4f95271fc398b6e9a521bda9ebdb.tar.bz2
Add dictionary artifact
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc')
-rw-r--r--Library/Homebrew/cask/lib/hbc/artifact.rb2
-rw-r--r--Library/Homebrew/cask/lib/hbc/artifact/dictionary.rb8
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli.rb1
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb1
-rw-r--r--Library/Homebrew/cask/lib/hbc/dsl.rb1
-rw-r--r--Library/Homebrew/cask/lib/hbc/locations.rb6
6 files changed, 19 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/artifact.rb b/Library/Homebrew/cask/lib/hbc/artifact.rb
index ec808a614..8b4babdf6 100644
--- a/Library/Homebrew/cask/lib/hbc/artifact.rb
+++ b/Library/Homebrew/cask/lib/hbc/artifact.rb
@@ -2,6 +2,7 @@ require "hbc/artifact/app"
require "hbc/artifact/artifact" # generic 'artifact' stanza
require "hbc/artifact/binary"
require "hbc/artifact/colorpicker"
+require "hbc/artifact/dictionary"
require "hbc/artifact/font"
require "hbc/artifact/input_method"
require "hbc/artifact/installer"
@@ -38,6 +39,7 @@ module Hbc
Pkg,
Prefpane,
Qlplugin,
+ Dictionary,
Font,
Service,
StageOnly,
diff --git a/Library/Homebrew/cask/lib/hbc/artifact/dictionary.rb b/Library/Homebrew/cask/lib/hbc/artifact/dictionary.rb
new file mode 100644
index 000000000..e017992f0
--- /dev/null
+++ b/Library/Homebrew/cask/lib/hbc/artifact/dictionary.rb
@@ -0,0 +1,8 @@
+require "hbc/artifact/moved"
+
+module Hbc
+ module Artifact
+ class Dictionary < Moved
+ end
+ end
+end
diff --git a/Library/Homebrew/cask/lib/hbc/cli.rb b/Library/Homebrew/cask/lib/hbc/cli.rb
index 6249fbc7a..d062c6a7d 100644
--- a/Library/Homebrew/cask/lib/hbc/cli.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli.rb
@@ -54,6 +54,7 @@ module Hbc
"--colorpickerdir=" => :colorpickerdir=,
"--prefpanedir=" => :prefpanedir=,
"--qlplugindir=" => :qlplugindir=,
+ "--dictionarydir=" => :dictionarydir=,
"--fontdir=" => :fontdir=,
"--servicedir=" => :servicedir=,
"--input_methoddir=" => :input_methoddir=,
diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb
index dd802bc94..e5c04ee51 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/internal_stanza.rb
@@ -28,6 +28,7 @@ module Hbc
:artifact,
:prefpane,
:qlplugin,
+ :dictionary,
:font,
:service,
:colorpicker,
diff --git a/Library/Homebrew/cask/lib/hbc/dsl.rb b/Library/Homebrew/cask/lib/hbc/dsl.rb
index 1a8bbe3a0..c62873665 100644
--- a/Library/Homebrew/cask/lib/hbc/dsl.rb
+++ b/Library/Homebrew/cask/lib/hbc/dsl.rb
@@ -24,6 +24,7 @@ module Hbc
:audio_unit_plugin,
:binary,
:colorpicker,
+ :dictionary,
:font,
:input_method,
:internet_plugin,
diff --git a/Library/Homebrew/cask/lib/hbc/locations.rb b/Library/Homebrew/cask/lib/hbc/locations.rb
index 40933911d..8f6c028ec 100644
--- a/Library/Homebrew/cask/lib/hbc/locations.rb
+++ b/Library/Homebrew/cask/lib/hbc/locations.rb
@@ -64,6 +64,12 @@ module Hbc
@qlplugindir ||= Pathname.new("~/Library/QuickLook").expand_path
end
+ attr_writer :dictionarydir
+
+ def dictionarydir
+ @dictionarydir ||= Pathname.new("~/Library/Dictionaries").expand_path
+ end
+
attr_writer :fontdir
def fontdir