Skip to content

Commit

Permalink
[vcpkg-tool-meson] Fix installation (#35957)
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt committed Jan 4, 2024
1 parent 00d7b89 commit 70fd6a9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
5 changes: 5 additions & 0 deletions ports/vcpkg-tool-meson/install.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/meson")
file(INSTALL "${SOURCE_PATH}/meson.py"
"${SOURCE_PATH}/mesonbuild"
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/meson"
)
12 changes: 8 additions & 4 deletions ports/vcpkg-tool-meson/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ vcpkg_from_github(
remove-freebsd-pcfile-specialization.patch
)

file(INSTALL "${SOURCE_PATH}"
DESTINATION "${CURRENT_PACKAGES_DIR}/tools"
RENAME "meson"
vcpkg_execute_required_process(
COMMAND "${CMAKE_COMMAND}"
"-DSOURCE_PATH=${SOURCE_PATH}"
"-DCURRENT_PACKAGES_DIR=${CURRENT_PACKAGES_DIR}"
-P "${CURRENT_PORT_DIR}/install.cmake"
WORKING_DIRECTORY "${VCPKG_ROOT_DIR}"
LOGNAME install
)

configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-port-config.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-port-config.cmake" @ONLY)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-port-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

z_vcpkg_find_acquire_program_find_internal("${program}"
INTERPRETER "${interpreter}"
Expand Down
2 changes: 1 addition & 1 deletion ports/vcpkg-tool-meson/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vcpkg-tool-meson",
"version": "0.63",
"port-version": 1,
"port-version": 2,
"description": "Meson build system",
"homepage": "https://github.com/mesonbuild/meson",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -8874,7 +8874,7 @@
},
"vcpkg-tool-meson": {
"baseline": "0.63",
"port-version": 1
"port-version": 2
},
"vcpkg-tool-mozbuild": {
"baseline": "4.0.2",
Expand Down
5 changes: 5 additions & 0 deletions versions/v-/vcpkg-tool-meson.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3f6f5419cfc743a85e4f1fb1b582d4728b79c1e2",
"version": "0.63",
"port-version": 2
},
{
"git-tree": "d4234634624fc778e5d80db63cf53bac8587ebb9",
"version": "0.63",
Expand Down

0 comments on commit 70fd6a9

Please sign in to comment.