-
-
Notifications
You must be signed in to change notification settings - Fork 13.2k
bucklespring 1.4.0 (new formula) #69476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
8c82279
f5ea3ca
9baa232
78a2b02
8774cbd
15d7b5f
598bc2f
5685b57
1e4fefe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| class Bucklespring < Formula | ||
| desc "Nostalgia bucklespring keyboard sound" | ||
| homepage "https://github.com/zevv/bucklespring" | ||
| url "https://github.com/zevv/bucklespring/archive/v1.4.0.tar.gz" | ||
| sha256 "b38b2c0ec905573a243cb9db543f8eeb92e4d040025ef338d8bcfcfd5ccd5348" | ||
| license "GPL-2.0-only" | ||
|
|
||
| depends_on "alure" => :build | ||
| depends_on "pkg-config" => :build | ||
|
|
||
| def install | ||
| inreplace "Makefile", "-Wall -Werror", "-Wall" | ||
| cp Formula["pkg-config"].opt_lib/"alure.pc" "mac/lib/pkgconfig/" | ||
AlexanderWillner marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| system "PATH_AUDIO=#{prefix}/wav make" | ||
| bin.install "buckle" | ||
| prefix.install "wav" | ||
carlocab marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| end | ||
|
|
||
| test do | ||
| system "buckle", "-h" | ||
|
Member
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. Can you propose a more substantial test than checking the version or calling for help? These tests rarely ever fail even for broken installations.
Ref. https://docs.brew.sh/Formula-Cookbook#add-a-test-to-the-formula
Member
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. We need a test that exercises the some of the functionality of the app. Version checks or usage checks (foo --version or foo --help) are not sufficient, as explained in the formula cookbook. In most cases, a good test would involve running a simple test case: run #{bin}/foo input.txt.
Some advice for specific cases:
|
||
| end | ||
| end | ||
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.
We don't really like new formulae that require patching.
This should be submitted to upstream.
Also, I'm a bit worried, is this project actively maintained?
The last release was 4 years ago, nevertheless, it has some fresher commits.
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.
upstream requested at zevv/bucklespring#97