# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit rpm font MY_PN="fonts-indic" MY_PR="1.fc7" MY_LANGS="bengali gujarati hindi kannada malayalam oriya punjabi tamil telugu" DESCRIPTION="The Lohit family of indic fonts" HOMEPAGE="http://fedoraproject.org/wiki/Lohit" LICENSE="GPL-2" SRC_URI="http://redhat.download.fedoraproject.org/pub/fedora/linux/core/development/source/SRPMS/${MY_PN}-${PV}-${MY_PR}.src.rpm" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" IUSE="${MY_LANGS}" FONT_SUFFIX="ttf" src_unpack() { # if no language was specified, provide all languages local nolang=1 local i rpm_src_unpack ${A} mv ${MY_PN}-${PV} ${P} cd ${P} for i in ${MY_LANGS}; do if use $i; then cp $i/*ttf . nolang=0 fi done if [ ${nolang} -eq 1 ]; then einfo "No languages specified -- installing all available languages." einfo "To select the languages whose fonts you want installed, see the" einfo "list of available USE flags." for i in ${MY_LANGS}; do cp $i/*ttf . done fi } # Only installs fonts RESTRICT="strip binchecks"