# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-fonts/mplus-outline-fonts/mplus-outline-fonts-0_pre021.ebuild,v 1.1 2009/03/11 15:14:22 matsuu Exp $ inherit font MY_P="mplus-${PV/0_pre/TESTFLIGHT-}" MY_IPAFONT="opfc-ModuleHP-1.1.1_withIPAFonts" DESCRIPTION="M+ Japanese outline fonts with IPA font" HOMEPAGE="http://mplus-fonts.sourceforge.jp/ https://sourceforge.jp/projects/opfc/" SRC_URI="mirror://sourceforge.jp/mplus-fonts/6650/${MY_P}.tar.gz mirror://sourceforge.jp/opfc/13897/${MY_IPAFONT}.tar.gz" LICENSE="mplus-fonts grass-ipafonts" SLOT="0" KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~x86" IUSE="" DEPEND="dev-lang/perl media-gfx/fontforge" RDEPEND="" S="${WORKDIR}/${MY_P}" FONT_SUFFIX="ttf" FONT_S="${S}" DOCS="README_J" RESTRICT="strip binchecks" src_unpack() { unpack ${A} cp -p "${WORKDIR}"/${MY_IPAFONT}/fonts/*.ttf "${S}" } src_compile() { fontforge -script m++ipa.pe || die rm -f ipa* || die }