Skip to content

Commit

Permalink
new port Spectralib 0.7.0 (#5129)
Browse files Browse the repository at this point in the history
* 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".
  • Loading branch information
TheScarfix authored and Codiferous committed Jan 26, 2019
1 parent 89c6f6f commit 715aefc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ports/spectra/CONTROL
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions ports/spectra/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 715aefc

Please sign in to comment.