source: media-fonts/corefonts/corefonts-1-r8.ebuild @ b9d3a6e

Revision b9d3a6e, 1.8 KB checked in by Mario Fetka <mario.fetka@…>, 10 months ago (diff)

Bump

  • Property mode set to 100644
Line 
1# Copyright 1999-2019 Gentoo Authors
2# Distributed under the terms of the GNU General Public License v2
3
4EAPI=5
5inherit font
6
7DESCRIPTION="Microsoft's TrueType core fonts"
8HOMEPAGE="http://corefonts.sourceforge.net/"
9SRC_URI="mirror://gentoo/EUupdate.EXE
10        mirror://sourceforge/corefonts/andale32.exe
11        mirror://sourceforge/corefonts/arialb32.exe
12        mirror://sourceforge/corefonts/comic32.exe
13        mirror://sourceforge/corefonts/courie32.exe
14        mirror://sourceforge/corefonts/georgi32.exe
15        mirror://sourceforge/corefonts/impact32.exe
16        mirror://sourceforge/corefonts/webdin32.exe
17        mirror://sourceforge/corefonts/wd97vwr32.exe
18        https://master.dl.sourceforge.net/project/corefonts/OldFiles/IELPKTH.CAB
19        https://sourceforge.net/projects/mscorefonts2/files/cabs/PowerPointViewer.exe"
20
21LICENSE="MSttfEULA"
22SLOT="0"
23KEYWORDS="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"
24IUSE="X tahoma"
25
26DEPEND="app-arch/cabextract"
27
28S=${WORKDIR}
29FONT_S=${WORKDIR}
30FONT_SUFFIX="ttf"
31
32src_unpack() {
33        for exe in ${A} ; do
34                echo ">>> Unpacking ${exe} to ${WORKDIR}"
35                cabextract --lowercase "${DISTDIR}"/${exe} > /dev/null \
36                        || die "failed to unpack ${exe}"
37        done
38        if use tahoma; then
39                cabextract -F 'tahoma.ttf' "${WORKDIR}/viewer1.cab" > /dev/null \
40                        || die "failed to unpack tahoma.ttf"
41        fi
42        cabextract -F --lowercase  "${WORKDIR}/viewer1.cab" > /dev/null \
43                || die "failed to unpack extra fonts"
44        cabextract --lowercase  "${WORKDIR}/ppviewer.cab" > /dev/null \
45                || die "failed to unpack extra fonts"
46
47}
48
49src_install() {
50        font_src_install
51        # The license explicitly states that the license must be distributed with the
52        # fonts. The only way to do that for the binpkg is to include it.
53        dodoc license.txt
54}
Note: See TracBrowser for help on using the repository browser.