Contents of /trunk/core/pango/pango-1.34.1-r1.smage2
Parent Directory | Revision Log
Revision 17131 -
(show annotations)
(download)
Mon Jun 3 08:27:24 2013 UTC (11 years, 3 months ago) by niro
File size: 2074 byte(s)
Mon Jun 3 08:27:24 2013 UTC (11 years, 3 months ago) by niro
File size: 2074 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 | STATE="disabled" |
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="$(marchdepend) |
17 | >= x11-libs/libXrender-0.9 |
18 | >= x11-libs/libX11-1.4 |
19 | >= x11-libs/libXft-2 |
20 | >= dev-libs/glib2-2.36 |
21 | >= media-libs/fontconfig-2.8 |
22 | >= media-libs/freetype-2.4 |
23 | >= media-libs/harfbuzz-0.9 |
24 | >= x11-libs/cairo-1.12 |
25 | >= sys-libs/libstdc++-4.7" |
26 | |
27 | SDEPEND=">= dev-util/pkgconfig-0.25 |
28 | >= dev-libs/gobject-introspection-1.36" |
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 | } |