diff options
| author | Chuck Walbourn <walbourn@users.noreply.github.com> | 2021-06-21 14:20:45 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-21 14:20:45 -0700 |
| commit | cdc6c6b9c8c9755ff4fb55d417e6fd0209e2213e (patch) | |
| tree | 424962f00c2982b46851d8145ea194304c870f7a /ports/spectra | |
| parent | 8d2e732b732ecf67731302f9b7fda75a10d0f574 (diff) | |
| download | vcpkg-cdc6c6b9c8c9755ff4fb55d417e6fd0209e2213e.tar.gz vcpkg-cdc6c6b9c8c9755ff4fb55d417e6fd0209e2213e.zip | |
[uvatlas, spectra] ports updated (#18404)
* [uvatlas, spectra] ports updated
* Update versions
* Minor code review
* Update version
* Code review feedback
* Update baseline
Diffstat (limited to 'ports/spectra')
| -rw-r--r-- | ports/spectra/CONTROL | 5 | ||||
| -rw-r--r-- | ports/spectra/portfile.cmake | 13 | ||||
| -rw-r--r-- | ports/spectra/vcpkg.json | 12 |
3 files changed, 23 insertions, 7 deletions
diff --git a/ports/spectra/CONTROL b/ports/spectra/CONTROL deleted file mode 100644 index c1e872b83..000000000 --- a/ports/spectra/CONTROL +++ /dev/null @@ -1,5 +0,0 @@ -Source: spectra
-Version: 0.9.0 -Description: A header-only C++ library for large scale eigenvalue problems
-Homepage: https://spectralib.org
-Build-Depends: eigen3
diff --git a/ports/spectra/portfile.cmake b/ports/spectra/portfile.cmake index bad7e4dbb..6fefd4abb 100644 --- a/ports/spectra/portfile.cmake +++ b/ports/spectra/portfile.cmake @@ -6,5 +6,14 @@ vcpkg_from_github( 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)
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/spectra/vcpkg.json b/ports/spectra/vcpkg.json new file mode 100644 index 000000000..96bdfd299 --- /dev/null +++ b/ports/spectra/vcpkg.json @@ -0,0 +1,12 @@ +{ + "name": "spectra", + "version": "0.9.0", + "port-version": 1, + "description": "A header-only C++ library for large scale eigenvalue problems", + "homepage": "https://spectralib.org", + "documentation": "https://spectralib.org/quick-start.html", + "license": "MPL-2.0", + "dependencies": [ + "eigen3" + ] +} |
