diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/appstream | |
Diffstat (limited to 'vcpkg/ports/appstream')
| -rw-r--r-- | vcpkg/ports/appstream/portfile.cmake | 32 | ||||
| -rw-r--r-- | vcpkg/ports/appstream/remove-uneeded-directories.patch | 15 | ||||
| -rw-r--r-- | vcpkg/ports/appstream/vcpkg.json | 41 |
3 files changed, 88 insertions, 0 deletions
diff --git a/vcpkg/ports/appstream/portfile.cmake b/vcpkg/ports/appstream/portfile.cmake new file mode 100644 index 0000000..96d9ed1 --- /dev/null +++ b/vcpkg/ports/appstream/portfile.cmake @@ -0,0 +1,32 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO ximion/appstream + REF "v${VERSION}" + SHA512 80f3b7b9279152ce271bab61e97a41268d5dc5d977dc9488fc187df90077ac1a81169201d3d1a7a5578d36e962321035bfe34106486c2ac3d684621b40338de6 + HEAD_REF main + PATCHES + remove-uneeded-directories.patch +) + +vcpkg_configure_meson( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -Dsystemd=false + -Dapidocs=false + -Dinstall-docs=false + -Dstemming=false + -Dsvg-support=false + -Dgir=false + ADDITIONAL_BINARIES + gperf='${CURRENT_HOST_INSTALLED_DIR}/tools/gperf/gperf${HOST_EXECUTABLE_SUFFIX}' + glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums' + glib-compile-resources='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-compile-resources${VCPKG_HOST_EXECUTABLE_SUFFIX}' +) + +vcpkg_install_meson() +vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") diff --git a/vcpkg/ports/appstream/remove-uneeded-directories.patch b/vcpkg/ports/appstream/remove-uneeded-directories.patch new file mode 100644 index 0000000..43f30b3 --- /dev/null +++ b/vcpkg/ports/appstream/remove-uneeded-directories.patch @@ -0,0 +1,15 @@ +diff --git a/meson.build b/meson.build +index ee5b179a..a1a0b2c3 100644 +--- a/meson.build ++++ b/meson.build +@@ -224,10 +224,7 @@ if get_option('compose') + endif + subdir('tools/') + subdir('po/') +-subdir('data/') + subdir('contrib/') +-subdir('docs/') +-subdir('tests/') + if get_option('qt') + subdir('qt/') + endif diff --git a/vcpkg/ports/appstream/vcpkg.json b/vcpkg/ports/appstream/vcpkg.json new file mode 100644 index 0000000..5da93d6 --- /dev/null +++ b/vcpkg/ports/appstream/vcpkg.json @@ -0,0 +1,41 @@ +{ + "name": "appstream", + "version": "1.0.6", + "port-version": 1, + "description": "Tools and libraries to work with AppStream metadata", + "homepage": "https://www.freedesktop.org/software/appstream/docs", + "license": "LGPL-2.1-or-later", + "dependencies": [ + { + "name": "curl", + "default-features": false + }, + { + "name": "gettext", + "host": true, + "features": [ + "tools" + ] + }, + "glib", + { + "name": "glib", + "host": true + }, + { + "name": "gperf", + "host": true + }, + { + "name": "libxml2", + "default-features": false + }, + "libxmlb", + "libyaml", + { + "name": "vcpkg-tool-meson", + "host": true + }, + "zstd" + ] +} |