summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2018-04-30 16:08:07 +0200
committerMike Gilbert <floppym@gentoo.org>2018-04-30 11:39:49 -0400
commit000c310d76b3f2fafb3cb5ed377ea1b80ee2c42b (patch)
treec61f0b306958de6629d524c3b8282b5e14a5b344 /app-i18n
parentdev-python/protobuf-python: Stabilize 3.5.2-r1 on amd64/x86. (diff)
downloadgentoo-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.ebuild8
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 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
}