megacoffee.net Gentoo overlay - legacy mirror
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-9999.ebuild @ 235:81f94c1dfb45
[sync] imported e892980..8c3bfd0 from upstream
commit 8c3bfd0fb74253d0c499bc7df3d9407a9a98f870
Author: Daniel Neugebauer <dneuge@energiequant.de>
Date: Sun Jan 31 20:16:50 2021 +0100
added app-misc/qutescoop
author | Migration Sync <gentoo-overlay@megacoffee.net> |
---|---|
date | Sun, 31 Jan 2021 19:30:02 +0000 |
parents | |
children | 6aca0fc3b7cd |
comparison
equal
deleted
inserted
replaced
234:c56b9e2d29d6 | 235:81f94c1dfb45 |
---|---|
1 # Copyright 1999-2021 Gentoo Foundation | |
2 # Distributed under the terms of the GNU General Public License v2 | |
3 # $Id$ | |
4 | |
5 EAPI=7 | |
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 # are currently still 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 | |
17 LICENSE="GPL-3" | |
18 SLOT="0" | |
19 | |
20 # empty keywords for 9999 dev version = hardmask | |
21 KEYWORDS="" | |
22 | |
23 # only 64 bits because at least paths ("unix64") would need to be changed | |
24 #KEYWORDS="~amd64" | |
25 | |
26 # bash is needed for our wrapper script | |
27 DEPEND=" | |
28 app-shells/bash | |
29 dev-qt/qtcore:5 | |
30 dev-qt/qtgui:5 | |
31 dev-qt/qtnetwork:5 | |
32 dev-qt/qtopengl:5 | |
33 dev-qt/qtwidgets:5 | |
34 dev-qt/qtxml:5 | |
35 media-libs/libglvnd | |
36 sys-libs/glibc | |
37 virtual/glu | |
38 " | |
39 | |
40 RDEPEND="${DEPEND}" | |
41 | |
42 src_prepare() { | |
43 eapply_user | |
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 CHANGELOG | |
61 dodoc COPYING | |
62 dodoc README.html | |
63 | |
64 into /usr/share/QuteScoop | |
65 dobin DIST-unix64/QuteScoop | |
66 | |
67 insinto /usr/share/applications | |
68 doins ${FILESDIR}/QuteScoop.desktop | |
69 | |
70 insinto /usr/share/icons/hicolor/32x32/apps | |
71 doins src/qutescoop.png | |
72 | |
73 insinto /usr/share/QuteScoop/data-template | |
74 doins -r data | |
75 doins -r downloaded | |
76 doins -r screenshots | |
77 doins -r textures | |
78 | |
79 # all directories may currently have a "notes" file but in case those should | |
80 # ever get removed, better add our own "keep" file to the otherwise empty directories | |
81 keepdir /usr/share/QuteScoop/data-template/downloaded | |
82 keepdir /usr/share/QuteScoop/data-template/screenshots | |
83 keepdir /usr/share/QuteScoop/data-template/textures/clouds | |
84 } | |
85 | |
86 pkg_postinst() { | |
87 # 12345678901234567890123456789012345678901234567890123456789012345678901234567890 | |
88 einfo "QuteScoop expects a fully prepared user-writable directory. Such a directory" | |
89 einfo "cannot be provisioned by this ebuild directly. Instead a wrapper script is used" | |
90 einfo "in place of the original binary which creates a template in the user's home" | |
91 einfo "directory on first run. Future updates to this package may require the user" | |
92 einfo "to delete that directory manually in order to have it re-created:" | |
93 einfo "" | |
94 einfo " ~/.local/share/QuteScoop" | |
95 einfo "" | |
96 einfo "Please report any issues with the wrapper script to the ebuild author, not" | |
97 einfo "QuteScoop." | |
98 } |