mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 11:33:15 -04:00
gnome-extra/commit: fix tests, install phase
Closes: https://bugs.gentoo.org/927845 Closes: https://bugs.gentoo.org/927844 Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
@@ -39,14 +39,21 @@ BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# This test only validates upstream .xml file
|
||||
"${FILESDIR}/remove-failing-tests.patch"
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
mv "${WORKDIR}"/troll-${TROLL_COMMIT}/* "${S}"/troll || die
|
||||
mv "${WORKDIR}"/troll-"${TROLL_COMMIT}"/* "${S}"/troll || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
dosym -r /usr/bin/re.sonny.Commit /usr/bin/"${PN}"
|
||||
dodir /usr/share/metainfo
|
||||
mv "${ED}"/usr/share/appdata/re.sonny.Commit.metainfo.xml "${ED}"/usr/share/metainfo/ || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
18
gnome-extra/commit/files/remove-failing-tests.patch
Normal file
18
gnome-extra/commit/files/remove-failing-tests.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
diff --git a/data/meson.build b/data/meson.build
|
||||
index 4629538..8fec511 100644
|
||||
--- a/data/meson.build
|
||||
+++ b/data/meson.build
|
||||
@@ -22,13 +22,6 @@ appstream_file = i18n.merge_file(
|
||||
install_dir: join_paths(get_option('datadir'), 'appdata')
|
||||
)
|
||||
|
||||
-appstream_util = find_program('appstream-util', required: false)
|
||||
-if appstream_util.found()
|
||||
- test('Validate appstream file', appstream_util,
|
||||
- args: ['validate', appstream_file]
|
||||
- )
|
||||
-endif
|
||||
-
|
||||
install_data('re.sonny.Commit.gschema.xml',
|
||||
install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
|
||||
)
|
||||
Reference in New Issue
Block a user