mdv 1.4.1

Closes #6561.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
Jonas Stendahl 2016-11-07 12:22:05 +00:00 committed by ilovezfs
parent 9195fee6c3
commit 8cd13f4d10

View file

@ -1,10 +1,10 @@
class Mdv < Formula
include Language::Python::Virtualenv
desc "Styled terminal markdown viewer"
homepage "https://github.com/axiros/terminal_markdown_viewer"
url "https://github.com/axiros/terminal_markdown_viewer/archive/v0.1.2.tar.gz"
sha256 "547f223658714d130f3a642d2aa366239f16d05ae93caf54e87f3d07455c5f1c"
head "https://github.com/axiros/terminal_markdown_viewer.git"
url "https://files.pythonhosted.org/packages/c8/94/931f2b9bae37acbe8de987884fc7a8a8981de6efc3ef9276d23b967f6c15/mdv-1.4.1.tar.gz"
sha256 "8792cd42c24445007b7eb6ad3ab28483ab6e47f2d6a5fe408e69b62bc83a567a"
bottle do
cellar :any_skip_relocation
@ -14,35 +14,30 @@ class Mdv < Formula
sha256 "73a5c302f5685123fbd48d14dae77c3f17ac57f970786f944b819e5dfad7f2e9" => :mavericks
end
depends_on :python if MacOS.version <= :snow_leopard
depends_on :python
resource "markdown" do
url "https://pypi.python.org/packages/source/M/Markdown/Markdown-2.6.5.tar.gz"
sha256 "8d94cf6273606f76753fcb1324623792b3738c7612c2b180c85cc5e88642e560"
resource "docopt" do
url "https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz"
sha256 "49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491"
end
resource "pygments" do
url "https://pypi.python.org/packages/source/P/Pygments/Pygments-2.1.tar.gz"
sha256 "13a0ef5fafd7b16cf995bc28fe7aab0780dab1b2fda0fc89e033709af8b8a47b"
resource "Markdown" do
url "https://files.pythonhosted.org/packages/d4/32/642bd580c577af37b00a1eb59b0eaa996f2d11dfe394f3dd0c7a8a2de81a/Markdown-2.6.7.tar.gz"
sha256 "daebf24846efa7ff269cfde8c41a48bb2303920c7b2c7c5e04fa82e6282d05c0"
end
resource "yaml" do
url "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-3.11.tar.gz"
sha256 "c36c938a872e5ff494938b33b14aaa156cb439ec67548fcab3535bb78b0846e8"
resource "Pygments" do
url "https://files.pythonhosted.org/packages/b8/67/ab177979be1c81bc99c8d0592ef22d547e70bb4c6815c383286ed5dec504/Pygments-2.1.3.tar.gz"
sha256 "88e4c8a91b2af5962bfa5ea2447ec6dd357018e86e94c7d14bd8cacbc5b55d81"
end
resource "PyYAML" do
url "https://files.pythonhosted.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz"
sha256 "592766c6303207a20efc445587778322d7f73b161bd994f227adaa341ba212ab"
end
def install
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
%w[markdown pygments yaml].each do |r|
resource(r).stage do
system "python", *Language::Python.setup_install_args(libexec/"vendor")
end
end
(libexec/"bin").install %w[mdv.py docopt.py tabulate.py ansi_tables.json]
bin.install_symlink "mdv.py" => "mdv"
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
virtualenv_install_with_resources
end
test do