Magellan Linux

Contents of /smage/trunk/extras/pango/pango-1.28.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1688 - (show annotations) (download)
Tue Apr 5 13:20:57 2011 UTC (13 years, 1 month ago) by niro
File size: 2088 byte(s)
auto added: ver bump to 1.28.4-r1
1 # $Id: pango-1.26.0-r1.smage2 3395 2009-10-20 21:54:40Z niro $
2
3 PNAME="pango"
4 PVER="1.28.4"
5 PBUILD="r1"
6
7 PCATEGORIE="x11-libs"
8 STATE="unstable"
9
10 DESCRIPTION="Library for layout and rendering of internationalized text."
11 HOMEPAGE="http://www.pango.org/"
12
13 DEPEND_x86_64=">= sys-apps/multiarch-wrapper-1"
14 SPECIAL_VARS="DEPEND_x86_64"
15
16 DEPEND="\$(eval echo \\\$DEPEND_\${ARCH/i*86/x86} | tr ';' '\n')
17 >= x11-libs/libXrender-0.9
18 >= x11-libs/libX11-1
19 >= x11-libs/libXft-2
20 >= dev-libs/glib2-2.26
21 >= media-libs/fontconfig-2.8
22 >= media-libs/freetype-2.4
23 >= x11-libs/cairo-1.10"
24
25 SDEPEND=">= dev-util/pkgconfig-0.25"
26
27 # simul linux32 to get config things right
28 EMUL_LINUX_32=true
29
30 sminclude multilib mtools
31
32 SRCFILE="${PNAME}-${PVER}.tar.bz2"
33 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
34
35 SRC_URI=(
36 gnome://${PNAME}/${PVER%.*}/${SRCFILE}
37 mirror://${PNAME}/${SRCFILE}
38 mirror://${PNAME}/pango-1.12.1-xfonts.patch
39 mirror://${PNAME}/pango-1.12.1-multilib.patch
40 )
41
42 UP2DATE="updatecmd_gnome ${PNAME}"
43
44 src_prepare()
45 {
46 munpack ${SRCFILE} || die
47
48 # some enhancements from Redhat
49 mpatch pango-1.12.1-xfonts.patch || die
50
51 # multilib fixes
52 mpatch pango-1.12.1-multilib.patch || die
53 }
54
55 src_compile()
56 {
57 local myconf
58 [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix=-$(mabi)
59
60 mconfigure --disable-static --disable-gtk-doc ${myconf} || die
61 mmake || die
62 }
63
64 src_install()
65 {
66 minstall_destdir || die
67
68 # we regenerate this in the mage-file
69 [ -e ${BINDIR}/etc/pango/pango.modules ] && rm ${BINDIR}/etc/pango/pango.modules
70
71 if [[ ${ARCH} = x86_64 ]]
72 then
73 mlink multiarch-wrapper /usr/bin/pango-querymodules || die
74 mlink multiarch-wrapper /usr/bin/pango-view || die
75 fi
76 }
77
78 postinstall()
79 {
80 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
81 then
82 echo "Generating modules listing ..."
83 local confdir
84 if [[ ${ARCH} = x86_64 ]]
85 then
86 # generate pango-modules for i686
87 confdir=/etc/pango/i686-pc-linux-gnu
88 install -d ${confdir}
89 pango-querymodules-m32 > ${confdir}/pango.modules
90 fi
91 confdir=/etc/pango/${CHOST}
92 install -d ${confdir}
93 pango-querymodules > ${confdir}/pango.modules
94 fi
95 }