Skip to content

Commit

Permalink
Merge pull request #121624 from chenrui333/mandown-1.0.4
Browse files Browse the repository at this point in the history
mandown 1.0.4
  • Loading branch information
BrewTestBot authored Apr 2, 2023
2 parents d879554 + 3cc57b9 commit cabf4e7
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions Formula/mandown.rb
Original file line number Diff line number Diff line change
@@ -1,38 +1,36 @@
class Mandown < Formula
desc "Man-page inspired Markdown viewer"
homepage "https://github.com/Titor8115/mandown"
url "https://github.com/Titor8115/mandown/archive/v1.0.1.tar.gz"
sha256 "b014a44b27f921c12505ba4d8dba15487ca2b442764da645cd6d0fd607ef068c"
url "https://github.com/Titor8115/mandown/archive/refs/tags/v1.0.4.tar.gz"
sha256 "dc719e6a28a4585fe89458eb8c810140ed5175512b089b4815b3dda6a954ce3e"
license "GPL-3.0-or-later"

bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "72f91c87b01ae0fb51ee58518fcb963201b8a833c09d7e81556f09bda80c553f"
sha256 cellar: :any_skip_relocation, arm64_monterey: "6f06d6f6ada8676f6644e8491823bcb2310eaec516120b3455465ce4bd03a3dd"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "d0b7966c93183b64046728563d3f9f95fd54e836f74cd13560ea013f1261aee3"
sha256 cellar: :any_skip_relocation, ventura: "58b84452b3493987cfe1bf1c5db63e043f01f5822d23d8a95eb7b25b3b6d65aa"
sha256 cellar: :any_skip_relocation, monterey: "e4b32eed833a22db7e51e2cf957a4ed80ff8403d2959dce0b9af6242406a057c"
sha256 cellar: :any_skip_relocation, big_sur: "dd0e5fef1f35544524a29e7704d68ccce992ee099a34a088155c9fc579da5cf7"
sha256 cellar: :any_skip_relocation, catalina: "09ad2e54a3b54c9687580b4499f4c5247dfd2e18fb64230b3c255fbc7df1c5be"
sha256 cellar: :any_skip_relocation, mojave: "9186b868866dd17f080343297e145161f3fe6303701a12bd0a47f8ef246f6630"
sha256 cellar: :any_skip_relocation, high_sierra: "acf617ed0300f38b429ed05504c47bb9e403441316d335ae83bf28c18baa63a6"
sha256 cellar: :any_skip_relocation, x86_64_linux: "5710fddef5906f57883d6fccbfd1078253dda88cc71c72ad707161bd8b6f01b3"
sha256 cellar: :any, arm64_ventura: "8f38c697d7d7fff6d1de02483bbf49b3dcf3b65e127047fbc2a9b84228657a28"
sha256 cellar: :any, arm64_monterey: "cc29dc5580e538cac4010354481a5e9081e90735583380c99bd070e612c8c7bf"
sha256 cellar: :any, arm64_big_sur: "ade14b3cea59db3e21e4ee249f877ae6fb634100d78c62fbba62ce541a2a5562"
sha256 cellar: :any, ventura: "09b8c52b987c8d1eb510c75c9d395a62d1a69eb66f483e32c10728cc51beb8a0"
sha256 cellar: :any, monterey: "b13a81a1680806978c759cd0f2eb8b8e6d155818ac88456b9bc2ed24fdcf903e"
sha256 cellar: :any, big_sur: "6cd1c1d88d93223b889eecd77b5e278dc59f9de445b7a08eb7d41c7152db6b6d"
end

depends_on "pkg-config" => :build
depends_on "libconfig"
uses_from_macos "libxml2"
uses_from_macos "ncurses"

def install
ENV.append "CPPFLAGS", "-I#{Formula["libxml2"].opt_include}/libxml2" unless OS.mac?
system "make", "install", "PREFIX=#{prefix}"
system "make", "install", "PREFIX=#{prefix}", "PKG_CONFIG=pkg-config"
end

test do
(testpath/".config/mdn").mkpath # `mdn` may misbehave when its config directory is missing.
(testpath/"test.md").write <<~EOS
#Hi from readme file!
# Hi from readme file!
EOS
expected_output = <<~EOS
<title >test.md(7)</title>
<h1>Hi from readme file!</h1>
<html><head><title>test.md(7)</title></head><body><h1>Hi from readme file!</h1>
</body></html>
EOS
system "#{bin}/mdn", "-f", "test.md", "-o", "test"
assert_equal expected_output, File.read("test")
Expand Down

0 comments on commit cabf4e7

Please sign in to comment.