source: media-fonts/corefonts/corefonts-1-r6.ebuild @ 29c9072

Revision 29c9072, 2.1 KB checked in by Mario Fetka <mario.fetka@…>, 7 years ago (diff)

correct extract of cab

Package-Manager: portage-2.2.0_alpha188
RepoMan?-Options: --force

  • Property mode set to 100644
Line 
1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/media-fonts/corefonts/corefonts-1-r6.ebuild,v 1.2 2012/05/09 16:50:42 aballier Exp $
4
5inherit font
6
7DESCRIPTION="Microsoft's TrueType core fonts"
8HOMEPAGE="http://corefonts.sourceforge.net/"
9SRC_URI="mirror://sourceforge/corefonts/andale32.exe
10        mirror://sourceforge/corefonts/arial32.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        http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/IELPKTH.CAB
16        mirror://sourceforge/corefonts/impact32.exe
17        mirror://sourceforge/corefonts/times32.exe
18        mirror://sourceforge/corefonts/trebuc32.exe
19        mirror://sourceforge/corefonts/verdan32.exe
20        mirror://sourceforge/corefonts/wd97vwr32.exe
21        mirror://sourceforge/corefonts/webdin32.exe
22        http://download.microsoft.com/download/9/F/7/9F742C8F-8C70-4498-B4D1-539BE36A1077/PowerPointViewer.exe
23        mirror://gentoo/EUupdate.EXE"
24
25LICENSE="MSttfEULA"
26SLOT="0"
27KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
28IUSE="X"
29
30DEPEND="app-arch/cabextract"
31RDEPEND=""
32
33S=${WORKDIR}
34FONT_S=${WORKDIR}
35FONT_SUFFIX="ttf"
36
37src_unpack() {
38        for exe in ${A} ; do
39                echo ">>> Unpacking ${exe} to ${WORKDIR}"
40                cabextract --lowercase "${DISTDIR}"/${exe} > /dev/null \
41                        || die "failed to unpack ${exe}"
42        done
43        cabextract --lowercase ${S}/viewer1.cab > /dev/null
44#               || die "failed to unpack viewer1.cab"
45        cabextract --lowercase ${S}/ppviewer.cab > /dev/null
46#               || die "failed to unpack ppviewer.cab"
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        # We just have to copy it from the portdir because it's not actually inside
54        # upstream's own files...
55        dodoc "${PORTDIR}"/licenses/"${LICENSE}"
56}
Note: See TracBrowser for help on using the repository browser.