Skip to content

Commit

Permalink
pandoc-crossref 0.2.0.1 (new formula)
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#50517.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
  • Loading branch information
andraus authored and xu-cheng committed Apr 2, 2016
1 parent 1d174cb commit 8c0eaaf
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Formula/pandoc-crossref.rb
@@ -0,0 +1,32 @@
class PandocCrossref < Formula
include Language::Haskell::Cabal

desc "Pandoc filter for numbering and cross-referencing."
homepage "https://github.com/lierdakil/pandoc-crossref"
url "https://hackage.haskell.org/package/pandoc-crossref-0.2.0.1/pandoc-crossref-0.2.0.1.tar.gz"
sha256 "44bdbc38d8d7a743951a2333fb70b33a6497b2d50ccdb5696736fdc5133aef21"

depends_on "ghc" => :build
depends_on "cabal-install" => :build
depends_on "pandoc"

def install
args = []
args << "--constraint=cryptonite -support_aesni" if MacOS.version <= :lion
install_cabal_package *args
end

test do
md = testpath/"test.md"
md.write <<-EOS.undent
Demo for pandoc-crossref.
See equation @eq:eqn1 for cross-referencing.
Display equations are labelled and numbered
$$ P_i(x) = \sum_i a_i x^i $$ {#eq:eqn1}
EOS
system "pandoc", "-F", "pandoc-crossref", md
end
end

0 comments on commit 8c0eaaf

Please sign in to comment.