Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-calculators/speedcrunch/, sci-calculators/speedcrunch/files/
Date: Sun, 28 Feb 2021 12:26:47
Message-Id: 1614515175.c43c76cb32bfff15f9f106e0d3c7a6c597477b67.asturm@gentoo
1 commit: c43c76cb32bfff15f9f106e0d3c7a6c597477b67
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 28 11:34:18 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 28 12:26:15 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c43c76cb
7
8 sci-calculators/speedcrunch: Switch to cmake.eclass, fix appdata path
9
10 Drop PLOCALES/l10n hacks
11 Fix DEPENDs
12 Further implify src_install
13 Use https
14 Fix indendation
15
16 Closes: https://bugs.gentoo.org/741206
17 Package-Manager: Portage-3.0.16, Repoman-3.0.2
18 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
19
20 .../files/speedcrunch-0.12.0-appdata.patch | 26 ++++++++++++++
21 .../speedcrunch/speedcrunch-0.12.0-r1.ebuild | 40 ++++++++++++++++++++++
22 2 files changed, 66 insertions(+)
23
24 diff --git a/sci-calculators/speedcrunch/files/speedcrunch-0.12.0-appdata.patch b/sci-calculators/speedcrunch/files/speedcrunch-0.12.0-appdata.patch
25 new file mode 100644
26 index 00000000000..cf312944f90
27 --- /dev/null
28 +++ b/sci-calculators/speedcrunch/files/speedcrunch-0.12.0-appdata.patch
29 @@ -0,0 +1,26 @@
30 +From 3caeaa7eec01f64e769351355dff0fedd95a25fd Mon Sep 17 00:00:00 2001
31 +From: Felix Krull <f_krull@×××.de>
32 +Date: Mon, 7 Aug 2017 16:19:22 +0200
33 +Subject: [PATCH] Install appdata file into new metadata path.
34 +
35 +*asturm 2021-02-28: Backported to 0.12.0.
36 +
37 +---
38 + src/CMakeLists.txt | 2 +-
39 + 1 file changed, 1 insertion(+), 1 deletion(-)
40 +
41 +diff --git a/CMakeLists.txt b/CMakeLists.txt
42 +index 1fa32ac..fb333f4 100644
43 +--- a/CMakeLists.txt
44 ++++ b/CMakeLists.txt
45 +@@ -113,7 +113,7 @@
46 + if(NOT WIN32)
47 + set(SHAREDIR "share/")
48 + set(MENUDIR "${SHAREDIR}/applications/")
49 +- set(APPDATADIR "${SHAREDIR}/appdata/")
50 ++ set(APPDATADIR "${SHAREDIR}/metainfo/")
51 + set(ICONDIR "${SHAREDIR}/pixmaps/")
52 + set(BINDIR "bin")
53 + else(NOT WIN32)
54 +--
55 +2.10.5
56
57 diff --git a/sci-calculators/speedcrunch/speedcrunch-0.12.0-r1.ebuild b/sci-calculators/speedcrunch/speedcrunch-0.12.0-r1.ebuild
58 new file mode 100644
59 index 00000000000..cc9c48df273
60 --- /dev/null
61 +++ b/sci-calculators/speedcrunch/speedcrunch-0.12.0-r1.ebuild
62 @@ -0,0 +1,40 @@
63 +# Copyright 1999-2021 Gentoo Authors
64 +# Distributed under the terms of the GNU General Public License v2
65 +
66 +EAPI=7
67 +
68 +inherit cmake desktop xdg-utils
69 +
70 +DESCRIPTION="Fast and usable calculator for power users"
71 +HOMEPAGE="https://speedcrunch.org/"
72 +SRC_URI="https://bitbucket.org/heldercorreia/${PN}/get/release-${PV}.tar.gz -> ${P}.tar.gz"
73 +S="${WORKDIR}/heldercorreia-speedcrunch-ea93b21f9498/src"
74 +
75 +LICENSE="GPL-2"
76 +SLOT="0"
77 +KEYWORDS="amd64 ~arm64 x86 ~amd64-linux ~x86-linux"
78 +IUSE="doc"
79 +
80 +DEPEND="
81 + dev-qt/qtcore:5
82 + dev-qt/qtgui:5
83 + dev-qt/qthelp:5
84 + dev-qt/qtwidgets:5
85 +"
86 +RDEPEND="${DEPEND}"
87 +
88 +PATCHES=( "${FILESDIR}/${P}-appdata.patch" )
89 +
90 +src_install() {
91 + use doc && local HTML_DOCS=( ../doc/build_html_embedded/. )
92 + cmake_src_install
93 + doicon -s scalable ../gfx/speedcrunch.svg
94 +}
95 +
96 +pkg_postinst() {
97 + xdg_icon_cache_update
98 +}
99 +
100 +pkg_postrm() {
101 + xdg_icon_cache_update
102 +}