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

view app-misc/qutescoop/qutescoop-9999.ebuild @ 236:151d84363e64

[sync] imported 8c3bfd0..b15ca8c from upstream commit b15ca8c5239daf75d74e03ce0e88be2722c8a8b5 Author: Daniel Neugebauer <dneuge@energiequant.de> Date: Sun Feb 28 13:03:05 2021 +0100 media-video/qt-faststart-python removed due to Python 2.7 qt-faststart-python requires Python 2.7 which is being removed from Gentoo. Even if 2.7 may remain available we seem to be unable to keep such packages on a registered overlay using the utility classes provided by Gentoo. In general, "faststart" is today also easily and quickly achieved through FFMPEG (without recoding), so this tool may really no longer be needed. commit dd2b6cb6314909e9253e5dc82cdd99f944f14733 Author: Daniel Neugebauer <dneuge@energiequant.de> Date: Sun Feb 28 12:58:23 2021 +0100 media-gfx/trimage removed 1.0.5 due to outdated Python version commit a5de53e6780d5321372f2dcdabdd9eae83b7b1bb Author: Daniel Neugebauer <dneuge@energiequant.de> Date: Sun Feb 28 12:56:56 2021 +0100 dev-python/sexpdata removed Same version is available from official Gentoo repository. commit 9009aaca44d0baf1c654f4b39ca1887b8395c2e8 Author: Daniel Neugebauer <dneuge@energiequant.de> Date: Sun Feb 28 12:26:51 2021 +0100 dev-python/epc removed; upstream seems dead Officially only compatible with Python 2.7 up to 3.3. Not sure if still needed - was introduced for emacs JEDI but that appears to now ship its own version through MELPA. Not needed on local installation.
author Migration Sync <gentoo-overlay@megacoffee.net>
date Sun, 28 Feb 2021 12:30:02 +0000
parents 81f94c1dfb45
children 6aca0fc3b7cd
line wrap: on
line source

# Copyright 1999-2021 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=7

inherit git-r3
inherit qmake-utils

# Note: GitHub page only states VATSIM as of January 2021 although other networks
#       are currently still supported.
DESCRIPTION="A status monitor for VATSIM and other online flight simulation networks."
HOMEPAGE="https://qutescoop.github.io/qutescoop/"

EGIT_REPO_URI="https://github.com/qutescoop/qutescoop.git"

LICENSE="GPL-3"
SLOT="0"

# empty keywords for 9999 dev version = hardmask
KEYWORDS=""

# only 64 bits because at least paths ("unix64") would need to be changed
#KEYWORDS="~amd64"

# bash is needed for our wrapper script
DEPEND="
	app-shells/bash
	dev-qt/qtcore:5
	dev-qt/qtgui:5
	dev-qt/qtnetwork:5
	dev-qt/qtopengl:5
	dev-qt/qtwidgets:5
	dev-qt/qtxml:5
	media-libs/libglvnd
	sys-libs/glibc
	virtual/glu
"

RDEPEND="${DEPEND}"

src_prepare() {
	eapply_user
	eqmake5 QuteScoop.pro
}

src_compile() {
	emake
}

src_install() {
	# instead of using QuteScoop directly install a wrapper script
	# this is needed because QuteScoop needs write permissions to a data directory
	# for every user and does not create the necessary directories which need to
	# contain specific data
	# TODO: script should somehow handle updates
	cp -a ${FILESDIR}/execution-wrapper.sh QuteScoop
	dobin QuteScoop
	
	dodoc CHANGELOG
	dodoc COPYING
	dodoc README.html
	
	into /usr/share/QuteScoop
	dobin DIST-unix64/QuteScoop
	
	insinto /usr/share/applications
	doins ${FILESDIR}/QuteScoop.desktop
	
	insinto /usr/share/icons/hicolor/32x32/apps
	doins src/qutescoop.png

	insinto /usr/share/QuteScoop/data-template
	doins -r data
	doins -r downloaded
	doins -r screenshots
	doins -r textures

	# all directories may currently have a "notes" file but in case those should
	# ever get removed, better add our own "keep" file to the otherwise empty directories
	keepdir /usr/share/QuteScoop/data-template/downloaded
	keepdir /usr/share/QuteScoop/data-template/screenshots
	keepdir /usr/share/QuteScoop/data-template/textures/clouds
}

pkg_postinst() {
	#      12345678901234567890123456789012345678901234567890123456789012345678901234567890
	einfo "QuteScoop expects a fully prepared user-writable directory. Such a directory"
	einfo "cannot be provisioned by this ebuild directly. Instead a wrapper script is used"
	einfo "in place of the original binary which creates a template in the user's home"
	einfo "directory on first run. Future updates to this package may require the user"
	einfo "to delete that directory manually in order to have it re-created:"
	einfo ""
	einfo "    ~/.local/share/QuteScoop"
	einfo ""
	einfo "Please report any issues with the wrapper script to the ebuild author, not"
	einfo "QuteScoop."
}