linamh/media-fonts/corefonts/corefonts-1-r8.ebuild
2022-02-23 19:17:30 +01:00

67 lines
2.5 KiB
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit font
DESCRIPTION="Microsoft's TrueType core fonts"
HOMEPAGE="http://corefonts.sourceforge.net/"
SRC_URI="mirror://gentoo/EUupdate.EXE
mirror://sourceforge/corefonts/andale32.exe
mirror://sourceforge/corefonts/arialb32.exe
mirror://sourceforge/corefonts/comic32.exe
mirror://sourceforge/corefonts/courie32.exe
mirror://sourceforge/corefonts/georgi32.exe
mirror://sourceforge/corefonts/impact32.exe
mirror://sourceforge/corefonts/webdin32.exe
mirror://sourceforge/corefonts/wd97vwr32.exe
mirror://sourceforge/corefonts/OldFiles/IELPKTH.CAB
mirror://sourceforge/mscorefonts/files/MS%20Core%20Fonts/win/verdan32.exe
mirror://sourceforge/mscorefonts/files/MS%20Core%20Fonts/win/webdin32.exe
mirror://sourceforge/mscorefonts/files/MS%20Core%20Fonts/win/trebuc32.exe
mirror://sourceforge/mscorefonts/files/MS%20Core%20Fonts/win/impact32.exe
mirror://sourceforge/mscorefonts/files/MS%20Core%20Fonts/win/times32.exe
mirror://sourceforge/mscorefonts/files/MS%20Core%20Fonts/win/georgi32.exe
mirror://sourceforge/mscorefonts/files/MS%20Core%20Fonts/win/courie32.exe
mirror://sourceforge/mscorefonts/files/MS%20Core%20Fonts/win/comic32.exe
mirror://sourceforge/mscorefonts/files/MS%20Core%20Fonts/win/arialb32.exe
mirror://sourceforge/mscorefonts/files/MS%20Core%20Fonts/win/arial32.exe
mirror://sourceforge/mscorefonts/files/MS%20Core%20Fonts/win/andale32.exe
mirror://sourceforge/mscorefonts2/files/cabs/PowerPointViewer.exe"
LICENSE="MSttfEULA"
SLOT="0"
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
IUSE="X tahoma"
DEPEND="app-arch/cabextract"
S=${WORKDIR}
FONT_S=${WORKDIR}
FONT_SUFFIX="ttf"
src_unpack() {
for exe in ${A} ; do
echo ">>> Unpacking ${exe} to ${WORKDIR}"
cabextract --lowercase "${DISTDIR}"/${exe} > /dev/null \
|| die "failed to unpack ${exe}"
done
if use tahoma; then
cabextract -F 'tahoma.ttf' "${WORKDIR}/viewer1.cab" > /dev/null \
|| die "failed to unpack tahoma.ttf"
fi
cabextract -F --lowercase "${WORKDIR}/viewer1.cab" > /dev/null \
|| die "failed to unpack extra fonts"
cabextract --lowercase "${WORKDIR}/ppviewer.cab" > /dev/null \
|| die "failed to unpack extra fonts"
}
src_install() {
font_src_install
# The license explicitly states that the license must be distributed with the
# fonts. The only way to do that for the binpkg is to include it.
dodoc license.txt
}