diff options
-rw-r--r-- | app-editors/ghostwriter/Manifest | 1 | ||||
-rw-r--r-- | app-editors/ghostwriter/ghostwriter-2.0.1.ebuild | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/app-editors/ghostwriter/Manifest b/app-editors/ghostwriter/Manifest index db7161177b35..cd141eddf2b2 100644 --- a/app-editors/ghostwriter/Manifest +++ b/app-editors/ghostwriter/Manifest @@ -1 +1,2 @@ DIST ghostwriter-1.8.1.tar.gz 1220000 BLAKE2B 3fa3d95ed819bc8f7b76b396e6634658a8bda23e9100cbb298d301fc382db451430a4a31fbd092326af198825c83d2c998172c90a7e318aeb57ef7799751995a SHA512 9f60f81a594cf161edfeac8c75830e186ab4ec2c22859b2bad40768e1ecf64e6842b52a69024a1f014d24a2f1cbb38e15a7799101d7fd54ef7709e245f6ac521 +DIST ghostwriter-2.0.1.tar.gz 7802864 BLAKE2B 387ce3b0fe58171d6c195b51bd5dfbdcd6f7cbe023aaba4962d311e4dd6c08066b4292467f4cf2941b9a28540b639d498057a66a4ca194e35ca32e17399d7d75 SHA512 e91631d51110a884ab68621ee2fe0f1c013d0c2413f0ee58135821f2539285e88dcdfca0f9d80e0313bdab4c02700faa87eae32d525e51eea82163bb1a6d5b1b diff --git a/app-editors/ghostwriter/ghostwriter-2.0.1.ebuild b/app-editors/ghostwriter/ghostwriter-2.0.1.ebuild new file mode 100644 index 000000000000..9f9908a37a0f --- /dev/null +++ b/app-editors/ghostwriter/ghostwriter-2.0.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2021 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/refs/tags/${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 ) + +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 +} |