Skip to content

Commit

Permalink
[harfbuzz] Propagate dependency on glib downstream (#6879)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicroms committed Jun 13, 2019
1 parent d69ea6f commit f1e5cd0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ports/harfbuzz/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: harfbuzz
Version: 2.5.1
Version: 2.5.1-1
Description: HarfBuzz OpenType text shaping engine
Build-Depends: freetype, ragel, gettext (osx)
Default-Features: ucdn
Expand Down
13 changes: 13 additions & 0 deletions ports/harfbuzz/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,22 @@ vcpkg_configure_cmake(
)

vcpkg_install_cmake()

vcpkg_fixup_cmake_targets(CONFIG_PATH share/harfbuzz TARGET_PATH share/harfbuzz)

vcpkg_copy_pdbs()

if (HAVE_GLIB)
# Propagate dependency on glib downstream
file(READ "${CURRENT_PACKAGES_DIR}/share/harfbuzz/harfbuzzConfig.cmake" _contents)
file(WRITE "${CURRENT_PACKAGES_DIR}/share/harfbuzz/harfbuzzConfig.cmake" "
include(CMakeFindDependencyMacro)
find_dependency(unofficial-glib CONFIG)
${_contents}
")
endif()

# Handle copyright
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/harfbuzz RENAME copyright)

Expand Down

0 comments on commit f1e5cd0

Please sign in to comment.