diff options
| author | Neil McNeight <mcneight+github@gmail.com> | 2018-10-17 13:46:46 -0500 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-10-17 11:46:46 -0700 |
| commit | 82eb85df4198ed1f608c5cc51cb962f7eab38dca (patch) | |
| tree | 3788139a9d3887105301e07efcc1524324273e1b | |
| parent | 3d12e5ca72d948121463beec6e48290877684471 (diff) | |
| download | vcpkg-82eb85df4198ed1f608c5cc51cb962f7eab38dca.tar.gz vcpkg-82eb85df4198ed1f608c5cc51cb962f7eab38dca.zip | |
[libyaml] Add new port for libyaml v0.2.1 (#4484)
* [libyaml] Add new port for libyaml v0.2.1
* [libyaml] Cleanup
| -rw-r--r-- | ports/libyaml/0001-fix-version.patch | 15 | ||||
| -rw-r--r-- | ports/libyaml/CONTROL | 3 | ||||
| -rw-r--r-- | ports/libyaml/portfile.cmake | 23 |
3 files changed, 41 insertions, 0 deletions
diff --git a/ports/libyaml/0001-fix-version.patch b/ports/libyaml/0001-fix-version.patch new file mode 100644 index 000000000..c2a59d30f --- /dev/null +++ b/ports/libyaml/0001-fix-version.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1abdd77..60a6b44 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -3,8 +3,8 @@ cmake_minimum_required(VERSION 3.0)
+ project (yaml C)
+
+ set (YAML_VERSION_MAJOR 0)
+-set (YAML_VERSION_MINOR 1)
+-set (YAML_VERSION_PATCH 7)
++set (YAML_VERSION_MINOR 2)
++set (YAML_VERSION_PATCH 1)
+ set (YAML_VERSION_STRING "${YAML_VERSION_MAJOR}.${YAML_VERSION_MINOR}.${YAML_VERSION_PATCH}")
+
+ option(BUILD_SHARED_LIBS "Build libyaml as a shared library" OFF)
diff --git a/ports/libyaml/CONTROL b/ports/libyaml/CONTROL new file mode 100644 index 000000000..1c770b2b9 --- /dev/null +++ b/ports/libyaml/CONTROL @@ -0,0 +1,3 @@ +Source: libyaml
+Version: 0.2.1-1
+Description: A C library for parsing and emitting YAML.
diff --git a/ports/libyaml/portfile.cmake b/ports/libyaml/portfile.cmake new file mode 100644 index 000000000..047692719 --- /dev/null +++ b/ports/libyaml/portfile.cmake @@ -0,0 +1,23 @@ +include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO yaml/libyaml
+ REF 0.2.1
+ SHA512 8b91738183a6d81c2c0381b4279cff9d8f811dac643ce5e08aa869058f5653ad8a2d9d8f9e563b26ad75b617b80b10ccb32753984a50ed684529a90bdd248bff
+ HEAD_REF master
+ PATCHES 0001-fix-version.patch
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/include/config.h)
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
+
+configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/libyaml/copyright COPYONLY)
|
