From 366765f5991c832ac412681b8593ce6fa90af9fe Mon Sep 17 00:00:00 2001 From: Yann-R Date: Sun, 9 Mar 2014 01:49:03 +0100 Subject: colormake 0.9 Closes #27345. Signed-off-by: Adam Vandenberg --- Library/Formula/colormake.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Library/Formula/colormake.rb (limited to 'Library/Formula') diff --git a/Library/Formula/colormake.rb b/Library/Formula/colormake.rb new file mode 100644 index 000000000..5cc14ebda --- /dev/null +++ b/Library/Formula/colormake.rb @@ -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 -- cgit v1.2.3