media-fonts/aquapfont: Port to EAPI 7
authorDavid Seifert <soap@gentoo.org>
Sat, 19 Oct 2019 18:06:05 +0000 (20:06 +0200)
committerDavid Seifert <soap@gentoo.org>
Sat, 19 Oct 2019 18:06:05 +0000 (20:06 +0200)
Bug: https://bugs.gentoo.org/697292
Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: David Seifert <soap@gentoo.org>
media-fonts/aquapfont/aquapfont-2.6-r2.ebuild
media-fonts/aquapfont/files/60-aquapfont-r1.conf [deleted file]
media-fonts/aquapfont/files/60-aquapfont.conf

index 657d83c7c412a69d10b7879235e5e1af3727e55f..dfa5495e12f6e7323debd658753bbe9c002ad031 100644 (file)
@@ -1,7 +1,7 @@
-# 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
 
@@ -14,30 +14,21 @@ SRC_URI="http://aquablue.milkcafe.to/tears/font/${MY_P}.zip"
 LICENSE="aquafont"
 SLOT="0"
 KEYWORDS="alpha amd64 arm ia64 ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
-IUSE=""
-
-S="${WORKDIR}/${MY_P}"
-FONT_S="${S}"
-FONT_SUFFIX="ttf"
-DOCS="readme.txt"
-
-DEPEND="app-arch/unzip"
-RDEPEND=""
-
 # Only installs fonts
 RESTRICT="strip binchecks"
 
-FONT_CONF=( "${T}/60-aquapfont.conf" )
+BDEPEND="app-arch/unzip"
 
-src_compile() {
-       cp "${FILESDIR}"/60-aquapfont-r1.conf "${T}"/60-aquapfont.conf || die
-}
+S="${WORKDIR}/${MY_P}"
+
+DOCS="readme.txt"
+FONT_CONF=( "${FILESDIR}"/60-aquapfont.conf )
+FONT_S="${S}"
+FONT_SUFFIX="ttf"
 
 pkg_postinst() {
        font_pkg_postinst
 
-       echo
        elog "To use aquapfont instead of the default font for sans and serif use:"
        elog "   eselect fontconfig enable 60-aquapfont.conf"
-       echo
 }
diff --git a/media-fonts/aquapfont/files/60-aquapfont-r1.conf b/media-fonts/aquapfont/files/60-aquapfont-r1.conf
deleted file mode 100644 (file)
index 3610820..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
-<fontconfig>
-       <alias>
-               <family>serif</family>
-               <prefer>
-                       <family>aqua_pfont</family> <!-- han (ja) -->
-               </prefer>
-       </alias>
-       <alias>
-               <family>sans-serif</family>
-               <prefer>
-                       <family>aqua_pfont</family> <!-- han (ja) -->
-               </prefer>
-       </alias>
-</fontconfig>
index 07c60a6afe56c2dc7b716c34c717d827aae86819..3610820e10db976c2c34edf7e451562e5462f50c 100644 (file)
@@ -4,19 +4,13 @@
        <alias>
                <family>serif</family>
                <prefer>
-                       <family>mikachan_o-P</family> <!-- han (ja) -->
+                       <family>aqua_pfont</family> <!-- han (ja) -->
                </prefer>
        </alias>
        <alias>
                <family>sans-serif</family>
                <prefer>
-                       <family>mikachan_o-P</family> <!-- han (ja) -->
-               </prefer>
-       </alias>
-       <alias>
-               <family>monospace</family>
-               <prefer>
-                       <family>mikachan_o</family> <!-- han (ja) -->
+                       <family>aqua_pfont</family> <!-- han (ja) -->
                </prefer>
        </alias>
 </fontconfig>