colormake 0.9

Closes Homebrew/homebrew#27345.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Yann-R 2014-03-09 01:49:03 +01:00 committed by Adam Vandenberg
parent 8c529c1437
commit 0e265ce0ee

26
Formula/colormake.rb Normal file
View 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