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.ebuild @ 266:ece4c118e053

[sync] imported eb63403..6e83727 from upstream commit 6e8372740386620a83b33749bb19fc8f40fc948a Author: Daniel Neugebauer <dneuge@energiequant.de> Date: Sat Nov 9 22:29:27 2024 +0100 app-misc/qutescoop: bump to 3.0.0-rc3
author Migration Sync <gentoo-overlay@megacoffee.net>
date Sat, 09 Nov 2024 21:45:01 +0000
parents
children
comparison
equal deleted inserted replaced
265:184de8203bc6 266:ece4c118e053
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 }