blob: 34ba5be49640871cb810a5603c13f09177e70de1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
MASTER_SITES?= KDE/${KDE4_BRANCH}/${PORTVERSION}/src/kde-l10n/
PKGNAMEPREFIX= ${KDE4_L10N:S/@/_/}-
DISTNAME= ${PORTNAME}-${KDE4_L10N}-${PORTVERSION}
DIST_SUBDIR?= KDE/${PORTVERSION}/kde-l10n
USE_QT4= uic_build moc_build qmake_build rcc_build xml
USE_KDE4= kdelibs automoc4
USES= cmake gettext tar:xz
# Support for spelling dictionaries
${KDE4_L10N}_CATEGORY?= textproc
ar_CATEGORY= arabic
de_CATEGORY= german
fr_CATEGORY= french
he_CATEGORY= hebrew
hu_CATEGORY= hungarian
ko_CATEGORY= korean
pl_CATEGORY= polish
pt_BR_CATEGORY= portuguese
pt_CATEGORY= portuguese
ru_CATEGORY= russian
uk_CATEGORY= ukrainian
vi_CATEGORY= vietnamese
en_GB_aspell_PORT_PREFIX= en-
en_GB_aspell_DETECT_PREFIX= en-
en_GB_hunspell_PORT_PREFIX= en-
en_GB_hunspell_DETECT_PREFIX= en-
ca@valencia_aspell_PORT_PREFIX= ca-
ca@valencia_aspell_DETECT_PREFIX= ca-
he_aspell_DETECT_PREFIX= iw-
he_hunspell_DETECT_PREFIX= iw-
pt_BR_aspell_PORT_SUFFIX= -pt_BR
pt_BR_hunspell_DETECT_PREFIX= pt-
pt_aspell_PORT_SUFFIX= -pt_PT
pt_aspell_DETECT_PREFIX= pt_PT-
.for i in ar de fr he hu ko pl pt_BR pt ru uk vi
${i}_aspell_PORT_PREFIX= #
${i}_hunspell_PORT_PREFIX= #
.endfor
.for i in aspell hunspell
${KDE4_L10N}_${i}_DETECT_PREFIX?= ${KDE4_L10N}-
${KDE4_L10N}_${i}_DETECT_SUFFIX?= #
${KDE4_L10N}_${i}_DETECT?= ${${KDE4_L10N}_${i}_DETECT_PREFIX}${i}${${KDE4_L10N}_${i}_DETECT_SUFFIX}>=0
${KDE4_L10N}_${i}_PORT_PREFIX?= ${KDE4_L10N}-
${KDE4_L10N}_${i}_PORT_SUFFIX?= #
${KDE4_L10N}_${i}_PORT?= ${${KDE4_L10N}_CATEGORY}/${${KDE4_L10N}_${i}_PORT_PREFIX}${i}${${KDE4_L10N}_${i}_PORT_SUFFIX}
.endfor
.if exists(${.CURDIR}/../../${${KDE4_L10N}_aspell_PORT}/Makefile)
OPTIONS_DEFINE+= ASPELL
ASPELL_DESC= Install aspell dictionary
.endif
.if exists(${.CURDIR}/../../${${KDE4_L10N}_hunspell_PORT}/Makefile)
OPTIONS_DEFINE+= HUNSPELL
HUNSPELL_DESC= Install hunspell dictionary
.endif
ASPELL_RUN_DEPENDS+= ${${KDE4_L10N}_aspell_DETECT}:${${KDE4_L10N}_aspell_PORT}
HUNSPELL_RUN_DEPENDS+= ${${KDE4_L10N}_hunspell_DETECT}:${${KDE4_L10N}_hunspell_PORT}
|