# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit font DESCRIPTION="Fonts from Mathematica" HOMEPAGE="http://support.wolfram.com/mathematica/systems/windows/general/latestfonts.html" DOWNLOAD_URI="http://support.wolfram.com/mathematica/systems/windows/general/" TRUETYPE_FILE="MathFonts_TrueType.exe" TYPE1_FILE="MathFonts_Type1.exe" SRC_URI="truetype? ( $TRUETYPE_FILE ) !truetype? ( $TYPE1_FILE )" LICENSE="WRI-EULA" SLOT="0" KEYWORDS="~x86 ~ppc" IUSE="truetype" DEPEND="app-arch/unzip" RDEPEND="" RESTRICT="fetch nomirror" S=${WORKDIR}/ pkg_nofetch() { einfo "Please visit the homepage:" einfo $HOMEPAGE einfo "and download " if use truetype; then einfo ${DOWNLOAD_URI}${TRUETYPE_FILE} else einfo ${DOWNLOAD_URI}${TYPE1_FILE} fi einfo "Then just put the file in ${DISTDIR}" } src_unpack() { cd ${S} if use truetype; then unzip ${DISTDIR}/MathFonts_TrueType.exe else unzip ${DISTDIR}/MathFonts_Type1.exe fi } src_install() { if use truetype; then FONT_SUFFIX="ttf" else FONT_SUFFIX="pf*" fi font_src_install } #pkg_postinst() { # einfo "To use this fonts, add /usr/share/fonts/${PN} to /etc/X11/XftConfig" # einfo "and /etc/X11/fs/config path variables and restart X font server" #}