Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3820,6 +3820,7 @@ wazero
wcslib
wcurl
weasyprint
weaver
weaviate
weaviate-cli
web-ext
Expand Down
53 changes: 7 additions & 46 deletions Formula/w/weaver.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
class Weaver < Formula
desc "Command-line tool for Weaver"
homepage "https://github.com/scribd/Weaver"
url "https://github.com/scribd/Weaver/archive/refs/tags/1.1.6.tar.gz"
sha256 "9ece93166a8fda3c6f1a03ce3a92b46da321420c492b1f7091ca8eed12e45c19"
url "https://github.com/scribd/Weaver/archive/refs/tags/1.1.7.tar.gz"
sha256 "8d53fbcd1283cea93532d8b301f11353bd7634d865c8148df3bc3f65d0447a19"
license "MIT"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "03bf5b5e76c95197ccca7802d1641cb0718e032ec33dc1d230654f9d069f9bab"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "d140adbcced8f4dc5c9435f87e1a046d54c5da572375d094720007cce5379cf9"
sha256 cellar: :any_skip_relocation, arm64_ventura: "ae444f345f51ceb5fb13781192bbe2b0ad90b04ed84441b6f7a715018072db09"
sha256 cellar: :any_skip_relocation, sonoma: "13b24f6318027d5f943198879212247b5dd10223d030e42dc68760c4a9e915f5"
sha256 cellar: :any_skip_relocation, ventura: "387c5ae8c6e1aae6f230b3e36102032b02dec9b69176c05ef813399f849bd791"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "2b2c94574fbf1393924f73651ea3276ccc59168872c2e23cced5a2844a895a68"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "c09fc8fbe98be3de2104a764b2a061ae395268fce3dbbe9720aa41fe601ef830"
sha256 cellar: :any_skip_relocation, arm64_ventura: "c713370dc58cfbc20047ad65231048f4195297dd9f351d10551cb9f3e4381e7a"
sha256 cellar: :any_skip_relocation, sonoma: "46ec011fe16385d889653c9e3eb7c6ed689107cb92c8c7d6482e3f3b72d7ec27"
sha256 cellar: :any_skip_relocation, ventura: "0cf043e6335d98a3024183b86305c5375b2b1311637f76a062883cf37d9f6309"
end

depends_on xcode: ["11.2", :build]
Expand All @@ -20,25 +20,7 @@ class Weaver < Formula

conflicts_with "service-weaver", because: "both install a `weaver` binary"

# Fetch a copy of SourceKitten in order to fix build with newer Swift.
resource "SourceKitten" do
on_sequoia :or_newer do
# https://github.com/scribd/Weaver/blob/1.1.5/Package.resolved#L99-L100
url "https://github.com/jpsim/SourceKitten.git",
tag: "0.29.0",
revision: "77a4dbbb477a8110eb8765e3c44c70fb4929098f"

# Backport of import from HEAD
patch :DATA
end
end

def install
if OS.mac? && MacOS.version >= :sequoia
(buildpath/"SourceKitten").install resource("SourceKitten")
system "swift", "package", "--disable-sandbox", "edit", "SourceKitten", "--path", buildpath/"SourceKitten"
end

system "make", "install", "PREFIX=#{prefix}"
end

Expand All @@ -49,24 +31,3 @@ def install
system bin/"weaver", "version"
end
end

__END__
diff --git a/Source/SourceKittenFramework/SwiftDocs.swift b/Source/SourceKittenFramework/SwiftDocs.swift
index 1d2473c..70de287 100644
--- a/Source/SourceKittenFramework/SwiftDocs.swift
+++ b/Source/SourceKittenFramework/SwiftDocs.swift
@@ -10,6 +10,14 @@
import SourceKit
#endif

+#if os(Linux)
+import Glibc
+#elseif os(Windows)
+import CRT
+#else
+import Darwin
+#endif
+
/// Represents docs for a Swift file.
public struct SwiftDocs {
/// Documented File.
Loading