Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fontconfig][freetds][qtwebengine] Take gperf from vcpkg #24677

Merged
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions ports/fontconfig/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ vcpkg_from_gitlab(
libgetopt.patch
)

vcpkg_find_acquire_program(GPERF)
get_filename_component(GPERF_PATH ${GPERF} DIRECTORY)
vcpkg_add_to_path(${GPERF_PATH})
vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/gperf")

vcpkg_configure_meson(
SOURCE_PATH ${SOURCE_PATH}
Expand Down
6 changes: 5 additions & 1 deletion ports/fontconfig/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fontconfig",
"version": "2.14.0",
"port-version": 1,
"port-version": 2,
"description": "Library for configuring and customizing font access.",
"homepage": "https://www.freedesktop.org/wiki/Software/fontconfig",
"license": "MIT",
Expand All @@ -11,6 +11,10 @@
"freetype",
"getopt",
"gettext",
{
"name": "gperf",
"host": true
},
"libiconv",
{
"name": "libuuid",
Expand Down
10 changes: 1 addition & 9 deletions ports/freetds/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,7 @@ vcpkg_find_acquire_program(PERL)
get_filename_component(PERL_PATH ${PERL} DIRECTORY)
vcpkg_add_to_path("${PERL_PATH}")

if (VCPKG_TARGET_IS_WINDOWS)
vcpkg_find_acquire_program(GPERF)
get_filename_component(GPERF_PATH ${GPERF} DIRECTORY)
vcpkg_add_to_path(${GPERF_PATH})
else()
if (NOT EXISTS /usr/bin/gperf)
message(FATAL_ERROR "freetds requires gperf, these can be installed on Ubuntu systems via apt-get install gperf.")
endif()
endif()
vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/gperf")

set(_WCHAR_SUPPORT ON)
if(NOT VCPKG_TARGET_IS_WINDOWS)
Expand Down
5 changes: 5 additions & 0 deletions ports/freetds/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"name": "freetds",
"version": "1.3.10",
"port-version": 1,
"description": "Implementation of the Tabular Data Stream protocol",
"homepage": "https://www.freetds.org",
"license": "GPL-2.0-only",
"supports": "windows & !uwp",
"dependencies": [
{
"name": "gperf",
"host": true
},
{
"name": "libmysql",
"platform": "windows"
Expand Down
2 changes: 1 addition & 1 deletion ports/gperf/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h.in DESTINATION ${SOURCE_PATH})

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS_RELEASE -DCMAKE_INSTALL_BINDIR=tools
OPTIONS_RELEASE -DCMAKE_INSTALL_BINDIR=tools/gperf
)

vcpkg_install_cmake()
Expand Down
2 changes: 1 addition & 1 deletion ports/gperf/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gperf",
"version": "3.1",
"port-version": 3,
"port-version": 4,
"description": "GNU perfect hash function generator",
"homepage": "https://www.gnu.org/software/gperf/"
}
4 changes: 1 addition & 3 deletions ports/kf5codecs/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ vcpkg_from_github(
# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n")

find_program(GPERF_EXE NAMES gperf PATHS "${CURRENT_HOST_INSTALLED_DIR}/tools" NO_DEFAULT_PATH)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
"-DGperf_EXECUTABLE=${GPERF_EXE}"
"-DGperf_EXECUTABLE=${CURRENT_HOST_INSTALLED_DIR}/tools/gperf/gperf${VCPKG_HOST_EXECUTABLE_SUFFIX}"
)

vcpkg_cmake_install()
Expand Down
1 change: 1 addition & 0 deletions ports/kf5codecs/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "kf5codecs",
"version": "5.89.0",
"port-version": 1,
"description": "String encoding library",
"homepage": "https://api.kde.org/frameworks/kcodecs/html/index.html",
"dependencies": [
Expand Down
11 changes: 1 addition & 10 deletions ports/proxygen/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,7 @@ vcpkg_find_acquire_program(PYTHON3)
get_filename_component(PYTHON3_PATH "${PYTHON3}" DIRECTORY)
vcpkg_add_to_path(${PYTHON3_PATH})

if (VCPKG_TARGET_IS_WINDOWS)
vcpkg_find_acquire_program(GPERF)
get_filename_component(GPERF_PATH ${GPERF} DIRECTORY)
vcpkg_add_to_path(${GPERF_PATH})
else()
# gperf only have windows package in vcpkg now.
if (NOT EXISTS /usr/bin/gperf)
message(FATAL_ERROR "proxygen requires gperf, these can be installed on Ubuntu systems via apt-get install gperf.")
endif()
endif()
vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/gperf")

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
Expand Down
6 changes: 5 additions & 1 deletion ports/proxygen/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "proxygen",
"version-string": "2022.03.21.00",
"port-version": 1,
"port-version": 2,
"description": "It comprises the core C++ HTTP abstractions used at Facebook.",
"homepage": "https://github.com/facebook/proxygen",
"supports": "!windows",
Expand All @@ -16,6 +16,10 @@
"boost-thread",
"fizz",
"folly",
{
"name": "gperf",
"host": true
},
"openssl",
{
"name": "vcpkg-cmake",
Expand Down
6 changes: 3 additions & 3 deletions ports/qtwebengine/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ endif()

vcpkg_find_acquire_program(FLEX)
vcpkg_find_acquire_program(BISON)
vcpkg_find_acquire_program(GPERF)

#vcpkg_find_acquire_program(GN) # Qt builds its own internal version

Expand All @@ -54,8 +53,6 @@ if(NOT NODEJS)
message(FATAL_ERROR "node not found! Please install it via your system package manager!")
endif()

get_filename_component(GPERF_DIR "${GPERF}" DIRECTORY )
vcpkg_add_to_path(PREPEND "${GPERF_DIR}")
get_filename_component(NODEJS_DIR "${NODEJS}" DIRECTORY )
vcpkg_add_to_path(PREPEND "${NODEJS_DIR}")
get_filename_component(FLEX_DIR "${FLEX}" DIRECTORY )
Expand All @@ -73,6 +70,9 @@ else()
x_vcpkg_get_python_packages(PYTHON_EXECUTABLE "${PYTHON3}" PACKAGES html5lib)
endif()

vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/gperf")
set(GPERF "${CURRENT_HOST_INSTALLED_DIR}/tools/gperf/gperf${VCPKG_HOST_EXECUTABLE_SUFFIX}")

if(WIN32) # WIN32 HOST probably has win_flex and win_bison!
if(NOT EXISTS "${FLEX_DIR}/flex${VCPKG_HOST_EXECUTABLE_SUFFIX}")
file(CREATE_LINK "${FLEX}" "${FLEX_DIR}/flex${VCPKG_HOST_EXECUTABLE_SUFFIX}")
Expand Down
2 changes: 1 addition & 1 deletion ports/qtwebengine/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$comment": "x86-windows is not within the upstream support matrix of Qt6",
"name": "qtwebengine",
"version": "6.3.0",
"port-version": 1,
"port-version": 2,
talregev marked this conversation as resolved.
Show resolved Hide resolved
"description": "Qt WebEngine",
"homepage": "https://www.qt.io/",
"license": null,
Expand Down
12 changes: 6 additions & 6 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2290,7 +2290,7 @@
},
"fontconfig": {
"baseline": "2.14.0",
"port-version": 1
"port-version": 2
},
"foonathan-memory": {
"baseline": "2019-07-21",
Expand Down Expand Up @@ -2338,7 +2338,7 @@
},
"freetds": {
"baseline": "1.3.10",
"port-version": 0
"port-version": 1
},
"freetype": {
"baseline": "2.12.1",
Expand Down Expand Up @@ -2610,7 +2610,7 @@
},
"gperf": {
"baseline": "3.1",
"port-version": 3
"port-version": 4
},
"gperftools": {
"baseline": "2019-09-02",
Expand Down Expand Up @@ -3146,7 +3146,7 @@
},
"kf5codecs": {
"baseline": "5.89.0",
"port-version": 0
"port-version": 1
},
"kf5completion": {
"baseline": "5.89.0",
Expand Down Expand Up @@ -5606,7 +5606,7 @@
},
"proxygen": {
"baseline": "2022.03.21.00",
"port-version": 1
"port-version": 2
},
"psimd": {
"baseline": "2021-02-21",
Expand Down Expand Up @@ -6014,7 +6014,7 @@
},
"qtwebengine": {
"baseline": "6.3.0",
"port-version": 1
"port-version": 2
},
"qtwebsockets": {
"baseline": "6.3.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/f-/fontconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "5c02d2ba027c9f390729a7e0899e63c853450dfb",
"version": "2.14.0",
"port-version": 2
},
{
"git-tree": "b1b1de99dba230f78c88bb9d73329bed77227ad4",
"version": "2.14.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/f-/freetds.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "7d2a8c09978586d81a52529c94a96dd2f1208ebe",
"version": "1.3.10",
"port-version": 1
},
{
"git-tree": "c388be84a1c4bb7156aaf173f1ee348d500db8ad",
"version": "1.3.10",
Expand Down
5 changes: 5 additions & 0 deletions versions/g-/gperf.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c6e1937825fa20f40768ce8cafbe841df81a2cca",
"version": "3.1",
"port-version": 4
},
{
"git-tree": "15455ef99f1ce92d079d047e90fc486c098c6b18",
"version": "3.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/k-/kf5codecs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3f089e2bf752a07b60871e0cbc1bcdf085b3e7fd",
"version": "5.89.0",
"port-version": 1
},
{
"git-tree": "689fa05db3db3ea404ccec181b0a8bba8e614562",
"version": "5.89.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/p-/proxygen.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "27f0950fcf11ac8f561591363715ddf581146325",
"version-string": "2022.03.21.00",
"port-version": 2
},
{
"git-tree": "fb9493259e80636642c06b40479c36b6b4c9cba2",
"version-string": "2022.03.21.00",
Expand Down
5 changes: 5 additions & 0 deletions versions/q-/qtwebengine.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ba12115753d2ea8f4527fdb135447c2e76923d68",
"version": "6.3.0",
"port-version": 2
},
{
"git-tree": "6562d0a0294290afd20da039ff60602c1f3f4701",
"version": "6.3.0",
Expand Down