1 |
commit: 000c310d76b3f2fafb3cb5ed377ea1b80ee2c42b |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> |
3 |
AuthorDate: Mon Apr 30 14:08:07 2018 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 30 15:39:49 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=000c310d |
7 |
|
8 |
app-i18n/unicode-emoji: Avoid subshells. |
9 |
|
10 |
app-i18n/unicode-emoji/unicode-emoji-11.0.ebuild | 8 +++++--- |
11 |
1 file changed, 5 insertions(+), 3 deletions(-) |
12 |
|
13 |
diff --git a/app-i18n/unicode-emoji/unicode-emoji-11.0.ebuild b/app-i18n/unicode-emoji/unicode-emoji-11.0.ebuild |
14 |
index 8a9a211570b..68f27b9b7b1 100644 |
15 |
--- a/app-i18n/unicode-emoji/unicode-emoji-11.0.ebuild |
16 |
+++ b/app-i18n/unicode-emoji/unicode-emoji-11.0.ebuild |
17 |
@@ -28,8 +28,10 @@ src_unpack() { |
18 |
|
19 |
src_install() { |
20 |
insinto /usr/share/unicode/emoji |
21 |
- local file |
22 |
- for file in ${A}; do |
23 |
- newins "${DISTDIR}/${file}" "$(sed -e "s/${PN%-*}-\(.*\)-${PV}/\1/" <<< "${file}")" |
24 |
+ local source_file target_file |
25 |
+ for source_file in ${A}; do |
26 |
+ target_file="${source_file#${PN%-*}-}" |
27 |
+ target_file="${target_file%-${PV}.txt}.txt" |
28 |
+ newins "${DISTDIR}/${source_file}" "${target_file}" |
29 |
done |
30 |
} |