Skip to content

Commit

Permalink
pandoc: Build a relocatable executable
Browse files Browse the repository at this point in the history
> embed_data_files: embed all data files into the binary (default no).
This is helpful if you want to create a relocatable binary.

See https://pandoc.org/installing.html#custom-cabal-method
and jgm/pandoc#6143
  • Loading branch information
sjackman committed Feb 15, 2020
1 parent 8124338 commit 1606bf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Formula/pandoc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Pandoc < Formula
homepage "https://pandoc.org/"
url "https://hackage.haskell.org/package/pandoc-2.9.1.1/pandoc-2.9.1.1.tar.gz"
sha256 "9d21c5efe2074f9b3097a20e0798de9d8b89a86a1ce04a307f476c7b4aa3816d"
revision 1
head "https://github.com/jgm/pandoc.git"

bottle do
Expand All @@ -20,7 +21,7 @@ class Pandoc < Formula

def install
cabal_sandbox do
install_cabal_package
install_cabal_package :flags => ["embed_data_files"]
end
(bash_completion/"pandoc").write `#{bin}/pandoc --bash-completion`
man1.install "man/pandoc.1"
Expand Down

0 comments on commit 1606bf0

Please sign in to comment.