diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2018-04-30 16:08:07 +0200 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2018-04-30 11:39:49 -0400 |
commit | 000c310d76b3f2fafb3cb5ed377ea1b80ee2c42b (patch) | |
tree | c61f0b306958de6629d524c3b8282b5e14a5b344 /app-i18n | |
parent | dev-python/protobuf-python: Stabilize 3.5.2-r1 on amd64/x86. (diff) | |
download | gentoo-000c310d76b3f2fafb3cb5ed377ea1b80ee2c42b.tar.gz gentoo-000c310d76b3f2fafb3cb5ed377ea1b80ee2c42b.tar.bz2 gentoo-000c310d76b3f2fafb3cb5ed377ea1b80ee2c42b.zip |
app-i18n/unicode-emoji: Avoid subshells.
Diffstat (limited to 'app-i18n')
-rw-r--r-- | app-i18n/unicode-emoji/unicode-emoji-11.0.ebuild | 8 |
1 files 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 8a9a211570ba..68f27b9b7b12 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 } |