homebrew-core/Formula/mdp.rb

35 lines
1.9 KiB
Ruby

class Mdp < Formula
desc "Command-line based markdown presentation tool"
homepage "https://github.com/visit1985/mdp"
url "https://github.com/visit1985/mdp/archive/1.0.15.tar.gz"
sha256 "3edc8ea1551fdf290d6bba721105e2e2c23964070ac18c13b4b8d959cdf6116f"
license "GPL-3.0"
head "https://github.com/visit1985/mdp.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "24f08fa3b94a8f8c5e29944011c5604bdf7b15669db7df886bdfef39a8691929"
sha256 cellar: :any_skip_relocation, arm64_monterey: "a05d67cc6d17e503937cb9ee56b48b96028f095ca8e4a2aced6cac4086bb519b"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "4807986d02b7d09a0bcdd726ab3efd74434a2a2a298a0e4db4f88301f0c5c5be"
sha256 cellar: :any_skip_relocation, ventura: "a0a8b3917f4bcaca6054386a4522a90567c78adb1a30ac9366403b00c15a09b3"
sha256 cellar: :any_skip_relocation, monterey: "72a1a991542a0980bf369d4eae9a85e9c1ad1a353fd407bb35b2af014071db61"
sha256 cellar: :any_skip_relocation, big_sur: "422a1aa5fdbc6c1286036480a306c5842876a26982d78809b3ad84c448971018"
sha256 cellar: :any_skip_relocation, catalina: "4d4430aea06ed48c1284b8a6b064d2e69a8a37cafb27de9ad5c65ce08c4681c4"
sha256 cellar: :any_skip_relocation, mojave: "606ffc22ff72a524f46ae683466098409e2db33cb5de58dad6ea179a9390cdbc"
sha256 cellar: :any_skip_relocation, high_sierra: "0bfa062ad64e8da4fa6d1df9be7e8a52da7799f87fc012b80847ac58adf81830"
sha256 cellar: :any_skip_relocation, sierra: "b38a74964fd0ac22fcbb50eb569b165128799f77a32d582f102278252b6bd291"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d06532b3145412b30883758c3a91d72c0e8ab2dbc933094164b6b030fd90b9fe"
end
uses_from_macos "ncurses"
def install
system "make"
system "make", "install", "PREFIX=#{prefix}"
pkgshare.install "sample.md"
end
test do
assert_match version.to_s, shell_output("#{bin}/mdp -v")
end
end