From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 968EE1382C5 for ; Mon, 30 Apr 2018 15:58:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8A760E09CB; Mon, 30 Apr 2018 15:58:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 66EE9E0992 for ; Mon, 30 Apr 2018 15:58:30 +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 46DFC335C94 for ; Mon, 30 Apr 2018 15:58:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D8ECF2A5 for ; Mon, 30 Apr 2018 15:58:27 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1525102789.000c310d76b3f2fafb3cb5ed377ea1b80ee2c42b.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/unicode-emoji/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-i18n/unicode-emoji/unicode-emoji-11.0.ebuild X-VCS-Directories: app-i18n/unicode-emoji/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 000c310d76b3f2fafb3cb5ed377ea1b80ee2c42b X-VCS-Branch: master Date: Mon, 30 Apr 2018 15:58:27 +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: e4c7e7dc-22ac-43c2-9240-199a37201740 X-Archives-Hash: 5cb45bd5ef4638163d061b308e0dcff6 commit: 000c310d76b3f2fafb3cb5ed377ea1b80ee2c42b Author: Arfrever Frehtes Taifersar Arahesis Apache Org> AuthorDate: Mon Apr 30 14:08:07 2018 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Mon Apr 30 15:39:49 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=000c310d app-i18n/unicode-emoji: Avoid subshells. app-i18n/unicode-emoji/unicode-emoji-11.0.ebuild | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app-i18n/unicode-emoji/unicode-emoji-11.0.ebuild b/app-i18n/unicode-emoji/unicode-emoji-11.0.ebuild index 8a9a211570b..68f27b9b7b1 100644 --- a/app-i18n/unicode-emoji/unicode-emoji-11.0.ebuild +++ b/app-i18n/unicode-emoji/unicode-emoji-11.0.ebuild @@ -28,8 +28,10 @@ src_unpack() { src_install() { insinto /usr/share/unicode/emoji - local file - for file in ${A}; do - newins "${DISTDIR}/${file}" "$(sed -e "s/${PN%-*}-\(.*\)-${PV}/\1/" <<< "${file}")" + local source_file target_file + for source_file in ${A}; do + target_file="${source_file#${PN%-*}-}" + target_file="${target_file%-${PV}.txt}.txt" + newins "${DISTDIR}/${source_file}" "${target_file}" done }