Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/ghostwriter/
Date: Mon, 21 Jun 2021 05:12:24
Message-Id: 1624252306.c087ae48c1f88ef306f03a60c710a10e4f3fab88.juippis@gentoo
1 commit: c087ae48c1f88ef306f03a60c710a10e4f3fab88
2 Author: David Roman <davidroman96 <AT> gmail <DOT> com>
3 AuthorDate: Sun May 30 17:40:06 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 21 05:11:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c087ae48
7
8 app-editors/ghostwriter: verbump to 2.0.1
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: David Roman <davidroman96 <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/21055
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 app-editors/ghostwriter/Manifest | 1 +
16 app-editors/ghostwriter/ghostwriter-2.0.1.ebuild | 58 ++++++++++++++++++++++++
17 2 files changed, 59 insertions(+)
18
19 diff --git a/app-editors/ghostwriter/Manifest b/app-editors/ghostwriter/Manifest
20 index db7161177b3..cd141eddf2b 100644
21 --- a/app-editors/ghostwriter/Manifest
22 +++ b/app-editors/ghostwriter/Manifest
23 @@ -1 +1,2 @@
24 DIST ghostwriter-1.8.1.tar.gz 1220000 BLAKE2B 3fa3d95ed819bc8f7b76b396e6634658a8bda23e9100cbb298d301fc382db451430a4a31fbd092326af198825c83d2c998172c90a7e318aeb57ef7799751995a SHA512 9f60f81a594cf161edfeac8c75830e186ab4ec2c22859b2bad40768e1ecf64e6842b52a69024a1f014d24a2f1cbb38e15a7799101d7fd54ef7709e245f6ac521
25 +DIST ghostwriter-2.0.1.tar.gz 7802864 BLAKE2B 387ce3b0fe58171d6c195b51bd5dfbdcd6f7cbe023aaba4962d311e4dd6c08066b4292467f4cf2941b9a28540b639d498057a66a4ca194e35ca32e17399d7d75 SHA512 e91631d51110a884ab68621ee2fe0f1c013d0c2413f0ee58135821f2539285e88dcdfca0f9d80e0313bdab4c02700faa87eae32d525e51eea82163bb1a6d5b1b
26
27 diff --git a/app-editors/ghostwriter/ghostwriter-2.0.1.ebuild b/app-editors/ghostwriter/ghostwriter-2.0.1.ebuild
28 new file mode 100644
29 index 00000000000..9f9908a37a0
30 --- /dev/null
31 +++ b/app-editors/ghostwriter/ghostwriter-2.0.1.ebuild
32 @@ -0,0 +1,58 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit qmake-utils xdg-utils
39 +
40 +DESCRIPTION="Cross-platform, aesthetic, distraction-free markdown editor"
41 +HOMEPAGE="https://wereturtle.github.io/ghostwriter/"
42 +SRC_URI="https://github.com/wereturtle/ghostwriter/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="GPL-3+"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="debug"
48 +
49 +BDEPEND="dev-qt/linguist-tools:5"
50 +
51 +RDEPEND="
52 + app-text/hunspell:=
53 + dev-qt/qtconcurrent:5
54 + dev-qt/qtcore:5
55 + dev-qt/qtgui:5
56 + dev-qt/qtsvg:5
57 + dev-qt/qtwebchannel:5
58 + dev-qt/qtwebengine:5[widgets]
59 + dev-qt/qtwidgets:5
60 +"
61 +DEPEND="${RDEPEND}"
62 +
63 +DOCS=( CREDITS.md README.md )
64 +
65 +src_prepare() {
66 + default
67 +
68 + sed -i -e "/^VERSION =/s/\$.*/${PV}/" ghostwriter.pro || die "failed to override version"
69 +}
70 +
71 +src_configure() {
72 + eqmake5 \
73 + CONFIG+=$(usex debug debug release) \
74 + PREFIX="${EPREFIX}"/usr
75 +}
76 +
77 +src_install() {
78 + emake INSTALL_ROOT="${D}" install
79 + einstalldocs
80 +}
81 +
82 +pkg_postinst() {
83 + xdg_desktop_database_update
84 + xdg_icon_cache_update
85 +}
86 +
87 +pkg_postrm() {
88 + xdg_desktop_database_update
89 + xdg_icon_cache_update
90 +}