summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2019-10-19 20:06:18 +0200
committerDavid Seifert <soap@gentoo.org>2019-10-19 20:06:18 +0200
commit096108d6549d1d52d0cccac69c63eee6bf7c77a0 (patch)
tree76ef2a60c8cbc52575d3b7aa5e99c878929184e5 /media-fonts
parentmedia-fonts/tibetan-machine-font: Port to EAPI 7 (diff)
downloadgentoo-096108d6549d1d52d0cccac69c63eee6bf7c77a0.tar.gz
gentoo-096108d6549d1d52d0cccac69c63eee6bf7c77a0.tar.bz2
gentoo-096108d6549d1d52d0cccac69c63eee6bf7c77a0.zip
media-fonts/monafont: Port to EAPI 7
Bug: https://bugs.gentoo.org/697298 Package-Manager: Portage-2.3.77, Repoman-2.3.17 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-fonts')
-rw-r--r--media-fonts/monafont/monafont-2.90-r2.ebuild46
1 files changed, 24 insertions, 22 deletions
diff --git a/media-fonts/monafont/monafont-2.90-r2.ebuild b/media-fonts/monafont/monafont-2.90-r2.ebuild
index 8a7b62dca1db..e08506b5e6e7 100644
--- a/media-fonts/monafont/monafont-2.90-r2.ebuild
+++ b/media-fonts/monafont/monafont-2.90-r2.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=0
+EAPI=7
inherit font
@@ -9,48 +9,50 @@ MY_P="${P/_/}"
DESCRIPTION="Japanese bitmap and TrueType fonts suitable for browsing 2ch"
HOMEPAGE="http://monafont.sourceforge.net"
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2
- truetype? ( mirror://sourceforge/${PN}/${PN}-ttf-${PV}.zip )"
+SRC_URI="
+ mirror://sourceforge/${PN}/${MY_P}.tar.bz2
+ truetype? ( mirror://sourceforge/${PN}/${PN}-ttf-${PV}.zip )"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86"
IUSE="truetype"
+# Only installs fonts
+RESTRICT="strip binchecks"
-DEPEND="x11-apps/bdftopcf
- >=x11-apps/mkfontscale-1.2.0
- dev-lang/perl
- >=sys-apps/sed-4
- app-arch/unzip"
-RDEPEND=""
+BDEPEND="
+ app-arch/unzip
+ dev-lang/perl
+ x11-apps/bdftopcf
+ x11-apps/mkfontscale"
S="${WORKDIR}/${MY_P}"
+
FONT_S="${WORKDIR}"
FONT_SUFFIX="ttf"
FONTDIR="/usr/share/fonts/${PN}"
-# Only installs fonts
-RESTRICT="strip binchecks"
-
-src_unpack() {
- unpack ${A}
- sed -i -e 's:$(X11BINDIR)/mkdirhier:/bin/mkdir -p:' "${S}/Makefile"
+src_prepare() {
+ default
+ sed -i -e 's:$(X11BINDIR)/mkdirhier:/bin/mkdir -p:' Makefile || die
}
src_compile() {
- PERL_BADLANG=0 ; LC_CTYPE=C
- export PERL_BADLANG LC_CTYPE
- emake X11BINDIR="/usr/bin" || die
+ export PERL_BADLANG=0
+ export LC_CTYPE=C
+ emake X11BINDIR="${EPREFIX}/usr/bin"
}
src_install() {
- make install X11BINDIR="/usr/bin" X11FONTDIR="${D}/${FONTDIR}" || die
- mkfontdir "${D}/${FONTDIR}"
+ emake install X11BINDIR="${EPREFIX}/usr/bin" X11FONTDIR="${ED}${FONTDIR}"
+
+ mkfontdir "${ED}${FONTDIR}"
insinto "${FONTDIR}"
newins fonts.alias.mona fonts.alias
+
dodoc README*
- if use truetype ; then
+ if use truetype; then
DOCS="${WORKDIR}/README-ttf.txt"
font_src_install
fi
@@ -61,6 +63,6 @@ pkg_postinst() {
elog "You need to add following line into 'Section \"Files\"' in"
elog "XF86Config and reboot X Window System, to use these fonts."
elog
- elog "\tFontPath \"${FONTDIR}\""
+ elog "\tFontPath \"${EROOT}${FONTDIR}\""
elog
}