Skip to content

Commit

Permalink
[uchardet] update to v0.0.8 (#29748)
Browse files Browse the repository at this point in the history
* [uchardet] update to v0.0.8

* update version

* add license

* update version

* update version

* update version
  • Loading branch information
JonLiu1993 committed Feb 21, 2023
1 parent bf4822b commit 1c96061
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 10 deletions.
16 changes: 16 additions & 0 deletions ports/uchardet/fix-config-error.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt
index 7afad1d..c7a3cd8 100644
--- a/src/tools/CMakeLists.txt
+++ b/src/tools/CMakeLists.txt
@@ -27,10 +27,7 @@ if (GETOPT_INCLUDE_DIR AND GETOPT_LIBRARY)
target_link_libraries(${UCHARDET_BINARY} PRIVATE ${GETOPT_LIBRARY})
endif (GETOPT_INCLUDE_DIR AND GETOPT_LIBRARY)

-target_link_libraries(
- ${UCHARDET_BINARY}
- ${UCHARDET_LIBRARY}
-)
+target_link_libraries(${UCHARDET_BINARY} PRIVATE ${UCHARDET_LIBRARY})

install(
TARGETS
16 changes: 10 additions & 6 deletions ports/uchardet/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ vcpkg_from_gitlab(
GITLAB_URL https://gitlab.freedesktop.org
OUT_SOURCE_PATH SOURCE_PATH
REPO uchardet/uchardet
REF 6f38ab95f55afd45ee6ccefcb92d21034b4a2521
SHA512 a2e655d6e1eb6934cf93d99d27dfebc382eb01b6e62021f56b3fa71d269a851e7d68fe57536d40470e0329b3aa035467a9cdd9e11698f8ff76f06611ea7a58d1
REF "v${VERSION}"
SHA512 8d7a0abe1fcf7e92f9e264252eefa5810176603e3d3d825a23c3f5d23cd4f7cce9a0a9539e84bd70af5b66688394e48af00a00ce759a5a3d69b650f92351b6f2
HEAD_REF master
PATCHES fix-uwp-build.patch
PATCHES
fix-uwp-build.patch
fix-config-error.patch
)


Expand All @@ -29,8 +31,12 @@ vcpkg_cmake_configure(

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/uchardet)

vcpkg_copy_pdbs()

vcpkg_fixup_pkgconfig()

if(tool IN_LIST FEATURES)
vcpkg_copy_tools(TOOL_NAMES uchardet AUTO_CLEAN)
endif()
Expand All @@ -41,6 +47,4 @@ file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/share/man"
)

file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

vcpkg_fixup_pkgconfig()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
8 changes: 6 additions & 2 deletions ports/uchardet/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"name": "uchardet",
"version-date": "2021-09-03",
"port-version": 2,
"version": "0.0.8",
"description": "An encoding detector library ported from Mozilla.",
"homepage": "https://cgit.freedesktop.org/uchardet/uchardet/",
"license": "GPL-2.0 AND MPL-1.1",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7913,8 +7913,8 @@
"port-version": 1
},
"uchardet": {
"baseline": "2021-09-03",
"port-version": 2
"baseline": "0.0.8",
"port-version": 0
},
"umock-c": {
"baseline": "2022-01-21",
Expand Down
5 changes: 5 additions & 0 deletions versions/u-/uchardet.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "a226a1e7f8682190fbfb778afe3659b55817e219",
"version": "0.0.8",
"port-version": 0
},
{
"git-tree": "8333800cb0daceea8448ca6d20a91a1944b31559",
"version-date": "2021-09-03",
Expand Down

0 comments on commit 1c96061

Please sign in to comment.