From 623ee73d661e5ed8475cb264511f683407d87365 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 12 Apr 2020 03:41:30 +0100 Subject: gentoo Easter resync : 12.04.2020 --- app-editors/ghostwriter/Manifest | 3 ++ .../files/ghostwriter-1.8.1-appdata-path.patch | 27 ++++++++++ app-editors/ghostwriter/ghostwriter-1.8.1.ebuild | 60 ++++++++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 app-editors/ghostwriter/files/ghostwriter-1.8.1-appdata-path.patch create mode 100644 app-editors/ghostwriter/ghostwriter-1.8.1.ebuild (limited to 'app-editors/ghostwriter') diff --git a/app-editors/ghostwriter/Manifest b/app-editors/ghostwriter/Manifest index 540e3c443ff3..d39f2c5ddcf6 100644 --- a/app-editors/ghostwriter/Manifest +++ b/app-editors/ghostwriter/Manifest @@ -1,3 +1,6 @@ +AUX ghostwriter-1.8.1-appdata-path.patch 811 BLAKE2B d3feb82a74d27484c56e5f05818f8f78914cd269700457deef69854fe8158d1e4068393c7b57114093450f7b347d26e4b143fc426bf5b66e0997f5ee94382276 SHA512 8e015c55dd1905dabb7ddcb06cb8a05e93bf8bdeedfb2002f2568232382871e65251ebfeda632e614e9a090372dde10fb468002459d50641847d4f97c9b789de DIST ghostwriter-1.8.0.tar.gz 1195999 BLAKE2B d751e570aed94bcf0806ca20d82b0ac2b465649caf31f01b761f0370a4f1b04ac8f948213b15c05a71541b8068ef21dfb2105b5fc91d5637e498e2d4c8f6bf9a SHA512 aff500d9221f28f6a06a93bf0b5ddb590792b22bc551749b790f52751cd7f2e27ea59778927c2f117320cb1791b45d51d8efdf479f0894319755afb1a509f7bd +DIST ghostwriter-1.8.1.tar.gz 1220000 BLAKE2B 3fa3d95ed819bc8f7b76b396e6634658a8bda23e9100cbb298d301fc382db451430a4a31fbd092326af198825c83d2c998172c90a7e318aeb57ef7799751995a SHA512 9f60f81a594cf161edfeac8c75830e186ab4ec2c22859b2bad40768e1ecf64e6842b52a69024a1f014d24a2f1cbb38e15a7799101d7fd54ef7709e245f6ac521 EBUILD ghostwriter-1.8.0.ebuild 1069 BLAKE2B 6e50854e96afdfed7057b2b70684cf860e07d4fc59eb83941dbc5ae4caf622a67ba1c9aafad4513eec12e0d3a76d878e90ea31192b14fda88d45f74b0e0614e0 SHA512 f8016952ebf4be4ae9401654eb55577e49a52592a44288339a8ae53160f776a2b7b5c7cd7f6d151d3b190b76aa43a76516fbd3af9ae11ac822dea6f9fe1d6db7 +EBUILD ghostwriter-1.8.1.ebuild 1168 BLAKE2B b5af661d60a19fffeea76b12fad147178817d05de1a15a1f3622cc3ea2862753b7c3397040d2382fb9212203a10b06e0d683249e73b4923a1e337132f62e5ee0 SHA512 bd2133ea0def1ab28ad5cb7bebff067a6b99b479cb016c7a976c019cfe0fc6f301b1a25c21ddd6cc6865572e164efc1b4dab9525644f4d22f1ebbf40899e3529 MISC metadata.xml 563 BLAKE2B 0f231e68a0335b4e4578d5ec28d8b202a26e7cf5c9f48fe9f4d430b01532aac1cb6022e13ef72c91a3ff68a86ecee0ec780a5bfe7e0c1ac1f158d8cbef84f7bd SHA512 585e39bd37abab4db3422b91a342aac06bcb76b3a6447a60c4607e3ac6edadbbbcabc1480828094d480c241a44d07ba81fbb5a4502f71da75c20e28db4583fe3 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 new file mode 100644 index 000000000000..514ab6262e5a --- /dev/null +++ b/app-editors/ghostwriter/files/ghostwriter-1.8.1-appdata-path.patch @@ -0,0 +1,27 @@ +From 5e63fa9cb6d4020413db071ed68aa85f3e79fd9e Mon Sep 17 00:00:00 2001 +From: David Roman +Date: Mon, 9 Mar 2020 21:42:58 +0100 +Subject: [PATCH] update appdata path + +The previous location is deprecated +see https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html +--- + ghostwriter.pro | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ghostwriter.pro b/ghostwriter.pro +index d399fb5..7f5f22c 100644 +--- a/ghostwriter.pro ++++ b/ghostwriter.pro +@@ -264,7 +264,7 @@ macx { + desktop.path = $$DATADIR/applications/ + + appdata.files = resources/linux/ghostwriter.appdata.xml +- appdata.path = $$DATADIR/appdata/ ++ appdata.path = $$DATADIR/metainfo/ + + man.files = resources/linux/ghostwriter.1 + man.path = $$PREFIX/share/man/man1 +-- +2.25.1 + diff --git a/app-editors/ghostwriter/ghostwriter-1.8.1.ebuild b/app-editors/ghostwriter/ghostwriter-1.8.1.ebuild new file mode 100644 index 000000000000..0943a04747d6 --- /dev/null +++ b/app-editors/ghostwriter/ghostwriter-1.8.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit qmake-utils xdg-utils + +DESCRIPTION="Cross-platform, aesthetic, distraction-free markdown editor" +HOMEPAGE="https://wereturtle.github.io/ghostwriter/" +SRC_URI="https://github.com/wereturtle/ghostwriter/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug" + +BDEPEND="dev-qt/linguist-tools:5" + +RDEPEND=" + app-text/hunspell:= + dev-qt/qtconcurrent:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtsvg:5 + dev-qt/qtwebchannel:5 + dev-qt/qtwebengine:5[widgets] + dev-qt/qtwidgets:5 +" +DEPEND="${RDEPEND}" + +DOCS=( CREDITS.md README.md ) + +PATCHES=( "${FILESDIR}/${P}-appdata-path.patch" ) + +src_prepare() { + default + + sed -i -e "/^VERSION =/s/\$.*/${PV}/" ghostwriter.pro || die "failed to override version" +} + +src_configure() { + eqmake5 \ + CONFIG+=$(usex debug debug release) \ + PREFIX="${EPREFIX}"/usr +} + +src_install() { + emake INSTALL_ROOT="${D}" install + einstalldocs +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +} -- cgit v1.2.3