diff options
| author | Alexander Karatarakis <alex@karatarakis.com> | 2018-01-03 18:05:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-03 18:05:04 +0200 |
| commit | cc0f5401739d19a7e42cf4caf1906ada3c9fb08d (patch) | |
| tree | 2b92b34ef01bf0a072564ac6876de0393972f581 | |
| parent | ca1248e05c1777f77b6a84eabdc07d21db27d1b3 (diff) | |
| parent | 44a1023f047bb518659e326c82650c7d4bea0d0b (diff) | |
| download | vcpkg-cc0f5401739d19a7e42cf4caf1906ada3c9fb08d.tar.gz vcpkg-cc0f5401739d19a7e42cf4caf1906ada3c9fb08d.zip | |
Merge pull request #2433 from fcharlie/master
[libgit2] Initial port.
| -rw-r--r-- | ports/libgit2/CONTROL | 3 | ||||
| -rw-r--r-- | ports/libgit2/portfile.cmake | 30 |
2 files changed, 33 insertions, 0 deletions
diff --git a/ports/libgit2/CONTROL b/ports/libgit2/CONTROL new file mode 100644 index 000000000..779bf10c9 --- /dev/null +++ b/ports/libgit2/CONTROL @@ -0,0 +1,3 @@ +Source: libgit2
+Version: 0.26.0
+Description: Git linkable library
diff --git a/ports/libgit2/portfile.cmake b/ports/libgit2/portfile.cmake new file mode 100644 index 000000000..e624e37eb --- /dev/null +++ b/ports/libgit2/portfile.cmake @@ -0,0 +1,30 @@ +# libgit2 uses winapi functions not available in WindowsStore
+if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore)
+ message(FATAL_ERROR "Error: UWP builds are not supported.")
+endif()
+
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO libgit2/libgit2
+ REF v0.26.0
+ SHA512 b6e51f2216c7c23f352572b780ea1325a25a517396709f036bb573295c2bd02aa505ba616846ac7e07863e99e640e7d47fefc5727478a257b283da99060ee47c
+ HEAD_REF master)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DBUILD_CLAR=OFF
+ OPTIONS_DEBUG
+ -DBUILD_CLAR=OFF
+)
+
+
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libgit2)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/libgit2/COPYING ${CURRENT_PACKAGES_DIR}/share/libgit2/copyright)
|
