diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-03-27 17:26:53 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-27 17:26:53 -0700 |
| commit | a1cfa18481f9ea0f7eaaaeb34832d89c51f5f4f1 (patch) | |
| tree | 26c975a005bfb016e878a8dad14401d43e3c4c88 | |
| parent | 125d98cb0848f490c11be5c62e1a87eded67dd7e (diff) | |
| parent | 2aff607cbf0e946773a1804d630655209439930c (diff) | |
| download | vcpkg-a1cfa18481f9ea0f7eaaaeb34832d89c51f5f4f1.tar.gz vcpkg-a1cfa18481f9ea0f7eaaaeb34832d89c51f5f4f1.zip | |
Merge pull request #857 from ethanhs/master
pybind11 port
| -rw-r--r-- | ports/pybind11/CONTROL | 3 | ||||
| -rw-r--r-- | ports/pybind11/portfile.cmake | 22 |
2 files changed, 25 insertions, 0 deletions
diff --git a/ports/pybind11/CONTROL b/ports/pybind11/CONTROL new file mode 100644 index 000000000..a51fd173c --- /dev/null +++ b/ports/pybind11/CONTROL @@ -0,0 +1,3 @@ +Source: pybind11 +Version: 2.1.0 +Description: pybind11 is a lightweight header-only library that exposes C++ types in Python and vice versa, mainly to create Python bindings of existing C++ code.
\ No newline at end of file diff --git a/ports/pybind11/portfile.cmake b/ports/pybind11/portfile.cmake new file mode 100644 index 000000000..933efbd19 --- /dev/null +++ b/ports/pybind11/portfile.cmake @@ -0,0 +1,22 @@ +include(vcpkg_common_functions) + +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/pybind11-2.1.0) + +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/pybind/pybind11/archive/v2.1.0.tar.gz" + FILENAME "pybind11-2.1.0.tar.gz" + SHA512 2f74dcd2b82d8e41da7db36351284fe04511038bec66bdde820da9c0fce92f6d2c5aeb2e48264058a91a775a1a6a99bc757d26ebf001de3df4183d700d46efa1 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS -DPYBIND11_TEST=OFF +) + +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/) + +# copy license +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/pybind11/copyright)
\ No newline at end of file |
