standardese 0.5.0
* standardese 0.5.0 * standardese: fix build - add dependency on cmark-gfm, as otherwise the build vendors its own Closes #73349. Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
99e9ee74b5
commit
8916862199
|
@ -2,8 +2,8 @@ class Standardese < Formula
|
||||||
desc "Next-gen documentation generator for C++"
|
desc "Next-gen documentation generator for C++"
|
||||||
homepage "https://standardese.github.io"
|
homepage "https://standardese.github.io"
|
||||||
url "https://github.com/standardese/standardese.git",
|
url "https://github.com/standardese/standardese.git",
|
||||||
tag: "0.4.1",
|
tag: "0.5.0",
|
||||||
revision: "93c122b38f3f816be6f8c31e46320570f8879e0a"
|
revision: "e7a7fb8f59ba4b1cf59347ac016ec558e5d72ac3"
|
||||||
license "MIT"
|
license "MIT"
|
||||||
head "https://github.com/standardese/standardese.git"
|
head "https://github.com/standardese/standardese.git"
|
||||||
|
|
||||||
|
@ -17,20 +17,26 @@ class Standardese < Formula
|
||||||
|
|
||||||
depends_on "cmake" => :build
|
depends_on "cmake" => :build
|
||||||
depends_on "boost"
|
depends_on "boost"
|
||||||
|
depends_on "cmark-gfm"
|
||||||
depends_on "llvm" # must be Homebrew LLVM, not system, because of `llvm-config`
|
depends_on "llvm" # must be Homebrew LLVM, not system, because of `llvm-config`
|
||||||
|
|
||||||
def install
|
def install
|
||||||
mkdir "build" do
|
system "cmake", "-S", ".", "-B", "build",
|
||||||
system "cmake", "../", *std_cmake_args
|
"-DCMAKE_INSTALL_RPATH=#{opt_libexec}/lib",
|
||||||
system "cmake", "--build", ".", "--target", "standardese_tool"
|
"-DCMARK_LIBRARY=#{Formula["cmark-gfm"].opt_lib/shared_library("libcmark-gfm")}",
|
||||||
cd "tool" do
|
"-DCMARK_INCLUDE_DIR=#{Formula["cmark-gfm"].opt_include}",
|
||||||
bin.install "standardese"
|
*std_cmake_args
|
||||||
end
|
system "cmake", "--build", "build", "--target", "standardese_tool"
|
||||||
|
system "cmake", "--install", "build"
|
||||||
|
|
||||||
|
cd "build" do
|
||||||
|
(libexec/"lib").install "src/#{shared_library("libstandardese")}"
|
||||||
|
(libexec/"lib").install "external/cppast/#{shared_library("lib_cppast_tiny_process")}"
|
||||||
|
(libexec/"lib").install "external/cppast/src/#{shared_library("libcppast")}"
|
||||||
end
|
end
|
||||||
cd "include" do
|
cd "include" do
|
||||||
include.install "standardese"
|
include.install "standardese"
|
||||||
end
|
end
|
||||||
doc.install "README.md", "CHANGELOG.md", "LICENSE"
|
|
||||||
(lib/"cmake/standardese").install "standardese-config.cmake"
|
(lib/"cmake/standardese").install "standardese-config.cmake"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue