media-fonts/lfpfonts-fix: Port to EAPI 7
authorDavid Seifert <soap@gentoo.org>
Sat, 19 Oct 2019 19:47:57 +0000 (21:47 +0200)
committerDavid Seifert <soap@gentoo.org>
Sat, 19 Oct 2019 19:47:57 +0000 (21:47 +0200)
Bug: https://bugs.gentoo.org/697304
Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: David Seifert <soap@gentoo.org>
media-fonts/lfpfonts-fix/files/lfpfonts-fix-0.83-noglyph.patch
media-fonts/lfpfonts-fix/lfpfonts-fix-0.83-r2.ebuild

index 77cf7a5fe5f411b748d4c1ed1aae2061874c1387..cd0e8f0b9ff7cf65dc6580b554907e94a0a776f3 100644 (file)
@@ -1,5 +1,5 @@
---- src/ucs2any.agriffis       2001-02-17 12:34:50.000000000 -0500
-+++ src/ucs2any        2006-01-11 10:53:15.000000000 -0500
+--- a/src/ucs2any
++++ b/src/ucs2any
 @@ -225,12 +225,7 @@
            if (!is_control($ucs)) {
                if ($startchar{$ucs}) {
index 371687a31729fb3402515a37d85308cee8b88308..4049c6c2f006ac4de738027ca9d539c81dd90344 100644 (file)
@@ -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
 }