| 1 | # Copyright 1999-2006 Gentoo Foundation |
1 | # Copyright 1999-2006 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/myspell.eclass,v 1.6 2009/02/09 08:21:00 pva Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/myspell.eclass,v 1.7 2011/12/10 19:22:38 vapier Exp $ |
| 4 | |
4 | |
| 5 | # Author: Kevin F. Quinn <kevquinn@gentoo.org> |
5 | # Author: Kevin F. Quinn <kevquinn@gentoo.org> |
| 6 | # Packages: app-dicts/myspell-* |
6 | # Packages: app-dicts/myspell-* |
| 7 | # Herd: app-dicts |
7 | # Herd: app-dicts |
| 8 | |
8 | |
| … | |
… | |
| 144 | doins ${fields[2]}.dat || die "Missing ${fields[2]}.dat" |
144 | doins ${fields[2]}.dat || die "Missing ${fields[2]}.dat" |
| 145 | doins ${fields[2]}.idx || die "Missing ${fields[2]}.idx" |
145 | doins ${fields[2]}.idx || die "Missing ${fields[2]}.idx" |
| 146 | done |
146 | done |
| 147 | doins ${dictlst} || die "Failed to install ${dictlst}" |
147 | doins ${dictlst} || die "Failed to install ${dictlst}" |
| 148 | # Install any txt files (usually README.txt) as documentation |
148 | # Install any txt files (usually README.txt) as documentation |
| 149 | for filen in $(ls *.txt 2> /dev/null); do |
149 | for filen in *.txt; do |
| 150 | dodoc ${filen} |
150 | [[ -s ${filen} ]] && dodoc ${filen} |
| 151 | done |
151 | done |
| 152 | } |
152 | } |
| 153 | |
153 | |
| 154 | |
154 | |
| 155 | # Add entries in dictionary.lst.<lang> to OOo dictionary.lst |
155 | # Add entries in dictionary.lst.<lang> to OOo dictionary.lst |