Skip to content

Commit

Permalink
Add wiki2beamer 0.10.0 (new formula)
Browse files Browse the repository at this point in the history
wiki2beamer is a preprocessor that LateX beamer code
from input with a simple wiki-like syntax
This change adds a formula for the latest version 0.10.0 of wiki2beamer.

Signed-off-by: Michael Adam <[email protected]>
  • Loading branch information
obnoxxx committed Sep 20, 2024
1 parent 2aa2d95 commit df77ab4
Showing 1 changed file with 30 additions and 0 deletions.
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

0 comments on commit df77ab4

Please sign in to comment.