myspell-r2.eclass: [QA] Use relative symlink target(s)
authorMichał Górny <mgorny@gentoo.org>
Tue, 22 Aug 2017 20:59:46 +0000 (22:59 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 22 Aug 2017 21:26:53 +0000 (23:26 +0200)
eclass/myspell-r2.eclass

index 4d2661354f23633dc1009096a22bb9df870d5cc1..5da9e3d0dc4746ce6edf054415aa49911a914fe8 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: aspell-dict.eclass
@@ -85,21 +85,21 @@ myspell-r2_src_install() {
        for x in "${MYSPELL_DICT[@]}"; do
                target="${x##*/}"
                newins "${x}" "${target}" || die
-               dosym /usr/share/hunspell/"${target}" /usr/share/myspell/"${target}" || die
+               dosym ../hunspell/"${target}" /usr/share/myspell/"${target}" || die
        done
 
        insinto /usr/share/mythes
        for x in "${MYSPELL_THES[@]}"; do
                target="${x##*/}"
                newins "${x}" "${target}" || die
-               dosym /usr/share/mythes/"${target}" /usr/share/myspell/"${target}" || die
+               dosym ../mythes/"${target}" /usr/share/myspell/"${target}" || die
        done
 
        insinto /usr/share/hyphen
        for x in "${MYSPELL_HYPH[@]}"; do
                target="${x##*/}"
                newins "${x}" "${target}" || die
-               dosym /usr/share/hyphen/"${target}" /usr/share/myspell/"${target}" || die
+               dosym ../hyphen/"${target}" /usr/share/myspell/"${target}" || die
        done
 
        # Remove licenses as they suffix them with .txt too