Contents of /trunk/extras/pango/pango-1.20.1-r2.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1948 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 1948 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/pango/pango-1.20.1-r2.smage2,v 1.1 2008/05/02 10:52:55 niro Exp $ |
2 | |
3 | PNAME="pango" |
4 | PVER="1.20.1" |
5 | PBUILD="r2" |
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.16 |
17 | >= media-libs/fontconfig-2 |
18 | >= media-libs/freetype-2 |
19 | >= x11-libs/cairo-1.4" |
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 | ) |
37 | |
38 | src_prepare() |
39 | { |
40 | munpack ${SRCFILE} || die |
41 | |
42 | # some enhancements from Redhat |
43 | mpatch pango-1.12.1-xfonts.patch || die |
44 | |
45 | # multilib fixes |
46 | mpatch pango-1.12.1-multilib.patch || die |
47 | } |
48 | |
49 | src_compile() |
50 | { |
51 | local myconf |
52 | [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix='-${abi}' |
53 | |
54 | mconfigure --disable-static --disable-gtk-doc ${myconf} || die |
55 | mmake || die |
56 | } |
57 | |
58 | src_install() |
59 | { |
60 | minstall_destdir || die |
61 | |
62 | # we regenerate this in the mage-file |
63 | [ -e ${BINDIR}/etc/pango/pango.modules ] && rm ${BINDIR}/etc/pango/pango.modules |
64 | |
65 | if [[ ${ARCH} = x86_64 ]] |
66 | then |
67 | mlink pango-querymodules-m64 /usr/bin/pango-querymodules || die |
68 | mlink pango-view-m64 /usr/bin/pango-view || die |
69 | fi |
70 | } |
71 | |
72 | postinstall() |
73 | { |
74 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
75 | then |
76 | echo "Generating modules listing ..." |
77 | local confdir |
78 | if [[ ${ARCH} = x86_64 ]] |
79 | then |
80 | # generate pango-modules for i686 |
81 | confdir=/etc/pango/i686-pc-linux-gnu |
82 | install -d ${confdir} |
83 | pango-querymodules-m32 > ${confdir}/pango.modules |
84 | fi |
85 | confdir=/etc/pango/${CHOST} |
86 | install -d ${confdir} |
87 | pango-querymodules > ${confdir}/pango.modules |
88 | fi |
89 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |