KEYWORDS="amd64"
IUSE=""
-DEPEND="${PYTHON_DEPS}
+BDEPEND="${PYTHON_DEPS}
app-arch/zopfli
$(python_gen_any_dep '
dev-python/fonttools[${PYTHON_USEDEP}]
x11-libs/cairo
|| ( media-gfx/imagemagick[png] media-gfx/graphicsmagick[png] )
"
-RDEPEND=""
RESTRICT="binchecks strip"
FONT_SUFFIX="ttf"
python_check_deps() {
- has_version "dev-python/fonttools[${PYTHON_USEDEP}]" && \
- has_version "dev-python/nototools[${PYTHON_USEDEP}]"
+ has_version -b "dev-python/fonttools[${PYTHON_USEDEP}]" &&
+ has_version -b "dev-python/nototools[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ font_pkg_setup
}
PATCHES=(
fi
}
+src_compile() {
+ python_setup
+ default
+}
+
src_install() {
font_src_install
KEYWORDS="~amd64"
IUSE="buildfont"
-DEPEND="buildfont? (
+BDEPEND="
+ buildfont? (
${PYTHON_DEPS}
app-arch/zopfli
$(python_gen_any_dep '
|| ( media-gfx/imagemagick[png] media-gfx/graphicsmagick[png] )
)
"
-RDEPEND=""
RESTRICT="binchecks strip"
S="${WORKDIR}/${PN}-${COMMIT}"
python_check_deps() {
- has_version "dev-python/fonttools[${PYTHON_USEDEP}]" && \
- has_version "dev-python/nototools[${PYTHON_USEDEP}]"
+ has_version -b "dev-python/fonttools[${PYTHON_USEDEP}]" &&
+ has_version -b "dev-python/nototools[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ font_pkg_setup
}
src_prepare() {
eapply "${FILESDIR}"/${PN}-zopflipng-verbose.patch
# Based on Fedora patch to allow graphicsmagick usage
- if has_version media-gfx/graphicsmagick; then
+ if has_version -b media-gfx/graphicsmagick; then
eapply "${FILESDIR}/${PN}-20190328-use-gm.patch"
fi
fi
einfo "To build fonts based on latest images enable 'buildfont'"
einfo "USE (that will require more time and resources too)."
else
+ python_setup
einfo "Building fonts..."
default
fi
KEYWORDS="~amd64"
IUSE=""
-DEPEND="${PYTHON_DEPS}
+BDEPEND="${PYTHON_DEPS}
app-arch/zopfli
$(python_gen_any_dep '
dev-python/fonttools[${PYTHON_USEDEP}]
x11-libs/cairo
|| ( media-gfx/imagemagick[png] media-gfx/graphicsmagick[png] )
"
-RDEPEND=""
RESTRICT="binchecks strip"
FONT_SUFFIX="ttf"
python_check_deps() {
- has_version "dev-python/fonttools[${PYTHON_USEDEP}]" && \
- has_version "dev-python/nototools[${PYTHON_USEDEP}]"
+ has_version -b "dev-python/fonttools[${PYTHON_USEDEP}]" &&
+ has_version -b "dev-python/nototools[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ font_pkg_setup
}
PATCHES=(
fi
}
+src_compile() {
+ python_setup
+ default
+}
+
src_install() {
font_src_install