-
-
Notifications
You must be signed in to change notification settings - Fork 518
Add zix 0.8.0 to xrepo #9871
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
base: dev
Are you sure you want to change the base?
Add zix 0.8.0 to xrepo #9871
Changes from 1 commit
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,29 @@ | ||
| package("zix") | ||
| set_description("A lightweight C99 portability and data structure library") | ||
| set_license("0BSD", "ISC") | ||
|
|
||
| add_urls("https://gitlab.com/drobilla/zix/-/archive/v$(version)/zix-v$(version).tar.gz", | ||
| "https://gitlab.com/drobilla/zix.git") | ||
|
|
||
| add_versions("0.8.0", "51d70d63e970214db84e32d55377d84090c02145f5768265ab140d117f2b8e24") | ||
|
|
||
| add_deps("meson", "ninja") | ||
|
|
||
| on_install(function (package) | ||
| local configs = { | ||
| "-Dbenchmarks=disabled", | ||
| "-Ddocs=disabled", | ||
| "-Dtests=disabled", | ||
| "-Dtests_cpp=disabled", | ||
| } | ||
| import("package.tools.meson").install(package, configs) | ||
| package:add("includedirs", path.join("include", "zix-0")) | ||
| if not package:config("shared") then | ||
| package:add("defines", "ZIX_STATIC") | ||
| end | ||
|
|
||
| end) | ||
|
Comment on lines
+19
to
+27
Contributor
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. The |
||
|
|
||
| on_test(function (package) | ||
| assert(package:has_cfuncs("zix_strerror", {includes = "zix/status.h"})) | ||
| 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.
set_licenseshould ideally be a single string following the SPDX expression format (e.g.,"0BSD OR ISC"or"0BSD AND ISC"). Passing multiple arguments may result in only the first license being correctly recognized by the package manager metadata parser.