From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1019334-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 40A6D1382C5
	for <garchives@archives.gentoo.org>; Sun, 22 Apr 2018 09:33:00 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 2EECFE08D9;
	Sun, 22 Apr 2018 09:32:59 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id E806EE08D9
	for <gentoo-commits@lists.gentoo.org>; Sun, 22 Apr 2018 09:32:58 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 1D43D335C78
	for <gentoo-commits@lists.gentoo.org>; Sun, 22 Apr 2018 09:32:57 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 7AB4527C
	for <gentoo-commits@lists.gentoo.org>; Sun, 22 Apr 2018 09:32:55 +0000 (UTC)
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" <asturm@gentoo.org>
Message-ID: <1524389557.4b2a7ee17866dd768651b51cd6640f39506a8469.asturm@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/ki18n/, kde-frameworks/ki18n/files/
X-VCS-Repository: repo/gentoo
X-VCS-Files: kde-frameworks/ki18n/files/ki18n-5.45.0-fix-build-pofiles.patch kde-frameworks/ki18n/ki18n-5.45.0-r2.ebuild
X-VCS-Directories: kde-frameworks/ki18n/ kde-frameworks/ki18n/files/
X-VCS-Committer: asturm
X-VCS-Committer-Name: Andreas Sturmlechner
X-VCS-Revision: 4b2a7ee17866dd768651b51cd6640f39506a8469
X-VCS-Branch: master
Date: Sun, 22 Apr 2018 09:32:55 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 114a6522-6328-4f90-bd76-e5930144a1e1
X-Archives-Hash: e8c3b2e6c05a7e13e195d6cda808b681

commit:     4b2a7ee17866dd768651b51cd6640f39506a8469
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 22 08:00:46 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Apr 22 09:32:37 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b2a7ee1

kde-frameworks/ki18n: Fix performance of build-pofiles

Thanks-to: Greg Turner <gmturner007 <AT> ameritech.net>
KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=393141
See also: https://phabricator.kde.org/D12216

Closes: https://bugs.gentoo.org/653756
Package-Manager: Portage-2.3.31, Repoman-2.3.9

 .../files/ki18n-5.45.0-fix-build-pofiles.patch     | 38 ++++++++++++++++++++
 kde-frameworks/ki18n/ki18n-5.45.0-r2.ebuild        | 40 ++++++++++++++++++++++
 2 files changed, 78 insertions(+)

diff --git a/kde-frameworks/ki18n/files/ki18n-5.45.0-fix-build-pofiles.patch b/kde-frameworks/ki18n/files/ki18n-5.45.0-fix-build-pofiles.patch
new file mode 100644
index 00000000000..055a4c24db9
--- /dev/null
+++ b/kde-frameworks/ki18n/files/ki18n-5.45.0-fix-build-pofiles.patch
@@ -0,0 +1,38 @@
+From 9c32bdab29b345976eee3b9c1c4bebd76cdcdde2 Mon Sep 17 00:00:00 2001
+From: Aleix Pol <aleixpol@kde.org>
+Date: Sun, 15 Apr 2018 01:39:58 +0200
+Subject: Don't need to run previous iterations commands again
+
+Summary: BUG: 393141
+
+Test Plan:
+Tested building plasma-workspace, it was clearly faster (although it
+would have finished eventually)
+
+Reviewers: #frameworks, arojas, sitter
+
+Reviewed By: sitter
+
+Subscribers: sitter, heikobecker
+
+Tags: #frameworks
+
+Differential Revision: https://phabricator.kde.org/D12216
+---
+ cmake/build-pofiles.cmake | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/cmake/build-pofiles.cmake b/cmake/build-pofiles.cmake
+index d0991ad..b39be31 100644
+--- a/cmake/build-pofiles.cmake
++++ b/cmake/build-pofiles.cmake
+@@ -62,6 +62,7 @@ foreach(pofile IN LISTS pofiles)
+     if(i EQUAL ${numberOfProcesses})
+         _processCommands()
+         set(i 0)
++        set(commands)
+     endif()
+ endforeach()
+ 
+-- 
+cgit v0.11.2

diff --git a/kde-frameworks/ki18n/ki18n-5.45.0-r2.ebuild b/kde-frameworks/ki18n/ki18n-5.45.0-r2.ebuild
new file mode 100644
index 00000000000..f419eb73015
--- /dev/null
+++ b/kde-frameworks/ki18n/ki18n-5.45.0-r2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+inherit kde5 python-single-r1
+
+DESCRIPTION="Framework based on Gettext for internationalizing user interface text"
+LICENSE="LGPL-2+"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+	$(add_qt_dep qtscript)
+	sys-devel/gettext
+	virtual/libintl
+"
+DEPEND="${RDEPEND}
+	test? (
+		$(add_qt_dep qtconcurrent)
+		$(add_qt_dep qtdeclarative)
+	)
+"
+
+PATCHES=( "${FILESDIR}/${P}-fix-build-pofiles.patch" )
+
+pkg_setup() {
+	kde5_pkg_setup
+	python-single-r1_pkg_setup
+}
+
+src_configure() {
+	local mycmakeargs=(
+		-DPYTHON_EXECUTABLE="${PYTHON}"
+	)
+	kde5_src_configure
+}