From d95f86ca08386f4a999ff4ca9db696b228f1dc52 Mon Sep 17 00:00:00 2001 From: Phoebe <20694052+PhoebeHui@users.noreply.github.com> Date: Mon, 9 Aug 2021 23:56:04 +0800 Subject: [PATCH] [librsvg] Remove debug postfix (#19460) * [librsvg] Remove debug postfix * Update the baseline version --- ports/librsvg/CMakeLists.txt | 6 ++---- ports/librsvg/portfile.cmake | 18 ++++++++---------- ports/librsvg/vcpkg.json | 12 ++++++++++-- versions/baseline.json | 2 +- versions/l-/librsvg.json | 5 +++++ 5 files changed, 26 insertions(+), 17 deletions(-) diff --git a/ports/librsvg/CMakeLists.txt b/ports/librsvg/CMakeLists.txt index 67cfced8c2..13c3194863 100644 --- a/ports/librsvg/CMakeLists.txt +++ b/ports/librsvg/CMakeLists.txt @@ -86,8 +86,6 @@ else() list(APPEND LIBRSVG_SOURCES rsvg.symbols) endif() -set(CMAKE_DEBUG_POSTFIX "d") - add_library(rsvg-2.40 ${LIBRSVG_SOURCES}) add_library(pixbufloader-svg ${PIXBUFLOADERSVG_SOURCES}) @@ -130,8 +128,8 @@ install( ) install(FILES - rsvg.h - rsvg-cairo.h + rsvg.h + rsvg-cairo.h librsvg-features.h librsvg-enum-types.h DESTINATION include/librsvg diff --git a/ports/librsvg/portfile.cmake b/ports/librsvg/portfile.cmake index f87ed15b9e..8e47fada4c 100644 --- a/ports/librsvg/portfile.cmake +++ b/ports/librsvg/portfile.cmake @@ -11,25 +11,23 @@ vcpkg_extract_source_archive_ex( ARCHIVE ${ARCHIVE} ) -file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) -configure_file(${CMAKE_CURRENT_LIST_DIR}/config.h.linux ${SOURCE_PATH}/config.h.linux COPYONLY) +file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}") +configure_file("${CMAKE_CURRENT_LIST_DIR}/config.h.linux" "${SOURCE_PATH}/config.h.linux" COPYONLY) vcpkg_find_acquire_program(PKGCONFIG) -vcpkg_configure_cmake( - SOURCE_PATH ${SOURCE_PATH} +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" DISABLE_PARALLEL_CONFIGURE - PREFER_NINJA OPTIONS -DPKG_CONFIG_EXECUTABLE=${PKGCONFIG} ) -vcpkg_install_cmake() +vcpkg_cmake_install() vcpkg_copy_pdbs() -vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-librsvg TARGET_PATH share/unofficial-librsvg) +vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-librsvg CONFIG_PATH share/unofficial-librsvg) -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") -# Handle copyright -file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file +file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) \ No newline at end of file diff --git a/ports/librsvg/vcpkg.json b/ports/librsvg/vcpkg.json index 49114f4824..eea2a5efde 100644 --- a/ports/librsvg/vcpkg.json +++ b/ports/librsvg/vcpkg.json @@ -1,13 +1,21 @@ { "name": "librsvg", "version": "2.40.20", - "port-version": 4, + "port-version": 5, "description": "A small library to render Scalable Vector Graphics (SVG)", "homepage": "https://gitlab.gnome.org/GNOME/librsvg", "dependencies": [ "cairo", "gdk-pixbuf", "libcroco", - "pango" + "pango", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } ] } diff --git a/versions/baseline.json b/versions/baseline.json index 19650fadcb..271dc491d1 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3562,7 +3562,7 @@ }, "librsvg": { "baseline": "2.40.20", - "port-version": 4 + "port-version": 5 }, "librsync": { "baseline": "2020-09-16", diff --git a/versions/l-/librsvg.json b/versions/l-/librsvg.json index 82d5bb16c7..735241c8a4 100644 --- a/versions/l-/librsvg.json +++ b/versions/l-/librsvg.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "f1c471322f23a090a973337e83f0d9743adc549d", + "version": "2.40.20", + "port-version": 5 + }, { "git-tree": "0a02c4941810ea725b6686e203ae81deb257e24c", "version": "2.40.20",