Magellan Linux

Annotation of /branches/R11-stable/extras/pango/pango-1.36.5-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 21464 - (hide annotations) (download)
Thu Jun 26 11:27:21 2014 UTC (9 years, 10 months ago) by niro
Original Path: trunk/extras/pango/pango-1.36.5-r1.smage2
File size: 2058 byte(s)
auto added: ver bump to 1.36.5-r1
1 niro 21464 # $Id$
2    
3     PNAME="pango"
4     PVER="1.36.5"
5     PBUILD="r1"
6    
7     PCAT="x11-libs"
8    
9     DESCRIPTION="Library for layout and rendering of internationalized text."
10     HOMEPAGE="http://www.pango.org/"
11    
12     DEPEND_x86_64=">= sys-apps/multiarch-wrapper-1"
13     SPECIAL_VARS="DEPEND_x86_64"
14    
15     DEPEND="$(marchdepend)
16     >= x11-libs/libXrender-0.9
17     >= x11-libs/libX11-1.6
18     >= x11-libs/libXft-2
19     >= dev-libs/glib2-2.40
20     >= media-libs/fontconfig-2.11
21     >= media-libs/freetype-2.5
22     >= media-libs/harfbuzz-0.9
23     >= x11-libs/cairo-1.12
24     >= sys-libs/libstdc++-4.8"
25    
26     SDEPEND=">= dev-util/pkgconfig-0.25
27     >= dev-libs/gobject-introspection-1.40"
28    
29     # simul linux32 to get config things right
30     EMUL_LINUX_32=true
31    
32     sminclude multilib mtools
33     msetfeature "!check"
34    
35     SRCFILE="${PNAME}-${PVER}.tar.xz"
36     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
37    
38     SRC_URI=(
39     gnome://${PNAME}/${PVER%.*}/${SRCFILE}
40     mirror://${PNAME}/${SRCFILE}
41     mirror://${PNAME}/pango-1.32.1-multilib.patch
42     )
43    
44     UP2DATE="updatecmd_gnome ${PNAME}"
45    
46     src_prepare()
47     {
48     munpack ${SRCFILE} || die
49    
50     # multilib fixes
51     mpatch pango-1.32.1-multilib.patch || die
52     }
53    
54     src_compile()
55     {
56     local myconf
57     [[ ${ARCH} = x86_64 ]] && myconf+=" --program-suffix=-$(mabi)"
58    
59     # build basic-fc as included module
60     myconf+=" --with-included-modules=basic-fc"
61    
62     mconfigure --disable-gtk-doc --enable-introspection ${myconf} || die
63     mmake || die
64     }
65    
66     src_install()
67     {
68     minstall_destdir || die
69    
70     # we regenerate this in the mage-file
71     [ -e ${BINDIR}/etc/pango/pango.modules ] && rm ${BINDIR}/etc/pango/pango.modules
72    
73     if [[ ${ARCH} = x86_64 ]]
74     then
75     mlink multiarch-wrapper /usr/bin/pango-querymodules || die
76     mlink multiarch-wrapper /usr/bin/pango-view || die
77     fi
78     }
79    
80     postinstall()
81     {
82     if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
83     then
84     echo "Generating modules listing ..."
85     local confdir
86     if [[ ${ARCH} = x86_64 ]]
87     then
88     # generate pango-modules for i686
89     confdir=/etc/pango/i686-pc-linux-gnu
90     install -d ${confdir}
91     pango-querymodules-m32 > ${confdir}/pango.modules
92     fi
93     confdir=/etc/pango/${CHOST}
94     install -d ${confdir}
95     pango-querymodules > ${confdir}/pango.modules
96     fi
97     }