Contents of /smage/trunk/extras/pango/pango-1.28.4-r1.smage2
Parent Directory | Revision Log
Revision 1689 -
(show annotations)
(download)
Tue Apr 5 13:26:09 2011 UTC (13 years, 5 months ago) by niro
File size: 2276 byte(s)
Tue Apr 5 13:26:09 2011 UTC (13 years, 5 months ago) by niro
File size: 2276 byte(s)
-mcorify
1 | # $Id: pango-1.26.0-r1.smage2 3395 2009-10-20 21:54:40Z niro $ |
2 | |
3 | PNAME="pango" |
4 | PVER="1.28.4" |
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.26 |
21 | >= media-libs/fontconfig-2.8 |
22 | >= media-libs/freetype-2.4 |
23 | >= x11-libs/cairo-1.10" |
24 | |
25 | SDEPEND=">= dev-util/pkgconfig-0.25" |
26 | |
27 | # simul linux32 to get config things right |
28 | EMUL_LINUX_32=true |
29 | |
30 | MCORE_ONLY_KEEP="etc/pango |
31 | usr/bin/pango-querymodules |
32 | usr/$(mlibdir)/*.so |
33 | usr/$(mlibdir)/*.so.* |
34 | usr/$(mlibdir)/pango/*/modules/*.so |
35 | usr/$(mlibdir)/pango/*/modules/*.so.*" |
36 | sminclude multilib mtools mcore-split |
37 | |
38 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
39 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
40 | |
41 | SRC_URI=( |
42 | gnome://${PNAME}/${PVER%.*}/${SRCFILE} |
43 | mirror://${PNAME}/${SRCFILE} |
44 | mirror://${PNAME}/pango-1.12.1-xfonts.patch |
45 | mirror://${PNAME}/pango-1.12.1-multilib.patch |
46 | ) |
47 | |
48 | UP2DATE="updatecmd_gnome ${PNAME}" |
49 | |
50 | src_prepare() |
51 | { |
52 | munpack ${SRCFILE} || die |
53 | |
54 | # some enhancements from Redhat |
55 | mpatch pango-1.12.1-xfonts.patch || die |
56 | |
57 | # multilib fixes |
58 | mpatch pango-1.12.1-multilib.patch || die |
59 | } |
60 | |
61 | src_compile() |
62 | { |
63 | local myconf |
64 | [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix=-$(mabi) |
65 | |
66 | mconfigure --disable-static --disable-gtk-doc ${myconf} || die |
67 | mmake || die |
68 | } |
69 | |
70 | src_install() |
71 | { |
72 | minstall_destdir || die |
73 | |
74 | # we regenerate this in the mage-file |
75 | [ -e ${BINDIR}/etc/pango/pango.modules ] && rm ${BINDIR}/etc/pango/pango.modules |
76 | |
77 | if [[ ${ARCH} = x86_64 ]] |
78 | then |
79 | mlink multiarch-wrapper /usr/bin/pango-querymodules || die |
80 | mlink multiarch-wrapper /usr/bin/pango-view || die |
81 | fi |
82 | } |
83 | |
84 | postinstall() |
85 | { |
86 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
87 | then |
88 | echo "Generating modules listing ..." |
89 | local confdir |
90 | if [[ ${ARCH} = x86_64 ]] |
91 | then |
92 | # generate pango-modules for i686 |
93 | confdir=/etc/pango/i686-pc-linux-gnu |
94 | install -d ${confdir} |
95 | pango-querymodules-m32 > ${confdir}/pango.modules |
96 | fi |
97 | confdir=/etc/pango/${CHOST} |
98 | install -d ${confdir} |
99 | pango-querymodules > ${confdir}/pango.modules |
100 | fi |
101 | } |