diff options
author | Jeroen Roovers <jer@gentoo.org> | 2017-03-11 07:10:15 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2017-03-11 07:10:15 +0100 |
commit | 3f851c074fcf5b53ec3acd5f517bad783d59b0be (patch) | |
tree | 506f2a67cd17a4f3b5706478667bbfeba7ffd9ee /x11-misc/vym | |
parent | x11-misc/vym: Version bump. (diff) | |
download | gentoo-3f851c074fcf5b53ec3acd5f517bad783d59b0be.tar.gz gentoo-3f851c074fcf5b53ec3acd5f517bad783d59b0be.tar.bz2 gentoo-3f851c074fcf5b53ec3acd5f517bad783d59b0be.zip |
x11-misc/vym: Update live ebuild.
Package-Manager: Portage-2.3.4, Repoman-2.3.2
Diffstat (limited to 'x11-misc/vym')
-rw-r--r-- | x11-misc/vym/vym-9999.ebuild | 72 |
1 files changed, 39 insertions, 33 deletions
diff --git a/x11-misc/vym/vym-9999.ebuild b/x11-misc/vym/vym-9999.ebuild index f715ebabefee..7d4bc1509eb9 100644 --- a/x11-misc/vym/vym-9999.ebuild +++ b/x11-misc/vym/vym-9999.ebuild @@ -1,59 +1,65 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=5 -inherit eutils cmake-utils git-r3 +EAPI=6 + +PLOCALES="cs_CZ de_DE el es fr ia it ja pt_BR ru sv zh_CN zh_TW" + +inherit eutils git-r3 l10n qmake-utils DESCRIPTION="View Your Mind, a mindmap tool" HOMEPAGE="http://www.insilmaril.de/vym/" -EGIT_REPO_URI="git://git.code.sf.net/p/vym/code" +EGIT_REPO_URI="git://git.code.sf.net/p/${PN}/code" LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="dbus" -VYM_LINGUAS=( cs_CZ de_DE es fr ia it pt_BR ru sv zh_CN zh_TW ) -IUSE+=" ${VYM_LINGUAS[@]/#/linguas_}" - -DEPEND=" - dev-qt/qtgui:4[qt3support] - dev-qt/qtsvg:4 - dbus? ( dev-qt/qtdbus:4 ) -" RDEPEND=" - ${DEPEND} - app-arch/zip + dev-qt/qtgui: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.txt ) +DOCS=( README.md ) src_prepare() { - epatch "${FILESDIR}"/${PN}-2.3.22-arrowobj.patch + default + + remove_locale() { + sed -i \ + -e "/TRANSLATIONS += lang\/vym.${1}.ts/d" \ + vym.pro || die + } + + #remove dead en translation + rm lang/vym.en.ts || die + remove_locale en - sed -i \ - -e '/lang\/vym_en.ts/d' \ - CMakeLists.txt || die - rm -r lang/vym_en.ts || die + l10n_find_plocales_changes lang ${PN}. .ts + l10n_for_each_disabled_locale_do remove_locale + + "$(qt5_get_bindir)"/lrelease vym.pro || die } src_configure() { - local lingua - for lingua in ${VYM_LINGUAS[@]}; do - if ! use linguas_${lingua}; then - sed -i -e "/lang\/vym_${lingua}.ts/d" CMakeLists.txt || die - rm -r lang/vym_${lingua}.ts || die - fi - done - - local mycmakeargs=( - $(cmake-utils_use !dbus NO_DBUS) - ) - cmake-utils_src_configure + eqmake5 vym.pro \ + PREFIX="${EPREFIX}"/usr \ + DATADIR="${EPREFIX}"/usr/share \ + $(usex dbus "" NO_DBUS=1 ) } src_install() { - cmake-utils_src_install + emake INSTALL_ROOT="${D}" install + einstalldocs doman doc/vym.1.gz + make_desktop_entry vym vym /usr/share/vym/icons/vym.png Education } |