Contents of /branches/magellan-next/core/pango/pango-1.28.1-r1.smage2
Parent Directory | Revision Log
Revision 6373 -
(show annotations)
(download)
Sun Aug 22 21:40:07 2010 UTC (14 years, 1 month ago) by niro
File size: 2145 byte(s)
Sun Aug 22 21:40:07 2010 UTC (14 years, 1 month ago) by niro
File size: 2145 byte(s)
auto added: ver bump to 1.28.1-r1
1 | # $Id: pango-1.26.0-r1.smage2 3395 2009-10-20 21:54:40Z niro $ |
2 | |
3 | PNAME="pango" |
4 | PVER="1.28.1" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="x11-libs" |
8 | STATE="unstable" |
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="\$(eval echo \\\$DEPEND_\${ARCH/i*86/x86} | tr ';' '\n') |
17 | >= x11-libs/libXrender-0.9 |
18 | >= x11-libs/libX11-1 |
19 | >= x11-libs/libXft-2 |
20 | >= dev-libs/glib2-2.24 |
21 | >= media-libs/fontconfig-2 |
22 | >= media-libs/freetype-2 |
23 | >= x11-libs/cairo-1.8" |
24 | |
25 | SDEPEND=">= dev-util/pkgconfig-0.25 |
26 | >= dev-libs/gobject-introspection-0.6" |
27 | |
28 | # simul linux32 to get config things right |
29 | EMUL_LINUX_32=true |
30 | |
31 | sminclude multilib mtools |
32 | |
33 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
34 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
35 | |
36 | SRC_URI=( |
37 | gnome://${PNAME}/${PVER%.*}/${SRCFILE} |
38 | mirror://${PNAME}/${SRCFILE} |
39 | mirror://${PNAME}/pango-1.12.1-xfonts.patch |
40 | mirror://${PNAME}/pango-1.12.1-multilib.patch |
41 | ) |
42 | |
43 | UP2DATE="updatecmd_gnome ${PNAME}" |
44 | |
45 | src_prepare() |
46 | { |
47 | munpack ${SRCFILE} || die |
48 | |
49 | # some enhancements from Redhat |
50 | mpatch pango-1.12.1-xfonts.patch || die |
51 | |
52 | # multilib fixes |
53 | mpatch pango-1.12.1-multilib.patch || die |
54 | } |
55 | |
56 | src_compile() |
57 | { |
58 | local myconf |
59 | [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix=-$(mabi) |
60 | |
61 | mconfigure --disable-static --disable-gtk-doc --enable-introspection ${myconf} || die |
62 | mmake || die |
63 | } |
64 | |
65 | src_install() |
66 | { |
67 | minstall_destdir || die |
68 | |
69 | # we regenerate this in the mage-file |
70 | [ -e ${BINDIR}/etc/pango/pango.modules ] && rm ${BINDIR}/etc/pango/pango.modules |
71 | |
72 | if [[ ${ARCH} = x86_64 ]] |
73 | then |
74 | mlink multiarch-wrapper /usr/bin/pango-querymodules || die |
75 | mlink multiarch-wrapper /usr/bin/pango-view || die |
76 | fi |
77 | } |
78 | |
79 | postinstall() |
80 | { |
81 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
82 | then |
83 | echo "Generating modules listing ..." |
84 | local confdir |
85 | if [[ ${ARCH} = x86_64 ]] |
86 | then |
87 | # generate pango-modules for i686 |
88 | confdir=/etc/pango/i686-pc-linux-gnu |
89 | install -d ${confdir} |
90 | pango-querymodules-m32 > ${confdir}/pango.modules |
91 | fi |
92 | confdir=/etc/pango/${CHOST} |
93 | install -d ${confdir} |
94 | pango-querymodules > ${confdir}/pango.modules |
95 | fi |
96 | } |