Contents of /trunk/core/pango/pango-1.30.0-r1.smage2
Parent Directory | Revision Log
Revision 11893 -
(show annotations)
(download)
Thu Apr 26 15:00:07 2012 UTC (12 years, 5 months ago) by niro
File size: 2104 byte(s)
Thu Apr 26 15:00:07 2012 UTC (12 years, 5 months ago) by niro
File size: 2104 byte(s)
auto added: ver bump to 1.30.0-r1
1 | # $Id$ |
2 | |
3 | PNAME="pango" |
4 | PVER="1.30.0" |
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="\$(eval echo \\\$DEPEND_\${ARCH/i*86/x86} | tr ';' '\n') |
16 | >= x11-libs/libXrender-0.9 |
17 | >= x11-libs/libX11-1.4 |
18 | >= x11-libs/libXft-2 |
19 | >= dev-libs/glib2-2.32 |
20 | >= media-libs/fontconfig-2.8 |
21 | >= media-libs/freetype-2.4 |
22 | >= x11-libs/cairo-1.12 |
23 | >= sys-libs/libstdc++-4.6" |
24 | |
25 | SDEPEND=">= dev-util/pkgconfig-0.25 |
26 | >= dev-libs/gobject-introspection-1.32" |
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.12.1-xfonts.patch |
41 | mirror://${PNAME}/pango-1.12.1-multilib.patch |
42 | ) |
43 | |
44 | UP2DATE="updatecmd_gnome ${PNAME}" |
45 | |
46 | src_prepare() |
47 | { |
48 | munpack ${SRCFILE} || die |
49 | |
50 | # some enhancements from Redhat |
51 | mpatch pango-1.12.1-xfonts.patch || die |
52 | |
53 | # multilib fixes |
54 | mpatch pango-1.12.1-multilib.patch || die |
55 | } |
56 | |
57 | src_compile() |
58 | { |
59 | local myconf |
60 | [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix=-$(mabi) |
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 | } |