Magellan Linux

Contents of /trunk/extras/font-dejavu/font-dejavu-2.31-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5755 - (show annotations) (download)
Mon Aug 9 10:13:12 2010 UTC (13 years, 9 months ago) by niro
File size: 1493 byte(s)
-fixed missing includes
1 # $Id$
2
3 PNAME="font-dejavu"
4 PVER="2.31"
5 PBUILD="r1"
6
7 PCATEGORIE="media-fonts"
8 STATE="unstable"
9
10 DESCRIPTION="Adobe font family - 100dpi."
11 HOMEPAGE="http://dejavu-fonts.org/"
12
13 sminclude xorg mtools
14
15 DEPEND=">= media-libs/fontconfig-2.1"
16
17 SDEPEND=">= x11-apps/mkfontscale-1
18 >= x11-apps/mkfontdir-1"
19
20 # overrides
21 SRCFILE="dejavu-fonts-ttf-${PVER}.tar.bz2"
22 SRCDIR="${BUILDDIR}/dejavu-fonts-ttf-${PVER}"
23
24 SRC_URI=(
25 sourceforge://dejavu/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 )
28
29 UP2DATE="updatecmd_sourceforge dejavu"
30
31 # fake, compilation needed
32 src_compile() { :; }
33
34 src_install()
35 {
36 cd ${SRCDIR}
37 minstalldir /usr/share/fonts/${PNAME/#font-/} || die
38 minstallfile ttf/\*.ttf /usr/share/fonts/${PNAME/#font-/} || die
39
40 # now create Xfont files
41 echo "Creating fonts.scale & fonts.dir ..."
42 mkfontscale ${BINDIR}/usr/share/fonts/${PNAME/#font-/} || die
43 mkfontdir \
44 -e /usr/share/fonts/encodings \
45 -e /usr/share/fonts/encodings/large \
46 ${BINDIR}/usr/share/fonts/${PNAME/#font-/} || die
47
48 # install fonts.alias if exist
49 if [[ -e ${SRCDIR}/fonts.alias ]]
50 then
51 minstallfile ${SRCDIR}/fonts.alias /usr/share/fonts/${PNAME/#font-/} || die
52 fi
53
54 # install fontconfigs if any exist
55 minstalldir /etc/fonts/conf.avail || die
56 minstallfile ${SRCDIR}/fontconfig/\*.conf /etc/fonts/conf.avail || die
57
58 # now recreate fontconfig cache
59 echo "Creating fontconfig cache ..."
60 HOME="/root" fc-cache -f ${BINDIR}/usr/share/fonts/${PNAME}
61
62 minstalldocs AUTHORS BUGS LICENSE NEWS README *.txt || die
63 }