summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-04-24 14:49:30 -0400
committerMike Gilbert <floppym@gentoo.org>2020-04-24 15:12:23 -0400
commit1ac4db79a15f5dbf186cac519da403ee14445ea6 (patch)
treebfd7afd4079a34521962d93a173a2f6e3c5748ef /media-fonts/noto-emoji
parentsci-libs/trilinos: version bump to 12.18.1 (diff)
downloadgentoo-1ac4db79a15f5dbf186cac519da403ee14445ea6.tar.gz
gentoo-1ac4db79a15f5dbf186cac519da403ee14445ea6.tar.bz2
gentoo-1ac4db79a15f5dbf186cac519da403ee14445ea6.zip
media-fonts/noto-emoji: fix python support
Closes: https://bugs.gentoo.org/719264 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'media-fonts/noto-emoji')
-rw-r--r--media-fonts/noto-emoji/noto-emoji-20200311.ebuild16
-rw-r--r--media-fonts/noto-emoji/noto-emoji-20200317-r1.ebuild15
-rw-r--r--media-fonts/noto-emoji/noto-emoji-20200317.ebuild16
3 files changed, 34 insertions, 13 deletions
diff --git a/media-fonts/noto-emoji/noto-emoji-20200311.ebuild b/media-fonts/noto-emoji/noto-emoji-20200311.ebuild
index 8c9d46ac17e5..96e7679fa644 100644
--- a/media-fonts/noto-emoji/noto-emoji-20200311.ebuild
+++ b/media-fonts/noto-emoji/noto-emoji-20200311.ebuild
@@ -17,7 +17,7 @@ SLOT="0"
KEYWORDS="amd64"
IUSE=""
-DEPEND="${PYTHON_DEPS}
+BDEPEND="${PYTHON_DEPS}
app-arch/zopfli
$(python_gen_any_dep '
dev-python/fonttools[${PYTHON_USEDEP}]
@@ -27,7 +27,6 @@ DEPEND="${PYTHON_DEPS}
x11-libs/cairo
|| ( media-gfx/imagemagick[png] media-gfx/graphicsmagick[png] )
"
-RDEPEND=""
RESTRICT="binchecks strip"
@@ -37,8 +36,12 @@ FONT_S="${S}"
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=(
@@ -58,6 +61,11 @@ src_prepare() {
fi
}
+src_compile() {
+ python_setup
+ default
+}
+
src_install() {
font_src_install
diff --git a/media-fonts/noto-emoji/noto-emoji-20200317-r1.ebuild b/media-fonts/noto-emoji/noto-emoji-20200317-r1.ebuild
index e34508200bf0..c676a419e557 100644
--- a/media-fonts/noto-emoji/noto-emoji-20200317-r1.ebuild
+++ b/media-fonts/noto-emoji/noto-emoji-20200317-r1.ebuild
@@ -17,7 +17,8 @@ SLOT="0"
KEYWORDS="~amd64"
IUSE="buildfont"
-DEPEND="buildfont? (
+BDEPEND="
+ buildfont? (
${PYTHON_DEPS}
app-arch/zopfli
$(python_gen_any_dep '
@@ -29,15 +30,18 @@ DEPEND="buildfont? (
|| ( 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() {
@@ -55,7 +59,7 @@ 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
@@ -68,6 +72,7 @@ src_compile() {
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
diff --git a/media-fonts/noto-emoji/noto-emoji-20200317.ebuild b/media-fonts/noto-emoji/noto-emoji-20200317.ebuild
index 73217e5becc4..b4230796aef1 100644
--- a/media-fonts/noto-emoji/noto-emoji-20200317.ebuild
+++ b/media-fonts/noto-emoji/noto-emoji-20200317.ebuild
@@ -17,7 +17,7 @@ SLOT="0"
KEYWORDS="~amd64"
IUSE=""
-DEPEND="${PYTHON_DEPS}
+BDEPEND="${PYTHON_DEPS}
app-arch/zopfli
$(python_gen_any_dep '
dev-python/fonttools[${PYTHON_USEDEP}]
@@ -27,7 +27,6 @@ DEPEND="${PYTHON_DEPS}
x11-libs/cairo
|| ( media-gfx/imagemagick[png] media-gfx/graphicsmagick[png] )
"
-RDEPEND=""
RESTRICT="binchecks strip"
@@ -37,8 +36,12 @@ FONT_S="${S}"
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=(
@@ -58,6 +61,11 @@ src_prepare() {
fi
}
+src_compile() {
+ python_setup
+ default
+}
+
src_install() {
font_src_install