From c8fa9ac7439206aa59aec8df75900bec4e5db965 Mon Sep 17 00:00:00 2001 From: Thomas1664 <46387399+Thomas1664@users.noreply.github.com> Date: Tue, 27 Dec 2022 10:01:50 +0100 Subject: [PATCH] [libsamplerate] Delete docs (#28551) * [libsamplerate] Delete docs * version --- ports/libsamplerate/portfile.cmake | 16 ++++++++-------- ports/libsamplerate/vcpkg.json | 16 ++++++++++++++-- versions/baseline.json | 2 +- versions/l-/libsamplerate.json | 5 +++++ 4 files changed, 28 insertions(+), 11 deletions(-) diff --git a/ports/libsamplerate/portfile.cmake b/ports/libsamplerate/portfile.cmake index a6a76490f0..c75af148f6 100644 --- a/ports/libsamplerate/portfile.cmake +++ b/ports/libsamplerate/portfile.cmake @@ -6,22 +6,22 @@ vcpkg_from_github( HEAD_REF master ) -vcpkg_configure_cmake( - SOURCE_PATH ${SOURCE_PATH} - PREFER_NINJA +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" OPTIONS -DBUILD_TESTING=OFF -DLIBSAMPLERATE_EXAMPLES=OFF ) -vcpkg_install_cmake() +vcpkg_cmake_install() -vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/SampleRate TARGET_PATH share/SampleRate) +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/SampleRate PACKAGE_NAME SampleRate) vcpkg_fixup_pkgconfig() -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc") -file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") vcpkg_copy_pdbs() diff --git a/ports/libsamplerate/vcpkg.json b/ports/libsamplerate/vcpkg.json index aec150fb99..396a08aac8 100644 --- a/ports/libsamplerate/vcpkg.json +++ b/ports/libsamplerate/vcpkg.json @@ -1,6 +1,18 @@ { "name": "libsamplerate", - "version-string": "0.2.2", + "version": "0.2.2", + "port-version": 1, "description": "Sample Rate Converter for audio", - "homepage": "http://libsndfile.github.io/libsamplerate/" + "homepage": "http://libsndfile.github.io/libsamplerate/", + "license": "BSD-2-Clause", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] } diff --git a/versions/baseline.json b/versions/baseline.json index 0f514a46d0..2912b71615 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4194,7 +4194,7 @@ }, "libsamplerate": { "baseline": "0.2.2", - "port-version": 0 + "port-version": 1 }, "libsass": { "baseline": "3.6.5", diff --git a/versions/l-/libsamplerate.json b/versions/l-/libsamplerate.json index 9917373de6..4e79b334c7 100644 --- a/versions/l-/libsamplerate.json +++ b/versions/l-/libsamplerate.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "f21f2fca566e762cdc4fb4b808b075f3c5d3b444", + "version": "0.2.2", + "port-version": 1 + }, { "git-tree": "bb3644f62b521a50eebc5ede8718fc0669b1f6b5", "version-string": "0.2.2",