app-i18n/unicode-emoji: Avoid subshells.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Mon, 30 Apr 2018 14:08:07 +0000 (16:08 +0200)
committerMike Gilbert <floppym@gentoo.org>
Mon, 30 Apr 2018 15:39:49 +0000 (11:39 -0400)
app-i18n/unicode-emoji/unicode-emoji-11.0.ebuild

index 8a9a211570ba91c4773bd997234d3e86f2c2b094..68f27b9b7b12ca18a6c7668ac12ca78873b3c77f 100644 (file)
@@ -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
 }