Magellan Linux

Contents of /trunk/extras/pango/pango-1.36.8-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26165 - (show annotations) (download)
Wed Jun 17 13:54:41 2015 UTC (8 years, 11 months ago) by niro
File size: 2091 byte(s)
-rebuild
1 # $Id$
2
3 PNAME="pango"
4 PVER="1.36.8"
5 PBUILD="r3"
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.44
20 >= media-libs/fontconfig-2.11
21 >= media-libs/freetype-2.6
22 >= media-libs/harfbuzz-libs-0.9
23 >= x11-libs/cairo-1.14
24 >= sys-libs/libstdc++-5.1"
25
26 SDEPEND=">= dev-util/pkgconfig-0.25
27 >= media-libs/harfbuzz-0.9
28 >= dev-libs/gobject-introspection-1.44"
29
30 # simul linux32 to get config things right
31 EMUL_LINUX_32=true
32
33 sminclude multilib mtools
34 msetfeature "!check"
35
36 SRCFILE="${PNAME}-${PVER}.tar.xz"
37 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
38
39 SRC_URI=(
40 gnome://${PNAME}/${PVER%.*}/${SRCFILE}
41 mirror://${PNAME}/${SRCFILE}
42 mirror://${PNAME}/pango-1.32.1-multilib.patch
43 )
44
45 UP2DATE="updatecmd_gnome ${PNAME}"
46
47 src_prepare()
48 {
49 munpack ${SRCFILE} || die
50
51 # multilib fixes
52 mpatch pango-1.32.1-multilib.patch || die
53 }
54
55 src_compile()
56 {
57 local myconf
58 [[ ${ARCH} = x86_64 ]] && myconf+=" --program-suffix=-$(mabi)"
59
60 # build basic-fc as included module
61 myconf+=" --with-included-modules=basic-fc"
62
63 mconfigure --disable-gtk-doc --enable-introspection ${myconf} || die
64 mmake || die
65 }
66
67 src_install()
68 {
69 minstall_destdir || die
70
71 # we regenerate this in the mage-file
72 [ -e ${BINDIR}/etc/pango/pango.modules ] && rm ${BINDIR}/etc/pango/pango.modules
73
74 if [[ ${ARCH} = x86_64 ]]
75 then
76 mlink multiarch-wrapper /usr/bin/pango-querymodules || die
77 mlink multiarch-wrapper /usr/bin/pango-view || die
78 fi
79 }
80
81 postinstall()
82 {
83 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
84 then
85 echo "Generating modules listing ..."
86 local confdir
87 if [[ ${ARCH} = x86_64 ]]
88 then
89 # generate pango-modules for i686
90 confdir=/etc/pango/i686-pc-linux-gnu
91 install -d ${confdir}
92 pango-querymodules-m32 > ${confdir}/pango.modules
93 fi
94 confdir=/etc/pango/${CHOST}
95 install -d ${confdir}
96 pango-querymodules > ${confdir}/pango.modules
97 fi
98 }