aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ltla-cppirlba
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/ltla-cppirlba')
-rw-r--r--vcpkg/ports/ltla-cppirlba/portfile.cmake26
-rw-r--r--vcpkg/ports/ltla-cppirlba/vcpkg.json20
2 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/ltla-cppirlba/portfile.cmake b/vcpkg/ports/ltla-cppirlba/portfile.cmake
new file mode 100644
index 0000000..1a1feea
--- /dev/null
+++ b/vcpkg/ports/ltla-cppirlba/portfile.cmake
@@ -0,0 +1,26 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO LTLA/CppIrlba
+ REF "v${VERSION}"
+ SHA512 7ddeccfe0a0810e32fb4385cf5a6545831764acb0ea2c96373228beceee897b20251391421b85b08e51baf8d5dca7c4b88347145a784ec6d7c3e11ff05a1c5ad
+ HEAD_REF master
+)
+
+set(VCPKG_BUILD_TYPE "release") # header-only port
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DIRLBA_FETCH_EXTERN=OFF
+ -DIRLBA_TESTS=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(
+ PACKAGE_NAME ltla_irlba
+ CONFIG_PATH lib/cmake/ltla_irlba
+)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/ltla-cppirlba/vcpkg.json b/vcpkg/ports/ltla-cppirlba/vcpkg.json
new file mode 100644
index 0000000..484b00d
--- /dev/null
+++ b/vcpkg/ports/ltla-cppirlba/vcpkg.json
@@ -0,0 +1,20 @@
+{
+ "name": "ltla-cppirlba",
+ "version": "2.0.2",
+ "description": "A C++ port of the IRLBA algorithm, based on the C code in the R package.",
+ "homepage": "https://github.com/LTLA/CppIrlba",
+ "license": "MIT",
+ "dependencies": [
+ "eigen3",
+ "ltla-aarand",
+ "ltla-subpar",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}