Contents of /smage/trunk/core/pango/pango-1.36.8-r1.smage2
Parent Directory | Revision Log
Revision 6164 -
(show annotations)
(download)
Tue Mar 24 14:57:04 2015 UTC (9 years, 3 months ago) by niro
File size: 2534 byte(s)
Tue Mar 24 14:57:04 2015 UTC (9 years, 3 months ago) by niro
File size: 2534 byte(s)
auto added: ver bump to 1.36.8-r1
1 | # $Id$ |
2 | |
3 | PNAME="pango" |
4 | PVER="1.36.8" |
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="$(marchdepend) |
16 | >= x11-libs/libXrender-0.9 |
17 | >= x11-libs/libX11-1.6 |
18 | >= x11-libs/libXft-2 |
19 | >= dev-libs/glib2-2.42 |
20 | >= media-libs/fontconfig-2.11 |
21 | >= media-libs/freetype-2.5 |
22 | >= media-libs/harfbuzz-0.9 |
23 | >= x11-libs/cairo-1.14 |
24 | >= sys-libs/libstdc++-4.8" |
25 | |
26 | SDEPEND=">= dev-util/pkgconfig-0.25 |
27 | >= x11-libs/libXrender-dev-0.9 |
28 | >= x11-libs/libX11-dev-1.6 |
29 | >= x11-libs/libXft-dev-2 |
30 | >= dev-libs/glib2-dev-2.42 |
31 | >= media-libs/fontconfig-dev-2.11 |
32 | >= media-libs/freetype-dev-2.5 |
33 | >= media-libs/harfbuzz-dev-0.9 |
34 | >= x11-libs/cairo-dev-1.14 |
35 | >= sys-libs/libstdc++-dev-4.8" |
36 | |
37 | # simul linux32 to get config things right |
38 | EMUL_LINUX_32=true |
39 | |
40 | ALX_PKG_KEEP="etc/pango |
41 | usr/bin/pango-querymodules |
42 | usr/$(mlibdir)/*.so.* |
43 | usr/$(mlibdir)/pango/1.6.0/modules/pango-basic-fc.so |
44 | usr/$(mlibdir)/pango/1.6.0/modules/pango-basic-x.so" |
45 | sminclude multilib mtools alx-split |
46 | msetfeature "!check" |
47 | |
48 | SRCFILE="${PNAME}-${PVER}.tar.xz" |
49 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
50 | |
51 | SRC_URI=( |
52 | gnome://${PNAME}/${PVER%.*}/${SRCFILE} |
53 | mirror://${PNAME}/${SRCFILE} |
54 | mirror://${PNAME}/pango-1.32.1-multilib.patch |
55 | ) |
56 | |
57 | UP2DATE="updatecmd_gnome ${PNAME}" |
58 | |
59 | src_prepare() |
60 | { |
61 | munpack ${SRCFILE} || die |
62 | |
63 | # multilib fixes |
64 | mpatch pango-1.32.1-multilib.patch || die |
65 | } |
66 | |
67 | src_compile() |
68 | { |
69 | local myconf |
70 | [[ ${ARCH} = x86_64 ]] && myconf+=" --program-suffix=-$(mabi)" |
71 | |
72 | # build basic-fc as included module |
73 | myconf+=" --with-included-modules=basic-fc" |
74 | |
75 | mconfigure --disable-gtk-doc --disable-introspection ${myconf} || die |
76 | mmake || die |
77 | } |
78 | |
79 | src_install() |
80 | { |
81 | minstall_destdir || die |
82 | |
83 | # we regenerate this in the mage-file |
84 | [ -e ${BINDIR}/etc/pango/pango.modules ] && rm ${BINDIR}/etc/pango/pango.modules |
85 | |
86 | if [[ ${ARCH} = x86_64 ]] |
87 | then |
88 | mlink multiarch-wrapper /usr/bin/pango-querymodules || die |
89 | mlink multiarch-wrapper /usr/bin/pango-view || die |
90 | fi |
91 | } |
92 | |
93 | preinstall() |
94 | { |
95 | add_conf_prot_mask /etc/pango |
96 | } |
97 | |
98 | postinstall() |
99 | { |
100 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
101 | then |
102 | echo "Generating modules listing ..." |
103 | local confdir |
104 | if [[ ${ARCH} = x86_64 ]] |
105 | then |
106 | # generate pango-modules for i686 |
107 | confdir=/etc/pango/i686-pc-linux-gnu |
108 | install -d ${confdir} |
109 | pango-querymodules-m32 > ${confdir}/pango.modules |
110 | fi |
111 | confdir=/etc/pango/${CHOST} |
112 | install -d ${confdir} |
113 | pango-querymodules > ${confdir}/pango.modules |
114 | fi |
115 | } |