mirror of https://github.com/microsoft/vcpkg.git
[shared-mime-info] New port (#44341)
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
This commit is contained in:
parent
71926c1c8b
commit
903c6cc36b
|
|
@ -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")
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"name": "shared-mime-info",
|
||||
"version": "2.4",
|
||||
"description": "Shared MIME information from Freedesktop.org",
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -8496,6 +8496,10 @@
|
|||
"baseline": "1.6.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"shared-mime-info": {
|
||||
"baseline": "2.4",
|
||||
"port-version": 0
|
||||
},
|
||||
"shiftmedia-libgcrypt": {
|
||||
"baseline": "1.10.3-1",
|
||||
"port-version": 1
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "9f518e591954f8a86b8c9a246b428dc566b0b42e",
|
||||
"version": "2.4",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue