add libxtst (#129)
parent
30e420c5b5
commit
3b8e500d30
4 changed files with 52 additions and 1 deletions
@ -0,0 +1,22 @@ |
||||
package("gnu-sed") |
||||
|
||||
set_kind("binary") |
||||
set_homepage("https://www.gnu.org/software/sed/") |
||||
set_description("GNU implementation of the famous stream editor.") |
||||
set_license("GPL-3.0") |
||||
|
||||
set_urls("https://ftp.gnu.org/gnu/sed/sed-$(version).tar.xz", |
||||
"https://ftpmirror.gnu.org/sed/sed-$(version).tar.xz") |
||||
add_versions("4.8", "f79b0cfea71b37a8eeec8490db6c5f7ae7719c35587f21edb0617f370eeff633") |
||||
|
||||
on_install("macosx", "linux", function (package) |
||||
local configs = {"--disable-dependency-tracking"} |
||||
import("package.tools.autoconf").install(package, configs) |
||||
end) |
||||
|
||||
on_test(function (package) |
||||
os.vrun("sed --version") |
||||
io.writefile("test.txt", "Hello world!") |
||||
os.vrunv("sed", {"-i", "s/world/World/g", "test.txt"}) |
||||
assert(io.readfile("test.txt") == "Hello World!") |
||||
end) |
@ -0,0 +1,25 @@ |
||||
package("libxtst") |
||||
|
||||
set_homepage("https://www.x.org/") |
||||
set_description("X.Org: Client API for the XTEST & RECORD extensions") |
||||
set_license("MIT") |
||||
|
||||
set_urls("https://www.x.org/archive/individual/lib/libXtst-$(version).tar.bz2") |
||||
add_versions("1.2.3", "4655498a1b8e844e3d6f21f3b2c4e2b571effb5fd83199d428a6ba7ea4bf5204") |
||||
|
||||
if is_plat("macosx", "linux") then |
||||
add_deps("pkg-config", "util-macros", "libxi", "xorgproto") |
||||
end |
||||
|
||||
on_install("macosx", "linux", function (package) |
||||
local configs = {"--sysconfdir=" .. package:installdir("etc"), |
||||
"--localstatedir=" .. package:installdir("var"), |
||||
"--disable-dependency-tracking", |
||||
"--disable-silent-rules", |
||||
"--enable-specs=no"} |
||||
import("package.tools.autoconf").install(package, configs) |
||||
end) |
||||
|
||||
on_test(function (package) |
||||
assert(package:has_ctypes("XRecordRange8", {includes = {"X11/Xlib.h", "X11/extensions/record.h"}})) |
||||
end) |
Loading…
Reference in new issue