Lines 8-14
Link Here
|
8 |
|
8 |
|
9 |
inherit multilib |
9 |
inherit multilib |
10 |
|
10 |
|
11 |
EXPORT_FUNCTIONS src_install pkg_preinst pkg_postinst |
11 |
EXPORT_FUNCTIONS src_unpack src_install pkg_preinst pkg_postinst |
12 |
|
12 |
|
13 |
IUSE="" |
13 |
IUSE="" |
14 |
|
14 |
|
Lines 116-121
Link Here
|
116 |
# This format is from the available.lst, hyphavail.lst and |
116 |
# This format is from the available.lst, hyphavail.lst and |
117 |
# thesavail.lst files on the openoffice.org repository. |
117 |
# thesavail.lst files on the openoffice.org repository. |
118 |
|
118 |
|
|
|
119 |
#got inspiration from /usr/lib/portage/bin/ebuild.sh and /usr/portage/eclass/mozextension.eclass |
120 |
myspell_src_unpack() { |
121 |
local oxt oxtname srcdir |
122 |
|
123 |
[ -z "${A}" ] && die "Nothing passed to the 'unpack' command" |
124 |
|
125 |
srcdir="${DISTDIR}/" |
126 |
|
127 |
for oxt in ${A}; do |
128 |
einfo "Unpacking ${oxt} to ${PWD}" |
129 |
|
130 |
[[ -s "${srcdir}${oxt}" ]] || die "${oxt} does not exist" |
131 |
|
132 |
case "${oxt##*.}" in |
133 |
oxt) |
134 |
unzip -qoj "${srcdir}${oxt}" || die "failed to unpack ${oxt}" |
135 |
;; |
136 |
ZIP|zip) |
137 |
unpack ${oxt} |
138 |
;; |
139 |
*) |
140 |
einfo "unpack ${oxt}: file format not recognized. Ignoring." |
141 |
;; |
142 |
esac |
143 |
done |
144 |
} |
145 |
|
119 |
myspell_src_install() { |
146 |
myspell_src_install() { |
120 |
local filen fields entry dictlst |
147 |
local filen fields entry dictlst |
121 |
cd "${WORKDIR}" |
148 |
cd "${WORKDIR}" |