aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2025-06-29 21:12:43 -0400
committerEugene Triguba <eugenetriguba@gmail.com>2025-06-29 21:12:43 -0400
commit3402b4ad31f8fb7745646c5c00e909d87c1f0fc2 (patch)
tree5beed51ff31cdf3094325becb59dcf8ca5399691
downloadhomebrew-tap-3402b4ad31f8fb7745646c5c00e909d87c1f0fc2.zip
Initial Commit
-rw-r--r--Formula/justify.rb21
-rw-r--r--README.md10
2 files changed, 31 insertions, 0 deletions
diff --git a/Formula/justify.rb b/Formula/justify.rb
new file mode 100644
index 0000000..80f26db
--- /dev/null
+++ b/Formula/justify.rb
@@ -0,0 +1,21 @@
+class Justify < Formula
+ desc "Format and justify text to a specified line width"
+ homepage "https://github.com/eugenetriguba/justify"
+ url "https://github.com/eugenetriguba/justify/archive/v0.1.0.tar.gz"
+ sha256 ""
+ license "MIT"
+
+ depends_on "cmake" => :build
+
+ def install
+ system "cmake", "-B", "build", "-DCMAKE_BUILD_TYPE=Release", *std_cmake_args
+ system "cmake", "--build", "build"
+ bin.install "build/justify"
+ man1.install "doc/justify.1"
+ end
+
+ test do
+ (testpath/"input.txt").write("Hello world")
+ assert_match "Hello world", shell_output("#{bin}/justify < input.txt")
+ end
+end
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..45cc1fd
--- /dev/null
+++ b/README.md
@@ -0,0 +1,10 @@
+# Homebrew Justify
+
+This is a custom tap for [justify](https://github.com/eugenetriguba/justify).
+
+To use it, run:
+
+```
+$ brew tap eugenetriguba/homebrew-justify
+$ brew install justify
+```