Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wiki2beamer 0.10.0 (new formula) #191257

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions Formula/w/wiki2beamer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
class Wiki2beamer < Formula
include Language::Python::Virtualenv

desc "Create latex beamer code from an easy, wiki-like syntax"
homepage "https://wiki2beamer.github.io"
url "https://github.com/wiki2beamer/wiki2beamer/releases/tag/wiki2beamer-v0.10.0"
sha256 "7fd4456c52b3d3f65c131e614b4805053a17ac4986bca3f5bbb1d747d69e6a8b"
license "GPL-2.0-or-later"

depends_on "[email protected]"
depends_on "texlive"

def install
virtualenv_install_with_resources
end

test do
assert_match version.to_s, shell_output("#{bin}/wiki2beamer --version")

(testpath/"test.wiki").write <<~EOS
==== A simple frame ====
* with a funky
* bullet list
*# and two
*# numbered sub-items
EOS
assert_match "frametitle{A simple frame}", shell_output("#{bin}/wiki2beamer #{testpath}/test.wiki 2> /dev/null")
end
end
Loading