Contents of /trunk/core/pango/pango-1.32.1-r1.smage2
Parent Directory | Revision Log
Revision 13331 -
(show annotations)
(download)
Thu Oct 4 09:28:34 2012 UTC (11 years, 11 months ago) by niro
File size: 1942 byte(s)
Thu Oct 4 09:28:34 2012 UTC (11 years, 11 months ago) by niro
File size: 1942 byte(s)
-reworked multilib patch
1 | # $Id$ |
2 | |
3 | PNAME="pango" |
4 | PVER="1.32.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.4 |
18 | >= x11-libs/libXft-2 |
19 | >= dev-libs/glib2-2.34 |
20 | >= media-libs/fontconfig-2.8 |
21 | >= media-libs/freetype-2.4 |
22 | >= x11-libs/cairo-1.12 |
23 | >= sys-libs/libstdc++-4.7" |
24 | |
25 | SDEPEND=">= dev-util/pkgconfig-0.25 |
26 | >= dev-libs/gobject-introspection-1.34" |
27 | |
28 | # simul linux32 to get config things right |
29 | EMUL_LINUX_32=true |
30 | |
31 | sminclude multilib mtools |
32 | msetfeature "!check" |
33 | |
34 | SRCFILE="${PNAME}-${PVER}.tar.xz" |
35 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
36 | |
37 | SRC_URI=( |
38 | gnome://${PNAME}/${PVER%.*}/${SRCFILE} |
39 | mirror://${PNAME}/${SRCFILE} |
40 | mirror://${PNAME}/pango-1.32.1-multilib.patch |
41 | ) |
42 | |
43 | UP2DATE="updatecmd_gnome ${PNAME}" |
44 | |
45 | src_prepare() |
46 | { |
47 | munpack ${SRCFILE} || die |
48 | |
49 | # multilib fixes |
50 | mpatch pango-1.32.1-multilib.patch || die |
51 | } |
52 | |
53 | src_compile() |
54 | { |
55 | local myconf |
56 | [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix=-$(mabi) |
57 | |
58 | mconfigure --disable-gtk-doc --enable-introspection ${myconf} || die |
59 | mmake || die |
60 | } |
61 | |
62 | src_install() |
63 | { |
64 | minstall_destdir || die |
65 | |
66 | # we regenerate this in the mage-file |
67 | [ -e ${BINDIR}/etc/pango/pango.modules ] && rm ${BINDIR}/etc/pango/pango.modules |
68 | |
69 | if [[ ${ARCH} = x86_64 ]] |
70 | then |
71 | mlink multiarch-wrapper /usr/bin/pango-querymodules || die |
72 | mlink multiarch-wrapper /usr/bin/pango-view || die |
73 | fi |
74 | } |
75 | |
76 | postinstall() |
77 | { |
78 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
79 | then |
80 | echo "Generating modules listing ..." |
81 | local confdir |
82 | if [[ ${ARCH} = x86_64 ]] |
83 | then |
84 | # generate pango-modules for i686 |
85 | confdir=/etc/pango/i686-pc-linux-gnu |
86 | install -d ${confdir} |
87 | pango-querymodules-m32 > ${confdir}/pango.modules |
88 | fi |
89 | confdir=/etc/pango/${CHOST} |
90 | install -d ${confdir} |
91 | pango-querymodules > ${confdir}/pango.modules |
92 | fi |
93 | } |