-# 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
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
}
+++ /dev/null
-<?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>
<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>