Skip to content

Commit

Permalink
[graphviz,libslirp] Limit msys to windows (#24032)
Browse files Browse the repository at this point in the history
* Limit vcpkg_acquire_msys to windows

* Add missing quotes

* Update versions
  • Loading branch information
dg0yt authored Apr 8, 2022
1 parent c2978f8 commit bd1ef2d
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 13 deletions.
18 changes: 10 additions & 8 deletions ports/graphviz/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ if(NOT VCPKG_TARGET_IS_WINDOWS)
set(EXTRA_CMAKE_OPTION "-DCMAKE_INSTALL_RPATH=${CURRENT_INSTALLED_DIR}/lib")
endif()

vcpkg_acquire_msys(MSYS_ROOT PACKAGES gawk)
vcpkg_add_to_path("${MSYS_ROOT}/usr/bin")
if(VCPKG_HOST_IS_WINDOWS)
vcpkg_acquire_msys(MSYS_ROOT PACKAGES gawk)
vcpkg_add_to_path("${MSYS_ROOT}/usr/bin")
endif()

vcpkg_find_acquire_program(BISON)
vcpkg_find_acquire_program(FLEX)
Expand All @@ -42,11 +44,11 @@ vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DBISON_EXECUTABLE=${BISON}
-DFLEX_EXECUTABLE=${FLEX}
-DGIT_EXECUTABLE=${GIT}
-DPython3_EXECUTABLE=${PYTHON3}
-DPKG_CONFIG_EXECUTABLE=${CURRENT_HOST_INSTALLED_DIR}/tools/pkgconf/pkgconf
"-DBISON_EXECUTABLE=${BISON}"
"-DFLEX_EXECUTABLE=${FLEX}"
"-DGIT_EXECUTABLE=${GIT}"
"-DPython3_EXECUTABLE=${PYTHON3}"
"-DPKG_CONFIG_EXECUTABLE=${CURRENT_HOST_INSTALLED_DIR}/tools/pkgconf/pkgconf"
${EXTRA_CMAKE_OPTION}
)

Expand All @@ -65,7 +67,7 @@ if(VCPKG_TARGET_IS_WINDOWS)
file(COPY ${PLUGINS} DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
vcpkg_execute_required_process(
COMMAND dot -c
WORKING_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/${PORT}
WORKING_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/${PORT}"
LOGNAME configure-plugins
)
file(COPY "${CURRENT_PACKAGES_DIR}/tools/${PORT}/config6" DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
Expand Down
2 changes: 1 addition & 1 deletion ports/graphviz/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "graphviz",
"version-semver": "2.49.1",
"port-version": 2,
"port-version": 3,
"description": "Graph Visualization Tools",
"homepage": "https://graphviz.org/",
"license": "EPL-1.0",
Expand Down
6 changes: 4 additions & 2 deletions ports/libslirp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ vcpkg_from_gitlab(
HEAD_REF master
)

vcpkg_acquire_msys(MSYS_ROOT)
vcpkg_add_to_path("${MSYS_ROOT}/usr/bin")
if(VCPKG_HOST_IS_WINDOWS)
vcpkg_acquire_msys(MSYS_ROOT)
vcpkg_add_to_path("${MSYS_ROOT}/usr/bin")
endif()

vcpkg_configure_meson(
SOURCE_PATH "${SOURCE_PATH}"
Expand Down
1 change: 1 addition & 0 deletions ports/libslirp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "libslirp",
"version-semver": "4.6.1",
"port-version": 1,
"description": "libslirp is a user-mode networking library used by virtual machines, containers or various tools.",
"homepage": "https://gitlab.freedesktop.org/slirp/libslirp",
"license": "BSD-3-Clause",
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2626,7 +2626,7 @@
},
"graphviz": {
"baseline": "2.49.1",
"port-version": 2
"port-version": 3
},
"greatest": {
"baseline": "1.5.0",
Expand Down Expand Up @@ -3982,7 +3982,7 @@
},
"libslirp": {
"baseline": "4.6.1",
"port-version": 0
"port-version": 1
},
"libsmb2": {
"baseline": "2021-04-29",
Expand Down
5 changes: 5 additions & 0 deletions versions/g-/graphviz.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c1f20d0e1aaccb1035e3fe3eb95d005b4161a56e",
"version-semver": "2.49.1",
"port-version": 3
},
{
"git-tree": "912ac6a1578bd9cf23c20ed7f3bc85c25058c872",
"version-semver": "2.49.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libslirp.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3230fcf2c1b8018c5eac033b618f2cb35217772f",
"version-semver": "4.6.1",
"port-version": 1
},
{
"git-tree": "5a7b734c0850f035d3eb2abc2d3dbf6389124be5",
"version-semver": "4.6.1",
Expand Down

0 comments on commit bd1ef2d

Please sign in to comment.