25 lines
727 B
Ruby
25 lines
727 B
Ruby
class Nef < Formula
|
|
desc "💊 steroids for Xcode Playgrounds"
|
|
homepage "https://nef.bow-swift.io"
|
|
url "https://github.com/bow-swift/nef/archive/0.6.2.tar.gz"
|
|
sha256 "23915dd21e6485829b5ad88b6a5f4ac6b4ea091fc70820d2322bafba09e2217a"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "fae01b5b21abe8205e3e42101804f3c6c16bb04d1c14841846766579ce2885d5" => :catalina
|
|
end
|
|
|
|
depends_on xcode: "11.4"
|
|
|
|
def install
|
|
system "make", "install", "prefix=#{prefix}", "version=#{version}"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/nef", "markdown",
|
|
"--project", "#{share}/tests/Documentation.app",
|
|
"--output", "#{testpath}/nef"
|
|
assert_path_exist "#{testpath}/nef/library/apis.md", :exist?
|
|
end
|
|
end
|