diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2017-01-08 00:25:27 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2017-01-08 00:52:17 +0100 |
commit | 7057422070f296766160ba9b3716aae6d93de6b8 (patch) | |
tree | 7498c79f13d5e68078d34329a65e71e2e6382464 /app-editors/ghostwriter/ghostwriter-1.4.2.ebuild | |
parent | www-servers/nginx: Bump to v1.11.8 (bug #603864) (diff) | |
download | gentoo-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/ghostwriter/ghostwriter-1.4.2.ebuild')
-rw-r--r-- | app-editors/ghostwriter/ghostwriter-1.4.2.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
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 +} |