summaryrefslogtreecommitdiff
path: root/dev-libs/appstream
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/appstream')
-rw-r--r--dev-libs/appstream/Manifest3
-rw-r--r--dev-libs/appstream/appstream-1.0.0.ebuild78
-rw-r--r--dev-libs/appstream/files/appstream-1.0.0-disable-Werror-flags.patch47
3 files changed, 128 insertions, 0 deletions
diff --git a/dev-libs/appstream/Manifest b/dev-libs/appstream/Manifest
index 33f06c72a0da..522a5ef3e10e 100644
--- a/dev-libs/appstream/Manifest
+++ b/dev-libs/appstream/Manifest
@@ -1,7 +1,10 @@
AUX appstream-0.15.6-disable-Werror-flags.patch 1322 BLAKE2B 1e21a235c19e27230eb6ba8a094d8f14f02f0d3e6817dd5aa7e48e3da90c11ef37a813b28d05660eff7f50176eec2148a9c33c3483513ad79ea46bcee0e5e815 SHA512 8552f98316b9ba98f51c9ba799dc2e43b3cb684d03428c6405d0d0d9fcef8b3df78dcd64d495ef75dddbf3e348768df655be3f84b0c12232013ac9061fd73450
AUX appstream-0.16.4-disable-Werror-flags.patch 1409 BLAKE2B 636a05a039450ff74d64b4b16d77f2c816c341d13fd4d59584e02306a3f891a8792a6aa62f5c190a08eb1574dd54126a0c5fa8891958fa33193cb485d97566ff SHA512 0867811a25714624149bbcb207214f7c912482d91f0255f6c208909f489db74b24811d634557830a7965b3b87e11d01a1dbb1d8381ae91bfb834c155b8645808
+AUX appstream-1.0.0-disable-Werror-flags.patch 1297 BLAKE2B e8b9bc262d39332f5390f7292b26d2c832326b96f0698b872c3d04b8f86ad0a492d0583f91886ee14698e84f91606c1944210eef858c892c9164b768aa912d1b SHA512 e5df79dda5f433c67dd0b02c681e04cde22e6648a4d438a50314575e37353686fbcbc4fd56ee209095f71498d0e553b4d061e328fcc740b19ab7ae9281b85423
DIST AppStream-0.15.6.tar.xz 2517688 BLAKE2B 09519205c7dfc5f0715b9d5ae7e99a67673ab499f1e2cb39815edde64defc1aa5059215575278bbcfc4482cd385a79e081c70f6acea3c446c5869dc6b2e18f6c SHA512 7426bc89e22b751de7b3e27d7c07eb1c373f4439f9966868ce5ea410d209b8c5292e03695a34b7a49bfa61e2e62265c7f7cdffc0be871c950193c933f65757ef
DIST AppStream-0.16.4.tar.xz 2570176 BLAKE2B ac051b846fd1c7b0cbb3429e0b4c3f81027cddb35ee6bcd5e9d38a09d937abcc37ac4908f68ec55404ae852fd146b4e749832d3ac96443458e86cfe506a6fed4 SHA512 e3a9fc423fe5a2baaaa002871566f320ecd6dbd3a01ab24221afe9b93a69e9afb6bed6d7772c434376501803dc7b2c80b79eda849fcaf4748f9f24a5908a22a8
+DIST AppStream-1.0.0.tar.xz 2683916 BLAKE2B a5c21cb05dcf50cf78f1c51c1055d0749ee680685a42a88300bd6d218284c7bbb34d3aa65b145120c8f930bca98ce927a1cf3d5ba4c393a16511c8be5946d81d SHA512 273f1bbb64794691f04bee0cff782670465c6da238beec040af71a99395afdc8a85a6712c77777ff7c7ca872db6b2c8549782b7773d882e5ed7e9aa2a880f04c
EBUILD appstream-0.15.6.ebuild 1855 BLAKE2B f011e0119b72afe5444ba203f5f46d5505de1c2159f5f914ddbaa6e55b25ccba68e7b072a8241b4c5ba6d4ae7efd8e65b490c7cc9ce2a9c3bb61706068bfcde9 SHA512 341fea8c66db13fd0fe3661264d21a8c9c4e73ec90f3fc2a27ed63a330a75c5d961fa18310e9b1475fd68528ba487508d37855133e9056172da75258d644365c
EBUILD appstream-0.16.4.ebuild 1939 BLAKE2B 7286454bed511132ef8c5a0381b49cbb63aff784ea48c4bf81f963f41bc3fd30c8de9169843445ec39d21d4aca715ce47972a372d9490998dad53111d3f4034b SHA512 bec33b22f1ab02964c29c0039390a8751e3b0f60b64468f96aedbad28ad9d435af0bf5f26e9357dc78228ef76b21f66b27023be8c885742be2af073ddc1dbcd6
+EBUILD appstream-1.0.0.ebuild 1929 BLAKE2B 7cdce7bba29f2b4b3984e65af183b84a25318f346ac9f876eacdb5e2aba4ad58d8c1935ae46d62347207e72ee3d6e913521c34bf00da7f6b36f0a94d0e2b4a7f SHA512 9b9f2dfc2f985238e5f783284f4203bf8fef231db9ebf04db38a97cb43c7585e929cb69ffe6d094e893b2630807597bcdd4d3f2b16eb8c0ff4b85aa2feb05da8
MISC metadata.xml 400 BLAKE2B c9855a1e3650a66c8b42fb9055d6de0aa0575ed86bb1e8695d112f2e7cdfbd5f55d6805dfeb0ed19c3354ee3cda8208fd8a4adf4e8313e791493fa1730fb32d9 SHA512 9723ac7481f748429bddde7579b81c7db2dfad2ecd5150c1c4023843c5ef47e02ce41ff43508437ae60ba427a072d09e8d46a6e6b82fc946ea3af71dd71c52f2
diff --git a/dev-libs/appstream/appstream-1.0.0.ebuild b/dev-libs/appstream/appstream-1.0.0.ebuild
new file mode 100644
index 000000000000..ba6c4e52a5a4
--- /dev/null
+++ b/dev-libs/appstream/appstream-1.0.0.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson xdg-utils
+
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/ximion/${PN}"
+else
+ MY_PN="AppStream"
+ SRC_URI="https://www.freedesktop.org/software/appstream/releases/${MY_PN}-${PV}.tar.xz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+DESCRIPTION="Cross-distro effort for providing metadata for software in the Linux ecosystem"
+HOMEPAGE="https://www.freedesktop.org/wiki/Distributions/AppStream/"
+
+LICENSE="LGPL-2.1+ GPL-2+"
+# check as_api_level
+SLOT="0/5"
+IUSE="apt doc +introspection qt6 systemd test"
+RESTRICT="test" # bug 691962
+
+RDEPEND="
+ app-arch/zstd:=
+ >=dev-libs/glib-2.62:2
+ dev-libs/libxml2:2
+ >=dev-libs/libxmlb-0.3.14:=
+ dev-libs/libyaml
+ dev-libs/snowball-stemmer:=
+ >=net-misc/curl-7.62
+ introspection? ( >=dev-libs/gobject-introspection-1.56:= )
+ qt6? ( dev-qt/qtbase:6 )
+ systemd? ( sys-apps/systemd:= )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-libs/appstream-glib
+ dev-libs/libxslt
+ dev-util/itstool
+ >=sys-devel/gettext-0.19.8
+ doc? ( app-text/docbook-xml-dtd:4.5 )
+ test? ( dev-qt/qttools:6[linguist] )
+"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.0.0-disable-Werror-flags.patch ) # bug 733774
+
+src_prepare() {
+ default
+ sed -e "/^as_doc_target_dir/s/appstream/${PF}/" -i docs/meson.build || die
+ if ! use test; then
+ sed -e "/^subdir.*tests/s/^/#DONT /" -i {,qt/}meson.build || die # bug 675944
+ fi
+}
+
+src_configure() {
+ xdg_environment_reset
+
+ local emesonargs=(
+ -Dapidocs=false
+ -Ddocs=false
+ -Dcompose=false
+ -Dmaintainer=false
+ -Dstatic-analysis=false
+ -Dstemming=true
+ -Dvapi=false
+ -Dapt-support=$(usex apt true false)
+ -Dinstall-docs=$(usex doc true false)
+ -Dgir=$(usex introspection true false)
+ -Dqt=$(usex qt6 true false)
+ -Dsystemd=$(usex systemd true false)
+ )
+
+ meson_src_configure
+}
diff --git a/dev-libs/appstream/files/appstream-1.0.0-disable-Werror-flags.patch b/dev-libs/appstream/files/appstream-1.0.0-disable-Werror-flags.patch
new file mode 100644
index 000000000000..309d365c28ec
--- /dev/null
+++ b/dev-libs/appstream/files/appstream-1.0.0-disable-Werror-flags.patch
@@ -0,0 +1,47 @@
+--- a/meson.build
++++ b/meson.build
+@@ -90,44 +90,6 @@
+ endif
+ endif
+
+-# a few compiler warning flags we always want enabled
+-add_project_arguments(
+- cc.get_supported_arguments([
+- '-Werror=shadow',
+- '-Werror=empty-body',
+- '-Werror=strict-prototypes',
+- '-Werror=missing-prototypes',
+- '-Werror=implicit-function-declaration',
+- '-Werror=pointer-arith',
+- '-Werror=missing-declarations',
+- '-Werror=return-type',
+- '-Werror=int-conversion',
+- '-Werror=incompatible-pointer-types',
+- '-Werror=misleading-indentation',
+- '-Werror=missing-include-dirs',
+- '-Werror=declaration-after-statement',
+- '-Werror=format-security',
+-
+- '-Wno-missing-field-initializers',
+- '-Wno-error=missing-field-initializers',
+- '-Wno-unused-parameter',
+- '-Wno-error=unused-parameter',
+- ]),
+- language: 'c'
+-)
+-add_project_arguments(
+- '-Wno-unused-parameter',
+- '-Werror=empty-body',
+- '-Werror=pointer-arith',
+- '-Werror=init-self',
+- '-Werror=missing-declarations',
+- '-Werror=return-type',
+- '-Werror=misleading-indentation',
+- '-Werror=format-security',
+-
+- language: 'cpp'
+-)
+-
+ # Vendor extensions in system headers
+ if host_machine.system() != 'netbsd'
+ # on NetBSD, defining POSIX_C_SOURCE *removes* non-POSIX symbols from namespace,