-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[shared-mime-info] New port #44341
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
Merged
+73
−0
Merged
[shared-mime-info] New port #44341
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) | ||
|
|
||
| vcpkg_from_gitlab( | ||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| GITLAB_URL "https://gitlab.freedesktop.org" | ||
| REPO "xdg/shared-mime-info" | ||
| REF "${VERSION}" | ||
| SHA512 "17b443c2c09a432d09e4c83db956f8c0c3a768cfa9ffb8c87cd2d7c9002b95d010094e2bc64dd35946205a0f8b2d87c4f8f0a1faec86443e2edd502aa8f7cc8f" | ||
| ) | ||
|
|
||
| set(VCPKG_BUILD_TYPE release) # only data | ||
|
|
||
| vcpkg_add_to_path("${CURRENT_HOST_INSTALLED_DIR}/tools/libxml2") | ||
|
|
||
| # msgfmt can't deal with drive letters on Windows, so we need to use a relative data dir | ||
| file(RELATIVE_PATH GETTEXTDATADIRREL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}" "${SOURCE_PATH}/data") | ||
| set(ENV{GETTEXTDATADIR} "${GETTEXTDATADIRREL}") | ||
|
|
||
| vcpkg_configure_meson( | ||
| SOURCE_PATH "${SOURCE_PATH}" | ||
| OPTIONS | ||
| -Dupdate-mimedb=false | ||
| -Dbuild-tools=false | ||
| -Dbuild-translations=false | ||
| -Dbuild-tests=false | ||
| ) | ||
|
|
||
| vcpkg_install_meson() | ||
|
|
||
| vcpkg_fixup_pkgconfig() | ||
|
|
||
| vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "name": "shared-mime-info", | ||
| "version": "2.4", | ||
| "description": "Shared MIME information from Freedesktop.org", | ||
daschuer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "homepage": "https://gitlab.freedesktop.org/xdg/shared-mime-info", | ||
| "license": "GPL-2.0-or-later", | ||
| "dependencies": [ | ||
| { | ||
| "name": "gettext", | ||
| "host": true, | ||
| "features": [ | ||
| "tools" | ||
| ] | ||
| }, | ||
| { | ||
| "name": "libxml2", | ||
| "host": true, | ||
| "features": [ | ||
| "tools" | ||
| ] | ||
| }, | ||
| { | ||
| "name": "vcpkg-tool-meson", | ||
| "host": true | ||
| } | ||
| ] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "versions": [ | ||
| { | ||
| "git-tree": "9f518e591954f8a86b8c9a246b428dc566b0b42e", | ||
| "version": "2.4", | ||
| "port-version": 0 | ||
| } | ||
| ] | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if these lines are appropriate here, as I've never seen drive handling in portfile.cmake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a test run here with debug info:
https://github.com/daschuer/vcpkg/actions/runs/13799528617
in package-x64-windows-dbg-out.log in logs-x64-windows.zip:
You see that msgfmt splits the pass at ":" and tries to look into "C/its". The first entry is the relative path from GETTEXTDATADIR set in this port.