Line 0
Link Here
|
|
|
1 |
.if !defined(_INCLUDE_USES_FONTTOOLS_MK) |
2 |
|
3 |
_INCLUDE_USES_FONTTOOLS_MK= yes |
4 |
|
5 |
_FONTTOOLS_VALID_ARGS= graphite interpolatable lxml plot symfont ufo \ |
6 |
unicode woff |
7 |
|
8 |
.undef _FONTTOOLS_UNKNOWN_ARGS |
9 |
.for arg in ${fonttools_ARGS} |
10 |
.if empty(_FONTTOOLS_VALID_ARGS:M${arg}) |
11 |
_FONTTOOLS_UNKNOWN_ARGS+= ${arg} |
12 |
.endif |
13 |
.endfor |
14 |
|
15 |
.if !empty(_FONTTOOLS_UNKNOWN_ARGS) |
16 |
IGNORE= has unknown USES=fonttools arguments: ${_FONTTOOLS_UNKNOWN_ARGS} |
17 |
.endif |
18 |
|
19 |
.include "${USESDIR}/python.mk" |
20 |
|
21 |
fonttools_graphite_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lz4>=1.7.4.2:archivers/py-lz4@${PY_FLAVOR} |
22 |
|
23 |
fonttools_interpolatable_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scipy>=0:science/py-scipy@${PY_FLAVOR} |
24 |
|
25 |
fonttools_lxml_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>=4.0<5:devel/py-lxml@${PY_FLAVOR} \ |
26 |
${PY_TYPING} |
27 |
|
28 |
fonttools_plot_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>=0:math/py-matplotlib@${PY_FLAVOR} |
29 |
|
30 |
fonttools_symfont_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sympy>=0:math/py-sympy@${PY_FLAVOR} |
31 |
|
32 |
fonttools_ufo_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fs2>=2.2.0<3:devel/py-fs2@${PY_FLAVOR} \ |
33 |
${PY_ENUM34} |
34 |
|
35 |
fonttools_woff_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}brotli>=1.0.1:archivers/py-brotli@${PY_FLAVOR} \ |
36 |
${PYTHON_PKGNAMEPREFIX}zopfli>=0.1.4:archivers/py-zopfli@${PY_FLAVOR} |
37 |
|
38 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}fonttools:print/py-fonttools@${PY_FLAVOR} |
39 |
.for arg in ${fonttools_ARGS} |
40 |
RUN_DEPENDS+= ${fonttools_${arg}_RUN_DEPENDS} |
41 |
.endfor |
42 |
|
43 |
.if ${fonttools_ARGS:Mlxml} |
44 |
.if ${PYTHON_REL} < 3400 |
45 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}singledispatch>=3.4.0.3:devel/py-singledispatch@${PY_FLAVOR} |
46 |
.endif |
47 |
.endif |
48 |
|
49 |
.if ${fonttools_ARGS:Municode} |
50 |
.if ${PYTHON_REL} < 3800 |
51 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}unicodedata2>=12.0.0:devel/py-unicodedata2@${PY_FLAVOR} |
52 |
.endif |
53 |
.endif |
54 |
|
55 |
.endif |