Skip to content
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

tkrzw: add package #5548

Closed
wants to merge 8 commits into from
Closed
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
3 changes: 2 additions & 1 deletion .github/workflows/fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
dnf -y install gfortran p7zip which
dnf -y install mesa-libGL-devel mesa-libGLU-devel
dnf -y install @development-tools @rpm-development-tools
dnf -y install copr-cli make gcc-c++ libatomic libcxx-devel
dnf -y install copr-cli make gcc-c++ libcxx-devel
dnf -y install libatomic libatomic-static
dnf -y upgrade git
dnf -y install perl
dnf -y install glibc-static libstdc++-static
Expand Down
24 changes: 24 additions & 0 deletions packages/t/tkrzw/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package("tkrzw")
set_homepage("https://dbmx.net/tkrzw/")
set_description("Tkrzw: a set of implementations of DBM")
set_license("Apache-2.0")

set_urls("https://github.com/estraier/tkrzw.git")

add_versions("2024-06-04", "409a57bf7507a4079d0519bc4a023da8ab79e132")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

x.y.z

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
😰


if is_plat("linux") then
add_syslinks("atomic")
end

on_install("linux", function (package)
os.vrun("sudo ln -s /lib/libatomic.so /lib/libatomic.a")
local configs = {}
table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no"))
table.insert(configs, "--enable-static=" .. (package:config("shared") and "no" or "yes"))
import("package.tools.autoconf").install(package, configs)
end)

on_test(function (package)
assert(package:has_cxxfuncs("tkrzw::Print()", {includes = "tkrzw_cmd_util.h"}))
end)
Loading