|
Lines 1-4
Link Here
|
| 1 |
# Copyright 1999-2018 Gentoo Foundation |
1 |
# Copyright 1999-2019 Gentoo Authors |
| 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 |
|
3 |
|
| 4 |
EAPI=6 |
4 |
EAPI=6 |
|
Lines 25-34
DEPEND="
Link Here
|
| 25 |
fontforge? ( |
25 |
fontforge? ( |
| 26 |
${PYTHON_DEPS} |
26 |
${PYTHON_DEPS} |
| 27 |
media-gfx/fontforge |
27 |
media-gfx/fontforge |
| 28 |
dev-python/fonttools |
28 |
$(python_gen_any_dep '<dev-python/fonttools-4.0[${PYTHON_USEDEP}]') |
| 29 |
)" |
29 |
)" |
| 30 |
RDEPEND="" |
30 |
RDEPEND="" |
| 31 |
|
31 |
|
|
|
32 |
python_check_deps() { |
| 33 |
if use fontforge ; then |
| 34 |
has_version "dev-python/fonttools[${PYTHON_USEDEP}]" |
| 35 |
fi |
| 36 |
} |
| 37 |
|
| 38 |
src_prepare() { |
| 39 |
default |
| 40 |
if use fontforge ; then |
| 41 |
sed -i "s/= python/= ${EPYTHON}/" Makefile || die |
| 42 |
fi |
| 43 |
} |
| 44 |
|
| 32 |
pkg_setup() { |
45 |
pkg_setup() { |
| 33 |
if use fontforge; then |
46 |
if use fontforge; then |
| 34 |
FONT_S="${S}/${PN}-ttf-${PV}" |
47 |
FONT_S="${S}/${PN}-ttf-${PV}" |