summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2017-01-08 00:25:27 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2017-01-08 00:52:17 +0100
commit7057422070f296766160ba9b3716aae6d93de6b8 (patch)
tree7498c79f13d5e68078d34329a65e71e2e6382464 /app-editors
parentwww-servers/nginx: Bump to v1.11.8 (bug #603864) (diff)
downloadgentoo-7057422070f296766160ba9b3716aae6d93de6b8.tar.gz
gentoo-7057422070f296766160ba9b3716aae6d93de6b8.tar.bz2
gentoo-7057422070f296766160ba9b3716aae6d93de6b8.zip
app-editors/ghostwriter: 1.4.2 version bump, fix DEPENDs, APPVERSION
Thanks-to: reagentoo <suhr@i2pmail.org> Gentoo-bug: 578170, 586144, 592000 Package-Manager: portage-2.3.0
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/ghostwriter/Manifest1
-rw-r--r--app-editors/ghostwriter/ghostwriter-1.4.2.ebuild58
2 files changed, 59 insertions, 0 deletions
diff --git a/app-editors/ghostwriter/Manifest b/app-editors/ghostwriter/Manifest
index 60107fd5af7c..9961725dfbe0 100644
--- a/app-editors/ghostwriter/Manifest
+++ b/app-editors/ghostwriter/Manifest
@@ -1 +1,2 @@
DIST ghostwriter-1.2.5.tar.gz 508173 SHA256 4bf0f9450231504416037e4a667d8c8e2940bda0e03e624ba9bb2eda78a7937b SHA512 195e984dc6109a4fedacf92e2e78ec81fee76c1edc701c12afa82aafaed73f90d6a008ac21a4338636235b1d161fc22ad94fee3c8873b85135728c67e63c0260 WHIRLPOOL c172d4cdc2c30faa993242b981b873edf19d58ef060d6c22da4b01fdaee37f756b34a9c6288dec7131a9082b6acd93c8edcecbd365f8a141996e719a773c86e9
+DIST ghostwriter-1.4.2.tar.gz 589182 SHA256 775760d04c5a794c3810cffe9d1daa72ee123c77cc3041fc15a2052503899438 SHA512 b7442c4abe054cf73bbbe43c9537592fb54616a1085f529649b4bd3b4168c2ccb6f1127868d04c751b92edc277480baaf2d78a35b1b3fd285e804a17ec9cfbe2 WHIRLPOOL 685d9e057178f03d40ca8521b46a915e6b56289d42078fe0f1c8fcd601139f229f509865253e9b8ce76fde6aaf800d9c6e612bf37a5a0386ded935c75897f54e
diff --git a/app-editors/ghostwriter/ghostwriter-1.4.2.ebuild b/app-editors/ghostwriter/ghostwriter-1.4.2.ebuild
new file mode 100644
index 000000000000..3995fbf1bc0f
--- /dev/null
+++ b/app-editors/ghostwriter/ghostwriter-1.4.2.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PLOCALES="de en it ja pt_BR ru"
+
+inherit l10n qmake-utils
+
+DESCRIPTION="Cross-platform, aesthetic, distraction-free markdown editor"
+HOMEPAGE="http://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"
+
+RDEPEND="
+ app-text/hunspell
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtwebkit:5
+ dev-qt/qtwidgets:5
+"
+DEPEND="${RDEPEND}
+ dev-qt/qtconcurrent:5
+"
+
+DOCS=( CREDITS.md README.md )
+
+src_prepare() {
+ default
+
+ local mylrelease="$(qt5_get_bindir)"/lrelease
+
+ sed -i -e "/^VERSION =/s/\$.*/${PV}/" ghostwriter.pro || die "failed to override version"
+
+ prepare_locale() {
+ "${mylrelease}" "translations/${PN}_${1}.ts" || die "failed to prepare ${1} locale"
+ }
+
+ l10n_find_plocales_changes translations ${PN}_ .ts
+ l10n_for_each_locale_do prepare_locale
+}
+
+src_configure() {
+ eqmake5 \
+ CONFIG+=$(usex debug debug release) \
+ PREFIX="${EPREFIX}"/usr
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+}