diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2009-02-21 13:38:18 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2009-02-21 13:38:18 +0000 |
commit | e206edbe5da1f4d0c82057c10289541c0244a300 (patch) | |
tree | 63766ae418f029d0c866be9f271d3b33fccf7367 /media-fonts/mikachan-font-ttf | |
parent | Fixed documentation build problem, bug #259632, thank Martin von Gagern for t... (diff) | |
download | gentoo-2-e206edbe5da1f4d0c82057c10289541c0244a300.tar.gz gentoo-2-e206edbe5da1f4d0c82057c10289541c0244a300.tar.bz2 gentoo-2-e206edbe5da1f4d0c82057c10289541c0244a300.zip |
Provide a fontconfig override
(Portage version: 2.1.6.7/cvs/Linux x86_64)
Diffstat (limited to 'media-fonts/mikachan-font-ttf')
4 files changed, 84 insertions, 4 deletions
diff --git a/media-fonts/mikachan-font-ttf/ChangeLog b/media-fonts/mikachan-font-ttf/ChangeLog index 8c23e3f56acb..c242fc9bfd2c 100644 --- a/media-fonts/mikachan-font-ttf/ChangeLog +++ b/media-fonts/mikachan-font-ttf/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-fonts/mikachan-font-ttf -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-fonts/mikachan-font-ttf/ChangeLog,v 1.15 2007/01/22 20:58:15 flameeyes Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-fonts/mikachan-font-ttf/ChangeLog,v 1.16 2009/02/21 13:38:18 lu_zero Exp $ + +*mikachan-font-ttf-8.9-r2 (21 Feb 2009) + + 21 Feb 2009; Luca Barbato <lu_zero@gentoo.org> +files/60-mikachan.conf, + +mikachan-font-ttf-8.9-r2.ebuild: + Provide a fontconfig override 22 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> mikachan-font-ttf-8.9-r1.ebuild: diff --git a/media-fonts/mikachan-font-ttf/files/60-mikachan.conf b/media-fonts/mikachan-font-ttf/files/60-mikachan.conf new file mode 100644 index 000000000000..900de354a453 --- /dev/null +++ b/media-fonts/mikachan-font-ttf/files/60-mikachan.conf @@ -0,0 +1,22 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> + <alias> + <family>serif</family> + <prefer> + <family>mikachan-P</family> <!-- han (ja) --> + </prefer> + </alias> + <alias> + <family>sans-serif</family> + <prefer> + <family>mikachan-P</family> <!-- han (ja) --> + </prefer> + </alias> + <alias> + <family>monospace</family> + <prefer> + <family>mikachan</family> <!-- han (ja) --> + </prefer> + </alias> +</fontconfig> diff --git a/media-fonts/mikachan-font-ttf/mikachan-font-ttf-8.9-r1.ebuild b/media-fonts/mikachan-font-ttf/mikachan-font-ttf-8.9-r1.ebuild index 65547ec71e06..c56e39d73700 100644 --- a/media-fonts/mikachan-font-ttf/mikachan-font-ttf-8.9-r1.ebuild +++ b/media-fonts/mikachan-font-ttf/mikachan-font-ttf-8.9-r1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-fonts/mikachan-font-ttf/mikachan-font-ttf-8.9-r1.ebuild,v 1.16 2007/02/17 13:41:46 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-fonts/mikachan-font-ttf/mikachan-font-ttf-8.9-r1.ebuild,v 1.17 2009/02/21 13:38:18 lu_zero Exp $ inherit font diff --git a/media-fonts/mikachan-font-ttf/mikachan-font-ttf-8.9-r2.ebuild b/media-fonts/mikachan-font-ttf/mikachan-font-ttf-8.9-r2.ebuild new file mode 100644 index 000000000000..e8a9e8fa0d60 --- /dev/null +++ b/media-fonts/mikachan-font-ttf/mikachan-font-ttf-8.9-r2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-fonts/mikachan-font-ttf/mikachan-font-ttf-8.9-r2.ebuild,v 1.1 2009/02/21 13:38:18 lu_zero Exp $ + +inherit font + +MY_PN="mikachanfont" + +DESCRIPTION="Mikachan Japanese TrueType fonts" +HOMEPAGE="http://mikachan-font.com/" +SRC_URI="mirror://sourceforge.jp/mikachan/5513/${MY_PN}-${PV}.tar.bz2 + mirror://sourceforge.jp/mikachan/5514/${MY_PN}P-${PV}.tar.bz2 + mirror://sourceforge.jp/mikachan/5515/${MY_PN}PB-${PV}.tar.bz2 + mirror://sourceforge.jp/mikachan/5516/${MY_PN}PS-${PV}.tar.bz2" + +LICENSE="free-noncomm" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="" + +FONT_S="${WORKDIR}" +FONT_SUFFIX="ttf" + +# Only installs fonts +RESTRICT="strip binchecks" +FONT_CONF=( "${FILESDIR}/60-mikachan.conf" ) + +src_install() { + insinto /usr/share/fonts/${PN} + + for f in "${MY_PN}" "${MY_PN}P" "${MY_PN}PB" "${MY_PN}PS" ; do + cd "${WORKDIR}/${f}-${PV}" + doins fonts/*.ttf + newdoc README README.${f} + newdoc README.ja README.ja.${f} + newdoc ChangeLog ChangeLog.${f} + done + + font_xfont_config + font_xft_config + font_fontconfig +} + +pkg_postinst() { + font_pkg_postinst + + echo + elog "To use mikachan ttf instead of the default font for sans, serif and" + elog "monospace, use:" + elog " eselect fontconfig enable 60-mikachan.conf" + echo +} |