summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-gfx/fontforge/fontforge-20190317.ebuild12
1 files changed, 11 insertions, 1 deletions
diff --git a/media-gfx/fontforge/fontforge-20190317.ebuild b/media-gfx/fontforge/fontforge-20190317.ebuild
index ab6e6757668..3e2be07fecd 100644
--- a/media-gfx/fontforge/fontforge-20190317.ebuild
+++ b/media-gfx/fontforge/fontforge-20190317.ebuild
@@ -4,8 +4,9 @@
EAPI=7
PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
+VIRTUALX_REQUIRED="manual"
-inherit python-single-r1 xdg
+inherit python-single-r1 virtualx xdg
DESCRIPTION="postscript font editor and converter"
HOMEPAGE="http://fontforge.github.io/"
@@ -56,6 +57,7 @@ DEPEND="${RDEPEND}
BDEPEND="
sys-devel/gettext
virtual/pkgconfig
+ test? ( gtk? ( ${VIRTUALX_DEPEND} ) )
"
# Needs keywording on many arches.
@@ -106,6 +108,14 @@ src_compile() {
emake
}
+src_test() {
+ if use gtk; then
+ virtx emake check
+ else
+ emake check
+ fi
+}
+
src_install() {
default
find "${ED}" -name '*.la' -type f -delete || die