-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
libcouchbase3 3.0 (new formula) #49103
Changes from all commits
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,28 @@ | ||
class Libcouchbase3 < Formula | ||
desc "C library for Couchbase" | ||
homepage "https://docs.couchbase.com/c-sdk/3.0/hello-world/start-using-sdk.html" | ||
url "https://packages.couchbase.com/clients/c/libcouchbase-3.0.0.tar.gz" | ||
sha256 "7688aaeb5e5833ef4bfe9ab79da58b7291b2f1c1b49b28e6567b598698a9c026" | ||
head "https://github.com/couchbase/libcouchbase.git" | ||
|
||
depends_on "cmake" => :build | ||
depends_on "libev" | ||
depends_on "libevent" | ||
depends_on "libuv" | ||
depends_on "openssl@1.1" | ||
|
||
def install | ||
mkdir "build" do | ||
system "cmake", "..", *std_cmake_args, | ||
"-DLCB_NO_TESTS=1", | ||
"-DLCB_BUILD_LIBEVENT=ON", | ||
"-DLCB_BUILD_LIBEV=ON", | ||
"-DLCB_BUILD_LIBUV=ON" | ||
system "make", "install" | ||
end | ||
end | ||
|
||
test do | ||
system "#{bin}/cbc", "version" | ||
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.
Please use the normal homepage.
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.
What is wrong with this home page? Why it is not normal?
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 is a specific document. It's not a homepage.
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.
It's the homepage for this particular library. We could also send them to the README on github, but the page pointed to here is the best intro for most developers.