diff options
author | Mamoru Komachi <usata@gentoo.org> | 2005-05-03 15:13:23 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2005-05-03 15:13:23 +0000 |
commit | 540b4584f5c9bbe3db8c2c6226025f670609f94e (patch) | |
tree | 9e73a6af73132df6d1e40d7e7b2130e33ce74342 /media-fonts/mathematica-fonts/mathematica-fonts-4.2.ebuild | |
parent | Added ~ppc64 (diff) | |
download | gentoo-2-540b4584f5c9bbe3db8c2c6226025f670609f94e.tar.gz gentoo-2-540b4584f5c9bbe3db8c2c6226025f670609f94e.tar.bz2 gentoo-2-540b4584f5c9bbe3db8c2c6226025f670609f94e.zip |
Initial import. Ebuild submitted by Matthieu Sozeau <mattam@gentoo.org>; bug #52014.
(Portage version: 2.0.51.19)
Diffstat (limited to 'media-fonts/mathematica-fonts/mathematica-fonts-4.2.ebuild')
-rw-r--r-- | media-fonts/mathematica-fonts/mathematica-fonts-4.2.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/media-fonts/mathematica-fonts/mathematica-fonts-4.2.ebuild b/media-fonts/mathematica-fonts/mathematica-fonts-4.2.ebuild new file mode 100644 index 000000000000..0650d6d4bb32 --- /dev/null +++ b/media-fonts/mathematica-fonts/mathematica-fonts-4.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2005 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-fonts/mathematica-fonts/mathematica-fonts-4.2.ebuild,v 1.1 2005/05/03 15:13:23 usata Exp $ + +inherit font + +DESCRIPTION="Mathematica's Fonts for MathML" + +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_${PV//./}.exe" +TYPE1_FILE="MathFonts_Type1_${PV//./}.exe" + +SRC_URI="truetype? ( $TRUETYPE_FILE ) +!truetype? ( $TYPE1_FILE )" +LICENSE="WRI-EULA" + +SLOT="0" +KEYWORDS="~x86" +IUSE="truetype" +DEPEND="app-arch/unzip" +RDEPEND="" +RESTRICT="fetch nomirror" +S=${WORKDIR}/ +FONT_S=${S} + +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() { + # zip is sufficient to extract the archive + unzip ${DISTDIR}/${A} >/dev/null || die "failed to unpack ${A}" +} + +src_install() { + if use truetype; then + FONT_SUFFIX="ttf" + else + FONT_SUFFIX="pf*" + fi + + font_src_install +} |