Magellan Linux

Contents of /smage/trunk/core/pango/pango-1.34.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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