aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Huff <48933316+trollham@users.noreply.github.com>2020-06-11 23:16:43 -0600
committerGitHub <noreply@github.com>2020-06-11 22:16:43 -0700
commitca52d429b63391cbf7eb228cad4c7567200bee41 (patch)
treed5cc96ab33e3fb3a0933180ec45460b12ae58c72
parentac5e475583f69196138830bfaae41df7e826f067 (diff)
downloadvcpkg-ca52d429b63391cbf7eb228cad4c7567200bee41.tar.gz
vcpkg-ca52d429b63391cbf7eb228cad4c7567200bee41.zip
[librabbitmq] Update to use rabbitmq-config.cmake (#11733)
* Update librabbitmq portfile to use rabbitmq-config.cmake * Change version and update outdated vcpkg functions * Capitalization error Co-authored-by: Eric Huff <thegreaterici@gmail.com>
-rw-r--r--ports/librabbitmq/CONTROL2
-rw-r--r--ports/librabbitmq/portfile.cmake10
2 files changed, 6 insertions, 6 deletions
diff --git a/ports/librabbitmq/CONTROL b/ports/librabbitmq/CONTROL
index fc4e37c6d..ae06b8b2b 100644
--- a/ports/librabbitmq/CONTROL
+++ b/ports/librabbitmq/CONTROL
@@ -1,5 +1,5 @@
Source: librabbitmq
-Version: 0.10.0
+Version: 2020-06-03
Build-Depends: openssl
Homepage: https://github.com/alanxz/rabbitmq-c
Description: A C-language AMQP client library for use with v2.0+ of the RabbitMQ broker.
diff --git a/ports/librabbitmq/portfile.cmake b/ports/librabbitmq/portfile.cmake
index 886f0f9a5..7957cfbfd 100644
--- a/ports/librabbitmq/portfile.cmake
+++ b/ports/librabbitmq/portfile.cmake
@@ -1,10 +1,8 @@
-include(vcpkg_common_functions)
-
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO alanxz/rabbitmq-c
- REF ffe918a5fcef72038a88054dca3c56762b1953d4 # v0.10.0
- SHA512 05756176feffc3ccff9bf4f8416191c382c9e5b51d7dd72664cea0407c847d50cb4048b8669415d879396c0c7e8c1c38c65a66a98701e55de09afed893abc5a0
+ REF d416b8b16d196085106cfe137a0ff6919a9f6752
+ SHA512 3fc137893fc18509a3e583cc8d40a8e91f219063237b9fd018a65cf14da188914ddba3a031c4bc033a886fed19fc6291d1b28b55458b9163eb6d20425b0474dc
HEAD_REF master
PATCHES
fix-uwpwarning.patch
@@ -24,7 +22,9 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/rabbitmq-c TARGET_PATH share/rabbitmq-c)
+
vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
-file(INSTALL ${SOURCE_PATH}/LICENSE-MIT DESTINATION ${CURRENT_PACKAGES_DIR}/share/librabbitmq RENAME copyright)
+file(INSTALL ${SOURCE_PATH}/LICENSE-MIT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)