We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.

comparison app-misc/qutescoop/qutescoop-3.0.0_rc3-r1.ebuild @ 271:42f152f7bd51 default tip

[sync] imported 19745ea..26957c3 from upstream commit 26957c37396048346e2760cf909dce89f35961ae Author: Daniel Neugebauer <dneuge@energiequant.de> Date: Mon May 19 21:10:04 2025 +0200 app-misc/qutescoop: force X11 compatibility mode on Wayland to work around OpenGL corruption
author Migration Sync <gentoo-overlay@megacoffee.net>
date Mon, 19 May 2025 19:15:01 +0000
parents
children
comparison
equal deleted inserted replaced
270:1f63b8967e67 271:42f152f7bd51
1 # Copyright 1999-2024 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Id$
4
5 EAPI=8
6
7 inherit git-r3
8 inherit qmake-utils
9
10 # Note: GitHub page only states VATSIM as of January 2021 although other networks
11 # may still be supported.
12 DESCRIPTION="A status monitor for VATSIM and other online flight simulation networks."
13 HOMEPAGE="https://qutescoop.github.io/qutescoop/"
14
15 EGIT_REPO_URI="https://github.com/qutescoop/qutescoop.git"
16 EGIT_COMMIT="df1b4b39420911c2329699936369060732b3fe27"
17
18 LICENSE="GPL-3"
19 SLOT="0"
20
21 # only 64 bits because at least paths ("unix64") would need to be changed
22 KEYWORDS="~amd64"
23
24 # bash is needed for our wrapper script
25 DEPEND="
26 app-shells/bash
27 dev-qt/qtcore:5
28 dev-qt/qtgui:5
29 dev-qt/qtnetwork:5
30 dev-qt/qtopengl:5
31 dev-qt/qtwidgets:5
32 dev-qt/qtxml:5
33 media-libs/libglvnd
34 sys-libs/glibc
35 virtual/glu
36 "
37
38 RDEPEND="${DEPEND}"
39
40 PATCHES="${FILESDIR}/userdir.patch"
41
42 src_prepare() {
43 default
44 eqmake5 QuteScoop.pro
45 }
46
47 src_compile() {
48 emake
49 }
50
51 src_install() {
52 # instead of using QuteScoop directly install a wrapper script
53 # this is needed because QuteScoop needs write permissions to a data directory
54 # for every user and does not create the necessary directories which need to
55 # contain specific data
56 # TODO: script should somehow handle updates
57 cp -a ${FILESDIR}/execution-wrapper.sh QuteScoop
58 dobin QuteScoop
59
60 dodoc COPYING
61 dodoc README.md
62
63 into /usr/share/QuteScoop
64 dobin DIST-unix64/QuteScoop
65
66 insinto /usr/share/applications
67 doins ${FILESDIR}/QuteScoop.desktop
68
69 insinto /usr/share/icons/hicolor/32x32/apps
70 doins src/qutescoop.png
71
72 insinto /usr/share/QuteScoop/data-template
73 doins -r data
74 doins -r downloaded
75 #doins -r screenshots
76 doins -r textures
77
78 # all directories may currently have a "notes" file but in case those should
79 # ever get removed, better add our own "keep" file to the otherwise empty directories
80 keepdir /usr/share/QuteScoop/data-template/downloaded
81 #keepdir /usr/share/QuteScoop/data-template/screenshots
82 #keepdir /usr/share/QuteScoop/data-template/textures/clouds
83 }
84
85 pkg_postinst() {
86 # 12345678901234567890123456789012345678901234567890123456789012345678901234567890
87 einfo "QuteScoop expects a fully prepared user-writable directory. Such a directory"
88 einfo "cannot be provisioned by this ebuild directly. Instead a wrapper script is used"
89 einfo "in place of the original binary which creates a template in the user's home"
90 einfo "directory on first run. Future updates to this package may require the user"
91 einfo "to delete that directory manually in order to have it re-created:"
92 einfo ""
93 einfo " ~/.local/share/QuteScoop"
94 einfo ""
95 einfo "Please report any issues with the wrapper script to the ebuild author, not"
96 einfo "QuteScoop."
97 }