# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-FONT_PN=jmk
+EAPI=7
-inherit font
+MY_P="jmk-x11-fonts-${PV}"
-MY_P=jmk-x11-fonts-${PV}
-S=${WORKDIR}/${MY_P}
DESCRIPTION="This package contains character-cell fonts for use with X"
-SRC_URI="http://www.pobox.com/~jmknoble/fonts/${MY_P}.tar.gz"
HOMEPAGE="http://www.jmknoble.net/fonts/"
+SRC_URI="http://www.pobox.com/~jmknoble/fonts/${MY_P}.tar.gz"
+
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~ia64 ppc s390 ~sh sparc x86"
-IUSE=""
+KEYWORDS="alpha amd64 arm ia64 ppc s390 sh sparc x86"
-DEPEND="x11-misc/imake
+BDEPEND="
+ x11-misc/imake
>=x11-apps/mkfontscale-1.2.0
x11-apps/bdftopcf"
-RDEPEND=""
-src_unpack() {
- unpack ${A}
- cd "${S}"
- eapply "${FILESDIR}"/gzip.patch
-}
+PATCHES=( "${FILESDIR}"/gzip.patch )
+
+S="${WORKDIR}/${MY_P}"
src_compile() {
xmkmf || die
- emake || die
+ default
}
src_install() {
- make install INSTALL_DIR="${D}${FONTDIR}" || die
- dodoc README NEWS
+ emake install INSTALL_DIR="${ED}/usr/share/fonts/jmk"
+ einstalldocs
}