media-fonts/vc-fonts: Port to EAPI 7
authorDavid Seifert <soap@gentoo.org>
Sat, 19 Oct 2019 20:11:26 +0000 (22:11 +0200)
committerDavid Seifert <soap@gentoo.org>
Sat, 19 Oct 2019 20:11:26 +0000 (22:11 +0200)
Bug: https://bugs.gentoo.org/697308
Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: David Seifert <soap@gentoo.org>
media-fonts/vc-fonts/vc-fonts-20020207-r2.ebuild

index 2ac1d4fc9943a6a23729b4bd618b4065bb20ca43..8f608d887731b39c0b251e90fb24fe0c737b8cc1 100644 (file)
@@ -1,33 +1,32 @@
-# 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 font-ebdftopcf
 
 DESCRIPTION="Vico bitmap Fonts"
-SRC_URI="http://vico.kleinplanet.de/files/${P}.tar.bz2
-               mirror://gentoo/bleed3.bdf.gz"
 HOMEPAGE="http://vico.kleinplanet.de/"
+SRC_URI="
+       http://vico.kleinplanet.de/files/${P}.tar.bz2
+       mirror://gentoo/bleed3.bdf.gz"
 
-KEYWORDS="alpha amd64 arm ia64 ppc ppc64 s390 sh sparc x86"
 LICENSE="GPL-2"
-SLOT=0
-IUSE=""
+SLOT="0"
+KEYWORDS="alpha amd64 arm ia64 ppc ppc64 s390 sh sparc x86"
+# Only installs fonts
+RESTRICT="strip binchecks"
 
 S="${WORKDIR}/vc"
-FONT_S="${S}"
+
 FONT_PN="vc"
-FONTDIR="/usr/share/fonts/${FONT_PN}"
+FONT_S="${S}"
 FONT_SUFFIX="bdf pcf.gz"
+FONTDIR="/usr/share/fonts/${FONT_PN}"
 
-#Only installs fonts
-RESTRICT="strip binchecks"
-
-src_unpack() {
-       unpack ${A}
-       cd "${S}"
+src_prepare() {
+       default
 
-       mv "${WORKDIR}"/bleed3.bdf "${S}"
-       rm bleed2.pcf.gz
+       mv ../bleed3.bdf . || die
+       rm bleed2.pcf.gz || die
 }