Skip to content

Commit

Permalink
[libxslt] Remove unneeded helper (#21480)
Browse files Browse the repository at this point in the history
* [libxslt] Remove unneeded helper

* [libxslt] Fix release-only builds for Linux
  • Loading branch information
ras0219-msft authored Nov 17, 2021
1 parent a4b5cde commit 1a5075b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
10 changes: 7 additions & 3 deletions ports/libxslt/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ if (VCPKG_TARGET_IS_WINDOWS)
# Rename the libs to match the dynamic lib names
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/libxslt_a${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" "${CURRENT_PACKAGES_DIR}/lib/libxslt${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/libexslt_a${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" "${CURRENT_PACKAGES_DIR}/lib/libexslt${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/libxslt_a${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" "${CURRENT_PACKAGES_DIR}/debug/lib/libxslt${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/libexslt_a${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" "${CURRENT_PACKAGES_DIR}/debug/lib/libexslt${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
if(NOT VCPKG_BUILD_TYPE)
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/libxslt_a${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" "${CURRENT_PACKAGES_DIR}/debug/lib/libxslt${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/libexslt_a${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" "${CURRENT_PACKAGES_DIR}/debug/lib/libexslt${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
endif()
endif()

set(prefix "")
Expand Down Expand Up @@ -146,7 +148,9 @@ else()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/libxslt/man3")

vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/libxslt/bin/xslt-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../../")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/libxslt/debug/bin/xslt-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../../../")
if(NOT VCPKG_BUILD_TYPE)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/libxslt/debug/bin/xslt-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../../../")
endif()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libxslt/xsltconfig.h" "#define LIBXSLT_DEFAULT_PLUGINS_PATH() \"${CURRENT_INSTALLED_DIR}/lib/libxslt-plugins\"" "")
endif()

Expand Down
9 changes: 2 additions & 7 deletions ports/libxslt/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
{
"name": "libxslt",
"version": "1.1.34",
"port-version": 2,
"port-version": 3,
"description": "Libxslt is a XSLT library implemented in C for XSLT 1.0 and most of EXSLT",
"homepage": "https://github.com/GNOME/libxslt",
"supports": "!uwp",
"dependencies": [
"liblzma",
"libxml2",
{
"name": "vcpkg-pkgconfig-get-modules",
"host": true,
"platform": "!windows"
}
"libxml2"
]
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4062,7 +4062,7 @@
},
"libxslt": {
"baseline": "1.1.34",
"port-version": 2
"port-version": 3
},
"libyaml": {
"baseline": "0.2.5",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libxslt.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f139a7054e2347bc0f48ba6cabe14a74e7d1db36",
"version": "1.1.34",
"port-version": 3
},
{
"git-tree": "0f0b69e249f116b5e20999f9c4c16004093b49ec",
"version": "1.1.34",
Expand Down

0 comments on commit 1a5075b

Please sign in to comment.