summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2019-10-19 21:47:57 +0200
committerDavid Seifert <soap@gentoo.org>2019-10-19 21:47:57 +0200
commitf93be544dadeafab67385d1046455d3746e33338 (patch)
tree4aca9f3207089c5fbae8a4e4bf942adc2e0191a7 /media-fonts/lfpfonts-fix/lfpfonts-fix-0.83-r2.ebuild
parentmedia-fonts/sgi-fonts: Port to EAPI 7 (diff)
downloadgentoo-f93be544dadeafab67385d1046455d3746e33338.tar.gz
gentoo-f93be544dadeafab67385d1046455d3746e33338.tar.bz2
gentoo-f93be544dadeafab67385d1046455d3746e33338.zip
media-fonts/lfpfonts-fix: Port to EAPI 7
Bug: https://bugs.gentoo.org/697304 Package-Manager: Portage-2.3.77, Repoman-2.3.17 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-fonts/lfpfonts-fix/lfpfonts-fix-0.83-r2.ebuild')
-rw-r--r--media-fonts/lfpfonts-fix/lfpfonts-fix-0.83-r2.ebuild30
1 files changed, 13 insertions, 17 deletions
diff --git a/media-fonts/lfpfonts-fix/lfpfonts-fix-0.83-r2.ebuild b/media-fonts/lfpfonts-fix/lfpfonts-fix-0.83-r2.ebuild
index 371687a3172..4049c6c2f00 100644
--- a/media-fonts/lfpfonts-fix/lfpfonts-fix-0.83-r2.ebuild
+++ b/media-fonts/lfpfonts-fix/lfpfonts-fix-0.83-r2.ebuild
@@ -1,37 +1,33 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=0
+EAPI=7
-inherit font eutils font-ebdftopcf
+inherit font font-ebdftopcf
DESCRIPTION="Linux Font Project fixed-width fonts"
SRC_URI="mirror://sourceforge/xfonts/${PN}-src-${PV}.tar.bz2"
HOMEPAGE="https://sourceforge.net/projects/xfonts/"
-LICENSE="public-domain"
+LICENSE="public-domain"
SLOT="0"
KEYWORDS="alpha amd64 arm ia64 ppc s390 sh sparc x86"
-IUSE=""
+# Only installs fonts
+RESTRICT="strip binchecks"
S="${WORKDIR}/${PN}-src"
-FONT_S="${S}/src"
-
-DOCS="${S}/doc/*"
+PATCHES=( "${FILESDIR}"/${PN}-0.83-noglyph.patch )
-# Only installs fonts
-RESTRICT="strip binchecks"
+DOCS="doc/*"
+FONT_S="${S}/src"
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch ${FILESDIR}/${PN}-0.83-noglyph.patch
+src_prepare() {
+ default
+ sed -i -e '/^FONT /s/\(.*-\)C*-/\1C-/' src/*.bdf || die
}
src_compile() {
- cd "${FONT_S}"
- sed -i -e '/^FONT /s/\(.*-\)C*-/\1C-/' *.bdf || die "sed failed"
-
+ cd "${FONT_S}" || die
font-ebdftopcf_src_compile
}