Lines 9-14
Link Here
|
9 |
# @BLURB: An eclass to ease the construction of ebuilds for myspell dicts |
9 |
# @BLURB: An eclass to ease the construction of ebuilds for myspell dicts |
10 |
# @DESCRIPTION: |
10 |
# @DESCRIPTION: |
11 |
|
11 |
|
|
|
12 |
# EAPI=6 is required for $(get_libdir) to work. |
13 |
case ${EAPI:-0} in |
14 |
6) ;; |
15 |
*) die "EAPI=${EAPI} is not supported" ;; |
16 |
esac |
17 |
|
12 |
EXPORT_FUNCTIONS src_unpack src_install |
18 |
EXPORT_FUNCTIONS src_unpack src_install |
13 |
|
19 |
|
14 |
# @ECLASS-VARIABLE: MYSPELL_DICT |
20 |
# @ECLASS-VARIABLE: MYSPELL_DICT |
Lines 27-37
Link Here
|
27 |
# Array variable containing list of all thesarus files. |
33 |
# Array variable containing list of all thesarus files. |
28 |
# MYSPELL_THES=( "file.dat" "dir/file2.idx" ) |
34 |
# MYSPELL_THES=( "file.dat" "dir/file2.idx" ) |
29 |
|
35 |
|
30 |
# Basically no extra deps needed. |
36 |
# for installing the dictionaries in the format supported by qtwebengine |
|
|
37 |
IUSE="qtwebengine" |
38 |
|
31 |
# Unzip is required for .oxt libreoffice extensions |
39 |
# Unzip is required for .oxt libreoffice extensions |
32 |
# which are just fancy zip files. |
40 |
# which are just fancy zip files. |
33 |
DEPEND="app-arch/unzip" |
41 |
# qtwebengine is required for the qwebengine_convert_dict utility |
34 |
RDEPEND="" |
42 |
DEPEND="app-arch/unzip qtwebengine? ( >=dev-qt/qtwebengine-5.8 )" |
|
|
43 |
RDEPEND="qtwebengine? ( >=dev-qt/qtwebengine-5.8 )" |
35 |
|
44 |
|
36 |
# by default this stuff does not have any folder in the pack |
45 |
# by default this stuff does not have any folder in the pack |
37 |
S="${WORKDIR}" |
46 |
S="${WORKDIR}" |
Lines 114-117
Link Here
|
114 |
dodoc ${x} || die |
123 |
dodoc ${x} || die |
115 |
fi |
124 |
fi |
116 |
done |
125 |
done |
|
|
126 |
|
127 |
if use qtwebengine; then |
128 |
mkdir -p ${D%/}/usr/share/qt5/qtwebengine_dictionaries || die |
129 |
for dic in ${D%/}/usr/share/hunspell/*.dic; do |
130 |
/usr/$(get_libdir)/qt5/bin/qwebengine_convert_dict $dic ${D%/}/usr/share/qt5/qtwebengine_dictionaries/$(basename $dic | sed 's/dic/bdic/') || die |
131 |
done |
132 |
fi |
117 |
} |
133 |
} |