diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2012-04-24 13:07:03 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2012-04-24 13:07:03 +0000 |
commit | c3f3d1ad61336b36d00464ad5f9b96d9e53fd701 (patch) | |
tree | 1a7bf4ec4f18d8984f80cf6adcc5c911980292ad /eclass/myspell-r2.eclass | |
parent | Bump slovak dict to latest version. Using the date from ftp folder. (diff) | |
download | historical-c3f3d1ad61336b36d00464ad5f9b96d9e53fd701.tar.gz historical-c3f3d1ad61336b36d00464ad5f9b96d9e53fd701.tar.bz2 historical-c3f3d1ad61336b36d00464ad5f9b96d9e53fd701.zip |
Oops didn't commit the dir supporting version. This replaces plain doins with proper newins command.
Diffstat (limited to 'eclass/myspell-r2.eclass')
-rw-r--r-- | eclass/myspell-r2.eclass | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/eclass/myspell-r2.eclass b/eclass/myspell-r2.eclass index be52526dd264..b9715aef8b91 100644 --- a/eclass/myspell-r2.eclass +++ b/eclass/myspell-r2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/myspell-r2.eclass,v 1.1 2012/04/24 12:49:09 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/myspell-r2.eclass,v 1.2 2012/04/24 13:07:03 scarabeus Exp $ # @ECLASS: aspell-dict.eclass # @MAINTAINER: @@ -61,7 +61,7 @@ myspell-r2_src_unpack() { # @DESCRIPTION: # Install the dictionaries to the right places. myspell-r2_src_install() { - local x + local x target # Following the debian directory layout here. # DICT: /usr/share/hunspell @@ -74,20 +74,23 @@ myspell-r2_src_install() { insinto /usr/share/hunspell for x in "${MYSPELL_DICT[@]}"; do - doins "${x}" || die - dosym /usr/share/hunspell/"${x}" /usr/share/myspell/"${x}" || die + target="${x##*/}" + newins "${x}" "${target}" || die + dosym /usr/share/hunspell/"${target}" /usr/share/myspell/"${target}" || die done insinto /usr/share/mythes for x in "${MYSPELL_THES[@]}"; do - doins "${x}" || die - dosym /usr/share/mythes/"${x}" /usr/share/myspell/"${x}" || die + target="${x##*/}" + newins "${x}" "${target}" || die + dosym /usr/share/mythes/"${target}" /usr/share/myspell/"${target}" || die done insinto /usr/share/hyphen for x in "${MYSPELL_HYPH[@]}"; do - doins "${x}" || die - dosym /usr/share/hyphen/"${x}" /usr/share/myspell/"${x}" || die + target="${x##*/}" + newins "${x}" "${target}" || die + dosym /usr/share/hyphen/"${target}" /usr/share/myspell/"${target}" || die done # Readme and so on |