From 1b31a235424c43d89f16f6eb7551f2e4eb7e7ff7 Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Wed, 9 Mar 2016 23:24:51 +1100 Subject: [PATCH 1/3] neofetch 1.4 (new formula) added neofetch script, a fast, highly customisable system info script from @dylanaraps --- Library/Formula/neofetch.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Library/Formula/neofetch.rb diff --git a/Library/Formula/neofetch.rb b/Library/Formula/neofetch.rb new file mode 100644 index 000000000000..354b467fe90e --- /dev/null +++ b/Library/Formula/neofetch.rb @@ -0,0 +1,18 @@ +class Neofetch < Formula + desc "fast, highly customisable system info script" + homepage "https://github.com/dylanaraps/neofetch" + url "https://github.com/dylanaraps/neofetch/archive/1.4.tar.gz" + sha256 "b0bda1ac5c3fa4357c6c2157767bcbf08d0e231e3d5e15c4408490f1c3175756" + head "https://github.com/dylanaraps/neofetch.git" + + def install + bin.install "neofetch" + prefix.install "ascii" + prefix.install "config" + man.install "neofetch.1" + end + + test do + system "neofetch" + end +end From c9a8bc514aae76036171752846189f262d77cda6 Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Thu, 10 Mar 2016 05:01:37 +1100 Subject: [PATCH 2/3] changed to makefile this probably makes a lot more sense now --- Library/Formula/neofetch.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Library/Formula/neofetch.rb b/Library/Formula/neofetch.rb index 354b467fe90e..4ea2363a25a8 100644 --- a/Library/Formula/neofetch.rb +++ b/Library/Formula/neofetch.rb @@ -6,10 +6,7 @@ class Neofetch < Formula head "https://github.com/dylanaraps/neofetch.git" def install - bin.install "neofetch" - prefix.install "ascii" - prefix.install "config" - man.install "neofetch.1" + system "PREFIX=#{prefix} make install" end test do From 53260cbcee72d07712ccc8ba9cfce413106dca1e Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Thu, 10 Mar 2016 11:11:31 +1100 Subject: [PATCH 3/3] fixed install stage and test stage --- Library/Formula/neofetch.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Formula/neofetch.rb b/Library/Formula/neofetch.rb index 4ea2363a25a8..7055a828295d 100644 --- a/Library/Formula/neofetch.rb +++ b/Library/Formula/neofetch.rb @@ -6,10 +6,10 @@ class Neofetch < Formula head "https://github.com/dylanaraps/neofetch.git" def install - system "PREFIX=#{prefix} make install" + system "make", "install", "PREFIX=#{prefix}" end test do - system "neofetch" + system "#{bin}/neofetch" end end