Skip to content

Commit 6ecbbbd

Browse files
authored
[appstream] Add new port (#46986)
1 parent 4b05d29 commit 6ecbbbd

File tree

5 files changed

+94
-0
lines changed

5 files changed

+94
-0
lines changed

ports/appstream/portfile.cmake

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO ximion/appstream
4+
REF "v${VERSION}"
5+
SHA512 80f3b7b9279152ce271bab61e97a41268d5dc5d977dc9488fc187df90077ac1a81169201d3d1a7a5578d36e962321035bfe34106486c2ac3d684621b40338de6
6+
HEAD_REF main
7+
PATCHES
8+
remove-uneeded-directories.patch
9+
)
10+
11+
set(GLIB_TOOLS_DIR "${CURRENT_HOST_INSTALLED_DIR}/tools/glib")
12+
13+
vcpkg_configure_meson(
14+
SOURCE_PATH "${SOURCE_PATH}"
15+
OPTIONS
16+
-Dsystemd=false
17+
-Dapidocs=false
18+
-Dinstall-docs=false
19+
-Dstemming=false
20+
-Dsvg-support=false
21+
-Dgir=false
22+
ADDITIONAL_BINARIES
23+
gperf='${CURRENT_HOST_INSTALLED_DIR}/tools/gperf/gperf${HOST_EXECUTABLE_SUFFIX}'
24+
glib-mkenums='${GLIB_TOOLS_DIR}/glib-mkenums'
25+
glib-compile-resources='${GLIB_TOOLS_DIR}/glib-compile-resources${VCPKG_HOST_EXECUTABLE_SUFFIX}'
26+
)
27+
28+
vcpkg_install_meson()
29+
vcpkg_copy_pdbs()
30+
vcpkg_fixup_pkgconfig()
31+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
32+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
diff --git a/meson.build b/meson.build
2+
index ee5b179a..a1a0b2c3 100644
3+
--- a/meson.build
4+
+++ b/meson.build
5+
@@ -224,10 +224,10 @@ if get_option('compose')
6+
endif
7+
subdir('tools/')
8+
subdir('po/')
9+
-subdir('data/')
10+
+#subdir('data/')
11+
subdir('contrib/')
12+
-subdir('docs/')
13+
-subdir('tests/')
14+
+#subdir('docs/')
15+
+#subdir('tests/')
16+
if get_option('qt')
17+
subdir('qt/')
18+
endif

ports/appstream/vcpkg.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "appstream",
3+
"version": "1.0.6",
4+
"description": "Tools and libraries to work with AppStream metadata",
5+
"homepage": "https://www.freedesktop.org/software/appstream/docs",
6+
"license": "LGPL-2.1-or-later",
7+
"dependencies": [
8+
"curl",
9+
{
10+
"name": "gettext",
11+
"host": true
12+
},
13+
"glib",
14+
{
15+
"name": "glib",
16+
"host": true
17+
},
18+
{
19+
"name": "gperf",
20+
"host": true
21+
},
22+
"libxml2",
23+
"libxmlb",
24+
"libyaml",
25+
{
26+
"name": "vcpkg-tool-meson",
27+
"host": true
28+
},
29+
"zstd"
30+
]
31+
}

versions/a-/appstream.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"versions": [
3+
{
4+
"git-tree": "02adb7f4345d8e614592ff33b26eab8e978d0359",
5+
"version": "1.0.6",
6+
"port-version": 0
7+
}
8+
]
9+
}

versions/baseline.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@
172172
"baseline": "10.13.0",
173173
"port-version": 0
174174
},
175+
"appstream": {
176+
"baseline": "1.0.6",
177+
"port-version": 0
178+
},
175179
"appstream-glib": {
176180
"baseline": "0.8.3",
177181
"port-version": 0

0 commit comments

Comments
 (0)