Skip to content

Commit

Permalink
Merge pull request #10 from regisd/update
Browse files Browse the repository at this point in the history
Update pandoc to 2.8.0.1
  • Loading branch information
patbro authored Dec 9, 2019
2 parents 68bcf3f + 8fd0cb0 commit 7285050
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 37 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pandoc_toolchain(
"@bazel_tools//platforms:linux",
"@bazel_tools//platforms:x86_64",
],
platform = "linux",
platform = "linux-x86_64",
)

pandoc_toolchain(
Expand Down
66 changes: 30 additions & 36 deletions repositories.bzl
Original file line number Diff line number Diff line change
@@ -1,60 +1,54 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

def pandoc_repositories():
http_archive(
name = "pandoc_bin_linux",
build_file_content = """
PANDOC_VERSION = "2.8.0.1"

BUILD_CONTENT_UNIX = """
filegroup(
name = "pandoc",
srcs = ["bin/pandoc"],
visibility = ["//visibility:public"],
)""",
sha256 = "859609cdba5af61aefd7c93d174e412d6a38f5c1be90dfc357158638ff5e7059",
strip_prefix = "pandoc-2.3.1",
url = "https://github.com/jgm/pandoc/releases/download/2.3.1/pandoc-2.3.1-linux.tar.gz",
)
)"""

http_archive(
name = "pandoc_bin_macOS",
build_file_content = """
BUILD_CONTENT_WINDOWS = """
filegroup(
name = "pandoc",
srcs = ["bin/pandoc"],
srcs = ["pandoc.exe"],
visibility = ["//visibility:public"],
)""",
sha256 = "bc9ba6f1f4f447deff811554603edcdb13344b07b969151569b6e46e1c8c81b7",
strip_prefix = "pandoc-2.3.1",
url = "https://github.com/jgm/pandoc/releases/download/2.3.1/pandoc-2.3.1-macOS.zip",
)"""

def pandoc_repositories():
http_archive(
name = "pandoc_bin_linux-x86_64",
build_file_content = BUILD_CONTENT_UNIX,
sha256 = "8ebf1b6c852d77290345afdd565547bdbd5de7888362f5a69fc7f51aeb8696a2",
strip_prefix = "pandoc-{v}".format(v = PANDOC_VERSION),
url = "https://github.com/jgm/pandoc/releases/download/{v}/pandoc-{v}-linux-amd64.tar.gz".format(v = PANDOC_VERSION),
)

http_archive(
name = "pandoc_bin_macOS",
build_file_content = BUILD_CONTENT_UNIX,
sha256 = "477d2f436170ecccd33e741516e01f053c8d0b141e7a9a4c26c09d07f62a080f",
strip_prefix = "pandoc-{v}".format(v = PANDOC_VERSION),
url = "https://github.com/jgm/pandoc/releases/download/{v}/pandoc-{v}-macOS.zip".format(v = PANDOC_VERSION),
)

http_archive(
name = "pandoc_bin_windows-i386",
build_file_content = """
filegroup(
name = "pandoc",
srcs = ["pandoc.exe"],
visibility = ["//visibility:public"],
)""",
sha256 = "4b878dfc094af245621581cf30afbe2eb401dc886f59edbe67356e691a4c72cc",
strip_prefix = "pandoc-2.3.1-windows-i386",
url = "https://github.com/jgm/pandoc/releases/download/2.3.1/pandoc-2.3.1-windows-i386.zip",
build_file_content = BUILD_CONTENT_WINDOWS,
sha256 = "c1530b141bd98903fa0f3d242076d790ce9d7448e8fc24f5084967c0889238d6",
url = "https://github.com/jgm/pandoc/releases/download/{v}/pandoc-{v}-windows-i386.zip".format(v = PANDOC_VERSION),
)

http_archive(
name = "pandoc_bin_windows-x86_64",
build_file_content = """
filegroup(
name = "pandoc",
srcs = ["pandoc.exe"],
visibility = ["//visibility:public"],
)""",
sha256 = "c84377a6ddb45b149c297af3e37aacaa8f82535c929aa74723f7a75d7d7b15ab",
strip_prefix = "pandoc-2.3.1-windows-x86_64",
url = "https://github.com/jgm/pandoc/releases/download/2.3.1/pandoc-2.3.1-windows-x86_64.zip",
build_file_content = BUILD_CONTENT_WINDOWS,
sha256 = "ce9f8a68b9bccbec63d35317dfdc40dc3e1722d49b66b9cf39cc1459ae688129",
url = "https://github.com/jgm/pandoc/releases/download/{v}/pandoc-{v}-windows-x86_64.zip".format(v = PANDOC_VERSION),
)

native.register_toolchains(
"@bazel_pandoc//:pandoc_toolchain_linux",
"@bazel_pandoc//:pandoc_toolchain_linux-x86_64",
"@bazel_pandoc//:pandoc_toolchain_macOS",
"@bazel_pandoc//:pandoc_toolchain_windows-i386",
"@bazel_pandoc//:pandoc_toolchain_windows-x86_64",
Expand Down

0 comments on commit 7285050

Please sign in to comment.