Annotation of /trunk/core/pango/pango-1.24.2-r1.smage2
Parent Directory | Revision Log
Revision 1755 -
(hide annotations)
(download)
Mon May 25 18:02:29 2009 UTC (15 years ago) by niro
File size: 2123 byte(s)
Mon May 25 18:02:29 2009 UTC (15 years ago) by niro
File size: 2123 byte(s)
auto added: ver bump to 1.24.2-r1
1 | niro | 1753 | # $Id$ |
2 | |||
3 | PNAME="pango" | ||
4 | PVER="1.24.2" | ||
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=">= x11-libs/libXrender-0.9 | ||
14 | >= x11-libs/libX11-1 | ||
15 | >= x11-libs/libXft-2 | ||
16 | >= dev-libs/glib2-2.20 | ||
17 | >= media-libs/fontconfig-2 | ||
18 | >= media-libs/freetype-2 | ||
19 | >= x11-libs/cairo-1.8" | ||
20 | |||
21 | SDEPEND=">= dev-util/pkgconfig-0.23" | ||
22 | |||
23 | # simul linux32 to get config things right | ||
24 | EMUL_LINUX_32=true | ||
25 | |||
26 | sminclude multilib mtools | ||
27 | |||
28 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
29 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
30 | |||
31 | SRC_URI=( | ||
32 | gnome://${PNAME}/${PVER%.*}/${SRCFILE} | ||
33 | mirror://${PNAME}/${SRCFILE} | ||
34 | mirror://${PNAME}/pango-1.12.1-xfonts.patch | ||
35 | mirror://${PNAME}/pango-1.12.1-multilib.patch | ||
36 | niro | 1755 | mirror://${PNAME}/pango-1.24.1-no-program-suffix-in-man.patch |
37 | niro | 1753 | ) |
38 | |||
39 | UP2DATE="updatecmd_gnome ${PNAME}" | ||
40 | |||
41 | src_prepare() | ||
42 | { | ||
43 | munpack ${SRCFILE} || die | ||
44 | |||
45 | # some enhancements from Redhat | ||
46 | mpatch pango-1.12.1-xfonts.patch || die | ||
47 | |||
48 | # multilib fixes | ||
49 | mpatch pango-1.12.1-multilib.patch || die | ||
50 | |||
51 | # programm-suffix is broken - appends the suffix to mans, | ||
52 | # but later on it is ignored and builts break | ||
53 | niro | 1755 | mpatch pango-1.24.1-no-program-suffix-in-man.patch || die |
54 | niro | 1753 | } |
55 | |||
56 | src_compile() | ||
57 | { | ||
58 | local myconf | ||
59 | [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix='-${abi}' | ||
60 | |||
61 | mconfigure --disable-static --disable-gtk-doc ${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 pango-querymodules-m64 /usr/bin/pango-querymodules || die | ||
75 | mlink pango-view-m64 /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 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |