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