colormake 0.9
Closes Homebrew/homebrew#27345. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
8c529c1437
commit
0e265ce0ee
1 changed files with 26 additions and 0 deletions
26
Formula/colormake.rb
Normal file
26
Formula/colormake.rb
Normal file
|
@ -0,0 +1,26 @@
|
|||
require "formula"
|
||||
|
||||
class Colormake < Formula
|
||||
homepage "https://github.com/pagekite/Colormake"
|
||||
head "https://github.com/pagekite/Colormake.git"
|
||||
url "http://bre.klaki.net/programs/colormake/colormake-0.9.tar.gz"
|
||||
sha1 "6c5ab4be23d60ec79ed4c43cbeb142bfd4a4e626"
|
||||
|
||||
def install
|
||||
inreplace "colormake", "colormake.pl", "#{libexec}/colormake.pl"
|
||||
|
||||
# Prefers symlinks than the original duplicate files
|
||||
File.unlink "colormake-short", "clmake", "clmake-short"
|
||||
File.symlink "colormake", "colormake-short"
|
||||
File.symlink "colormake", "clmake"
|
||||
File.symlink "colormake", "clmake-short"
|
||||
|
||||
# Adds missing clmake.1 referenced in colormake.1 itself
|
||||
File.symlink "colormake.1", "clmake.1"
|
||||
|
||||
# Installs auxiliary script, commands and mans
|
||||
libexec.install "colormake.pl"
|
||||
bin.install "colormake", "clmake", "colormake-short", "clmake-short"
|
||||
man1.install "colormake.1", "clmake.1"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue