forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: Portage-2.3.14, Repoman-2.3.6
- Loading branch information
Jeroen Roovers
committed
Nov 18, 2017
1 parent
257dc3e
commit 2c89474
Showing
2 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST vym-2.6.11.tar.bz2 6769869 SHA256 d48efee7da43c22fbb862c7d99cb6d855ece58808f2ea184310d2a79c8a2f6fb SHA512 d6ae8346152ab10e12a68f25b4c13c4d40e1a8471df348ba0df9c05bdbe60f86a97912fcca268ec510246fe655a7dcc2d2e9a9332daee09a2a7dda7d6f880aa1 WHIRLPOOL 879ed96e008e5d9f8e747070f4a31cc66747dc9e174f698f315d3da27052d842836e1e23b588b585646e9f4df46eae23df36f6a9e4e6930dd7013663045e8cd4 | ||
DIST vym-2.6.8.tar.bz2 6768801 SHA256 2ec528b2f9783ea12a80471f1cfcbefcb5eeac42bf5f3c5209ef334c6c561aba SHA512 9ade39454bdfe509e82e1acddb5be0b101eec9fe0c96198b29c8e8353125369b8052ddf6d36096cf119ac2e87c8d15298c560d4c579507c65d19d654f8847e0e WHIRLPOOL 6f160675fe1af40668097a612f9d86275d6ff276e4b4bd35f1a6961910f37f1bce9267cbb35aa91a28f62e196e99579cc4e462ddb9a87dce802e91e96ea9f1f2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Copyright 1999-2017 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
|
||
PLOCALES="cs_CZ de_DE el es fr ia it ja pt_BR ru sv zh_CN zh_TW" | ||
|
||
inherit eutils l10n qmake-utils | ||
|
||
DESCRIPTION="View Your Mind, a mindmap tool" | ||
HOMEPAGE="http://www.insilmaril.de/vym/" | ||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="dbus" | ||
|
||
RDEPEND=" | ||
dev-qt/qtgui:5 | ||
dev-qt/qtnetwork:5 | ||
dev-qt/qtprintsupport:5 | ||
dev-qt/qtsvg:5 | ||
dev-qt/qtxml:5 | ||
dbus? ( dev-qt/qtdbus:5 ) | ||
" | ||
DEPEND=" | ||
${RDEPEND} | ||
dev-qt/linguist-tools:5 | ||
" | ||
|
||
DOCS=( README.md doc/vym.pdf ) | ||
|
||
src_prepare() { | ||
default | ||
|
||
if use linguas_es ; then | ||
DOCS+=( doc/vym_es.pdf ) | ||
fi | ||
if use linguas_fr ; then | ||
DOCS+=( doc/vym_fr.pdf ) | ||
fi | ||
|
||
remove_locale() { | ||
sed -i \ | ||
-e "/TRANSLATIONS += lang\/vym.${1}.ts/d" \ | ||
vym.pro || die | ||
} | ||
|
||
gunzip doc/vym.1.gz || die | ||
|
||
#remove dead en translation | ||
rm lang/vym.en.ts || die | ||
remove_locale en | ||
|
||
l10n_find_plocales_changes lang ${PN}. .ts | ||
l10n_for_each_disabled_locale_do remove_locale | ||
|
||
"$(qt5_get_bindir)"/lrelease vym.pro || die | ||
} | ||
|
||
src_configure() { | ||
eqmake5 vym.pro \ | ||
PREFIX="${EPREFIX}"/usr \ | ||
DATADIR="${EPREFIX}"/usr/share \ | ||
$(usex dbus "" NO_DBUS=1 ) | ||
} | ||
|
||
src_install() { | ||
emake INSTALL_ROOT="${D}" install | ||
|
||
einstalldocs | ||
|
||
doman doc/vym.1 | ||
|
||
make_desktop_entry vym vym /usr/share/vym/icons/vym.png Education | ||
} |