Add niftiheader package (#1144)

* Add niftiheader package

* Update xmake.lua

* Update xmake.lua

Co-authored-by: charles seizilles <charles.seizilles@iconeus.com>
pull/1154/head
Charles Seizilles 3 years ago committed by GitHub
parent ee5a280779
commit 220fd9f164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 19
      packages/n/niftiheader/xmake.lua

@ -0,0 +1,19 @@
package("niftiheader")
set_kind("library", {headeronly = true})
set_homepage("https://nifti.nimh.nih.gov/")
set_description("Header structure descriptions for the nifti1 and nifti2 file formats.")
set_license("Public Domain")
add_urls("https://github.com/xmake-mirror/nifti2.git")
add_versions("0.0.1", "d2461b27888fd5db659edb8b788c7ce6203f703c")
on_install(function(package)
os.cp("nifti1.h", package:installdir("include"))
os.cp("nifti2.h", package:installdir("include"))
end)
on_test(function(package)
assert(package:has_ctypes("nifti_1_header", {includes = {"nifti1.h"}}))
assert(package:has_ctypes("nifti_2_header", {includes = {"nifti2.h"}}))
end)
Loading…
Cancel
Save