aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Trunk <lennart.trunk@outlook.de>2019-01-26 21:56:41 +0100
committerCodiferous <44823842+Codiferous@users.noreply.github.com>2019-01-26 12:56:41 -0800
commit715aefc2138ae0c3577294cfd3e2bdf94126122d (patch)
treee831cb7e6ff86ced477b79493362b985688523c0
parent89c6f6ff892c45050ccc57d2ac8b08c80eda08c0 (diff)
downloadvcpkg-715aefc2138ae0c3577294cfd3e2bdf94126122d.tar.gz
vcpkg-715aefc2138ae0c3577294cfd3e2bdf94126122d.zip
new port Spectralib 0.7.0 (#5129)
* add CONTROL and portfile for spectralib 0.7.0 * Rename spectralib -> spectra I'm making this change based on the naming in the other repositories that the library is packaged in (DPorts, FreeBSD Ports) and the terminology used on the website. Code examples use Spectra* for the prefixes, so I think using "Spectra" is better than "spectralib".
-rw-r--r--ports/spectra/CONTROL4
-rw-r--r--ports/spectra/portfile.cmake12
2 files changed, 16 insertions, 0 deletions
diff --git a/ports/spectra/CONTROL b/ports/spectra/CONTROL
new file mode 100644
index 000000000..a53636ce7
--- /dev/null
+++ b/ports/spectra/CONTROL
@@ -0,0 +1,4 @@
+Source: spectra
+Version: 0.7.0
+Description: A header-only C++ library for large scale eigenvalue problems https://spectralib.org
+Build-Depends: eigen3
diff --git a/ports/spectra/portfile.cmake b/ports/spectra/portfile.cmake
new file mode 100644
index 000000000..66765259a
--- /dev/null
+++ b/ports/spectra/portfile.cmake
@@ -0,0 +1,12 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO yixuan/spectra
+ REF v0.7.0
+ SHA512 2a1cd9eed6cebabb551cc2f662d38d75c6b24edc8f19ee4feb122958653ecb4533b936447d36712225b48a4f1aa6590b17ca5076d78d506a515e8701752bf32d
+ HEAD_REF master
+)
+
+file(INSTALL ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR})
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/spectra RENAME copyright)