From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E8A3A1388BF for ; Thu, 14 Jan 2016 15:26:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AD2F0E0845; Thu, 14 Jan 2016 15:26:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 47338E0845 for ; Thu, 14 Jan 2016 15:26:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0ECAB340A51 for ; Thu, 14 Jan 2016 15:26:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7DC8BC89 for ; Thu, 14 Jan 2016 15:26:07 +0000 (UTC) From: "Michael Palimaka" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Palimaka" Message-ID: <1452785123.aa4e5ffa4bd1fd357694f144774403ac55dc0a26.kensington@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/qelectrotech/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-electronics/qelectrotech/qelectrotech-9999.ebuild X-VCS-Directories: sci-electronics/qelectrotech/ X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka X-VCS-Revision: aa4e5ffa4bd1fd357694f144774403ac55dc0a26 X-VCS-Branch: master Date: Thu, 14 Jan 2016 15:26:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f5ea87cc-dac4-4a46-83ef-90d04dee4389 X-Archives-Hash: 3f77aa0ed27e331a9ffc9755a739c7ae commit: aa4e5ffa4bd1fd357694f144774403ac55dc0a26 Author: Michael Palimaka gentoo org> AuthorDate: Thu Jan 14 15:17:04 2016 +0000 Commit: Michael Palimaka gentoo org> CommitDate: Thu Jan 14 15:25:23 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa4e5ffa sci-electronics/qelectrotech: update live ebuild based on latest release Gentoo-bug: 545560 Package-Manager: portage-2.2.26 .../qelectrotech/qelectrotech-9999.ebuild | 54 ++++++++++++++-------- 1 file changed, 35 insertions(+), 19 deletions(-) diff --git a/sci-electronics/qelectrotech/qelectrotech-9999.ebuild b/sci-electronics/qelectrotech/qelectrotech-9999.ebuild index 8f2f239..bf662f9 100644 --- a/sci-electronics/qelectrotech/qelectrotech-9999.ebuild +++ b/sci-electronics/qelectrotech/qelectrotech-9999.ebuild @@ -1,11 +1,12 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=5 -PLOCALES="cs de el en es fr it pl pt ro ru" -inherit l10n qt4-r2 subversion +inherit eutils fdo-mime gnome2-utils qmake-utils subversion + +MY_P=${PN}-${PV%0}-src DESCRIPTION="Qt4 application to design electric diagrams" HOMEPAGE="http://qelectrotech.org/" @@ -14,39 +15,54 @@ ESVN_REPO_URI="svn://svn.tuxfamily.org/svnroot/qet/qet/trunk" LICENSE="GPL-3" SLOT="0" KEYWORDS="" - IUSE="doc" RDEPEND=" - dev-qt/designer:4 - dev-qt/qtcore:4 - dev-qt/qtgui:4 - dev-qt/qtsql:4[sqlite] - dev-qt/qtsvg:4 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsql:5[sqlite] + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 " DEPEND="${RDEPEND} doc? ( app-doc/doxygen ) " -DOCS=(CREDIT ChangeLog README) -PATCHES=( - "${FILESDIR}/${PN}-0.3-fix-paths.patch" -) +S=${WORKDIR}/${MY_P} -qet_disable_translation() { - sed -i -e "/TRANSLATIONS +=/s: lang/qet_${1}.ts::" ${PN}.pro || die -} +DOCS=( CREDIT ChangeLog README ) src_prepare() { - qt4-r2_src_prepare - l10n_for_each_disabled_locale_do qet_disable_translation + epatch "${FILESDIR}/${PN}-0.3-fix-paths.patch" } +src_configure() { + eqmake5 ${PN}.pro +} src_install() { - qt4-r2_src_install + emake INSTALL_ROOT="${D}" install + + einstalldocs if use doc; then doxygen Doxyfile || die dodoc -r doc/html fi } + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +}