This repository has been archived by the owner on Jul 4, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
teensy_loader_cli: add HEAD patch to avoid libusb access error on Mac OS #45558
Closed
Closed
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
330dbbf
teensy_loader_cli: add git HEAD
rixtox 889c55a
teensy_loader_cli: patch to avoid libusb HID access error on Mac OS
rixtox 667187f
Merge branch 'master' of https://github.com/Homebrew/homebrew
rixtox 95a908f
teensy_loader_cli: add HEAD patch to avoid libusb access error on Mac OS
rixtox 736e261
move depends_on below head block
rixtox File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
class TeensyLoaderCli < Formula | ||
desc "Command-line integration for Teensy USB development boards" | ||
homepage "https://www.pjrc.com/teensy/loader_cli.html" | ||
depends_on "libusb-compat" | ||
|
||
url "https://www.pjrc.com/teensy/teensy_loader_cli.2.1.zip" | ||
sha256 "dafd040d6748b52e0d4a01846d4136f3354ca27ddc36a55ed00d0a0af0902d46" | ||
head "https://github.com/PaulStoffregen/teensy_loader_cli.git" | ||
|
||
bottle do | ||
cellar :any_skip_relocation | ||
|
@@ -12,9 +13,16 @@ class TeensyLoaderCli < Formula | |
sha256 "dcd10140babb4d2937ce376c89e9c24a2e8046d2cabdad2cfdbc2542afa14471" => :mavericks | ||
end | ||
|
||
head do | ||
url "https://github.com/PaulStoffregen/teensy_loader_cli.git" | ||
patch do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please submit this patch upstream (or at least a bug report) and use that link. We don't particularly want to use a commit from an unofficial repo. |
||
url "https://github.com/rixtox/teensy_loader_cli/commit/747f3a249722eb07b494b2db8c7f872e603448f3.diff" | ||
sha256 "be47f352d6f54a88db0bc8a88062f9ec470cab2c675655cfec14a9c238492677" | ||
end | ||
end | ||
|
||
def install | ||
ENV["OS"] = "MACOSX" | ||
ENV["SDK"] = MacOS.sdk_path || "/" | ||
ENV["OS"] = "LINUX" | ||
system "make" | ||
bin.install "teensy_loader_cli" | ||
end | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be down below the
head
block.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but to compile 2.1 with
OS=LINUX
also require libusbThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, not in the head block, just below it and above the install block. Otherwise
brew audit --strict teensy_loader_cli
will complain.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it. fixed