forked from Ensembl/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb-gui.rb
33 lines (28 loc) · 851 Bytes
/
web-gui.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#Template generated on 2018-08-10 16:25:58 +0100
#Do not edit this file. Modify the relevant config and regenerate
require 'digest'
class WebGui < Formula
url 'file://'+File.expand_path(__FILE__)
desc 'Dependencies for the WebGui formula'
sha256 Digest::SHA256.file(File.expand_path(__FILE__)).hexdigest
version '6'
depends_on 'gd'
depends_on 'imagemagick'
depends_on 'pngcrush'
depends_on 'ensembl/ensembl/zopfli'
depends_on 'libsass'
depends_on 'sassc'
depends_on 'ensembl/web/graphviz'
depends_on 'ensembl/web/coffeescript'
depends_on 'babel'
def install
File.open('web-gui', 'w') { |file|
file.write '#!/bin/sh'+"\n"
deps.each do | dep |
f = dep.to_formula
file.write "echo "+[f.full_name, f.version, f.prefix].join("\t")+"\n"
end
}
bin.install 'web-gui'
end
end