Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/ghostwriter/, app-editors/ghostwriter/files/
Date: Wed, 11 Mar 2020 22:05:35
Message-Id: 1583964220.faf76fb9991c7dcc516b3c10292063a0af843898.asturm@gentoo
1 commit: faf76fb9991c7dcc516b3c10292063a0af843898
2 Author: David Roman <davidroman96 <AT> gmail <DOT> com>
3 AuthorDate: Thu Mar 5 20:56:06 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 11 22:03:40 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=faf76fb9
7
8 app-editors/ghostwriter: verbump to 1.8.1
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: David Roman <davidroman96 <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/14859
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 app-editors/ghostwriter/Manifest | 1 +
16 .../files/ghostwriter-1.8.1-appdata-path.patch | 27 ++++++++++
17 app-editors/ghostwriter/ghostwriter-1.8.1.ebuild | 60 ++++++++++++++++++++++
18 3 files changed, 88 insertions(+)
19
20 diff --git a/app-editors/ghostwriter/Manifest b/app-editors/ghostwriter/Manifest
21 index 39d80b85ecf..6e6955ec820 100644
22 --- a/app-editors/ghostwriter/Manifest
23 +++ b/app-editors/ghostwriter/Manifest
24 @@ -1 +1,2 @@
25 DIST ghostwriter-1.8.0.tar.gz 1195999 BLAKE2B d751e570aed94bcf0806ca20d82b0ac2b465649caf31f01b761f0370a4f1b04ac8f948213b15c05a71541b8068ef21dfb2105b5fc91d5637e498e2d4c8f6bf9a SHA512 aff500d9221f28f6a06a93bf0b5ddb590792b22bc551749b790f52751cd7f2e27ea59778927c2f117320cb1791b45d51d8efdf479f0894319755afb1a509f7bd
26 +DIST ghostwriter-1.8.1.tar.gz 1220000 BLAKE2B 3fa3d95ed819bc8f7b76b396e6634658a8bda23e9100cbb298d301fc382db451430a4a31fbd092326af198825c83d2c998172c90a7e318aeb57ef7799751995a SHA512 9f60f81a594cf161edfeac8c75830e186ab4ec2c22859b2bad40768e1ecf64e6842b52a69024a1f014d24a2f1cbb38e15a7799101d7fd54ef7709e245f6ac521
27
28 diff --git a/app-editors/ghostwriter/files/ghostwriter-1.8.1-appdata-path.patch b/app-editors/ghostwriter/files/ghostwriter-1.8.1-appdata-path.patch
29 new file mode 100644
30 index 00000000000..514ab6262e5
31 --- /dev/null
32 +++ b/app-editors/ghostwriter/files/ghostwriter-1.8.1-appdata-path.patch
33 @@ -0,0 +1,27 @@
34 +From 5e63fa9cb6d4020413db071ed68aa85f3e79fd9e Mon Sep 17 00:00:00 2001
35 +From: David Roman <davidroman96@×××××.com>
36 +Date: Mon, 9 Mar 2020 21:42:58 +0100
37 +Subject: [PATCH] update appdata path
38 +
39 +The previous location is deprecated
40 +see https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html
41 +---
42 + ghostwriter.pro | 2 +-
43 + 1 file changed, 1 insertion(+), 1 deletion(-)
44 +
45 +diff --git a/ghostwriter.pro b/ghostwriter.pro
46 +index d399fb5..7f5f22c 100644
47 +--- a/ghostwriter.pro
48 ++++ b/ghostwriter.pro
49 +@@ -264,7 +264,7 @@ macx {
50 + desktop.path = $$DATADIR/applications/
51 +
52 + appdata.files = resources/linux/ghostwriter.appdata.xml
53 +- appdata.path = $$DATADIR/appdata/
54 ++ appdata.path = $$DATADIR/metainfo/
55 +
56 + man.files = resources/linux/ghostwriter.1
57 + man.path = $$PREFIX/share/man/man1
58 +--
59 +2.25.1
60 +
61
62 diff --git a/app-editors/ghostwriter/ghostwriter-1.8.1.ebuild b/app-editors/ghostwriter/ghostwriter-1.8.1.ebuild
63 new file mode 100644
64 index 00000000000..0cad3683483
65 --- /dev/null
66 +++ b/app-editors/ghostwriter/ghostwriter-1.8.1.ebuild
67 @@ -0,0 +1,60 @@
68 +# Copyright 1999-2020 Gentoo Authors
69 +# Distributed under the terms of the GNU General Public License v2
70 +
71 +EAPI=7
72 +
73 +inherit qmake-utils xdg-utils
74 +
75 +DESCRIPTION="Cross-platform, aesthetic, distraction-free markdown editor"
76 +HOMEPAGE="https://wereturtle.github.io/ghostwriter/"
77 +SRC_URI="https://github.com/wereturtle/ghostwriter/archive/v${PV}.tar.gz -> ${P}.tar.gz"
78 +
79 +LICENSE="GPL-3+"
80 +SLOT="0"
81 +KEYWORDS="~amd64 ~x86"
82 +IUSE="debug"
83 +
84 +BDEPEND="dev-qt/linguist-tools:5"
85 +
86 +RDEPEND="
87 + app-text/hunspell
88 + dev-qt/qtconcurrent:5
89 + dev-qt/qtcore:5
90 + dev-qt/qtgui:5
91 + dev-qt/qtsvg:5
92 + dev-qt/qtwebchannel:5
93 + dev-qt/qtwebengine:5[widgets]
94 + dev-qt/qtwidgets:5
95 +"
96 +DEPEND="${RDEPEND}"
97 +
98 +DOCS=( CREDITS.md README.md )
99 +
100 +PATCHES=( "${FILESDIR}/${P}-appdata-path.patch" )
101 +
102 +src_prepare() {
103 + default
104 +
105 + sed -i -e "/^VERSION =/s/\$.*/${PV}/" ghostwriter.pro || die "failed to override version"
106 +}
107 +
108 +src_configure() {
109 + eqmake5 \
110 + CONFIG+=$(usex debug debug release) \
111 + PREFIX="${EPREFIX}"/usr
112 +}
113 +
114 +src_install() {
115 + emake INSTALL_ROOT="${D}" install
116 + einstalldocs
117 +}
118 +
119 +pkg_postinst() {
120 + xdg_desktop_database_update
121 + xdg_icon_cache_update
122 +}
123 +
124 +pkg_postrm() {
125 + xdg_desktop_database_update
126 + xdg_icon_cache_update
127 +}