Contents of /branches/magellan-next/extras/kdelibs4/kdelibs4-4.5.1-r1.smage2
Parent Directory | Revision Log
Revision 6924 -
(show annotations)
(download)
Fri Sep 24 15:41:57 2010 UTC (14 years, 1 month ago) by niro
File size: 3350 byte(s)
Fri Sep 24 15:41:57 2010 UTC (14 years, 1 month ago) by niro
File size: 3350 byte(s)
-added missing dependencies
1 | # $Id: kdelibs4-4.4.2-r2.smage2 5468 2010-06-28 11:59:34Z niro $ |
2 | |
3 | PNAME="kdelibs4" |
4 | PVER="4.5.1" |
5 | PBUILD="r1" |
6 | |
7 | STATE="unstable" |
8 | |
9 | DESCRIPTION="KDE4 core libraries." |
10 | |
11 | DEPEND=">= x11-libs/libICE-1 |
12 | >= x11-libs/libSM-1 |
13 | >= x11-libs/libX11-1 |
14 | >= x11-libs/libXau-1 |
15 | >= x11-libs/libXcursor-1 |
16 | >= x11-libs/libXdmcp-1 |
17 | >= x11-libs/libXext-1 |
18 | >= x11-libs/libXfixes-4 |
19 | >= x11-libs/libXft-2 |
20 | >= x11-libs/libXpm-3 |
21 | >= x11-libs/libXrender-0.9 |
22 | >= x11-libs/libXtst-1 |
23 | >= x11-libs/libXScrnSaver-1.2 |
24 | >= virtual/opengl |
25 | >= x11-apps/rgb-1 |
26 | >= x11-apps/iceauth-1 |
27 | >= app-arch/bzip2-1.0.6 |
28 | >= app-arch/xz-utils-4.999 |
29 | >= dev-libs/libxslt-1.1.26 |
30 | >= dev-libs/libxml2-2.7 |
31 | >= dev-libs/libpcre-8.10 |
32 | >= dev-libs/openssl-1.0.0 |
33 | >= media-libs/fontconfig-2 |
34 | >= media-libs/freetype-2 |
35 | >= media-libs/alsa-lib-1.0.23 |
36 | >= media-libs/libtiff-3.9 |
37 | >= app-admin/gamin-0.1.10 |
38 | >= app-text/ghostscript-gpl-9 |
39 | >= media-libs/giflib-4 |
40 | >= media-libs/libjpeg-8 |
41 | >= media-libs/libpng-1.4 |
42 | >= media-libs/libart_lgpl-2.3.21 |
43 | >= media-libs/libjasper-1.900 |
44 | >= media-libs/openexr-1.7 |
45 | >= net-dns/libidn-1.19 |
46 | >= app-text/enchant-1.6.0 |
47 | >= net-dns/avahi-qt4-0.6.27 |
48 | >= sys-apps/dbus-1.3 |
49 | >= x11-misc/shared-mime-info-0.71 |
50 | >= app-misc/strigi-0.7 |
51 | >= dev-libs/soprano-2.5 |
52 | >= dev-libs/shared-desktop-ontologies-0.5 |
53 | >= app-crypt/qca-2 |
54 | >= dev-libs/polkit-qt-0.96 |
55 | >= dev-libs/libattica-0.1.4 |
56 | >= dev-libs/libdbusmenu-qt-0.6.4 |
57 | >= virtual/phonon |
58 | >= kde-base/kde4-env-${PVER}" |
59 | |
60 | SDEPEND=">= sys-dev/gettext-0.18 |
61 | >= app-text/docbook-xml-dtd-9 |
62 | >= app-text/docbook-xsl-stylesheets-1.76" |
63 | |
64 | sminclude kde4 |
65 | |
66 | SRC_URI=( |
67 | ${SRC_URI[*]} |
68 | mirror://${PNAME}/${PNAME}-${PVER}-kde-applications-menu.patch |
69 | mirror://${PNAME}/${PNAME}-${PVER}-mage-syntax.patch |
70 | ) |
71 | |
72 | UP2DATE="updatecmd http://www.kde.org/download/ | grep ${PNAME/4/} | sed -n '1 p' | sed 's/.*-\([^ ]*\) .*/\1/'" |
73 | |
74 | src_prepare() |
75 | { |
76 | munpack ${SRCFILE} || die |
77 | cd ${SRCDIR} |
78 | |
79 | # avoid conflicts with gnome-menu and others |
80 | mpatch ${PNAME}-${PVER}-kde-applications-menu.patch || die |
81 | |
82 | # add syntax-highlighting for smage/mage |
83 | mpatch ${PNAME}-${PVER}-mage-syntax.patch || die |
84 | } |
85 | |
86 | src_compile() |
87 | { |
88 | cd ${SRCDIR} |
89 | |
90 | # only use enchant; it wraps all other spellchecking-engines |
91 | local myconf="$(cmake_with ENCHANT) $(cmake_without ASPELL) $(cmake_without HSPELL)" |
92 | |
93 | kde4_configure \ |
94 | -DKDE_DISTRIBUTION_TEXT=Magellan \ |
95 | -DKAUTH_BACKEND=PolkitQt-1 \ |
96 | $(cmake_with BZip2) \ |
97 | $(cmake_with FAM) \ |
98 | $(cmake_with OpenGL) \ |
99 | $(cmake_with OpenSSL) \ |
100 | $(cmake_with Avahi) \ |
101 | $(cmake_with Soprano) \ |
102 | $(cmake_with Jasper) \ |
103 | $(cmake_with OpenEXR) \ |
104 | $(cmake_with LibLZMA) \ |
105 | $(cmake_without DNSSD) \ |
106 | $(cmake_without GSSAPI) \ |
107 | ${myconf} \ |
108 | || die |
109 | |
110 | mmake || die |
111 | } |
112 | |
113 | preinstall() |
114 | { |
115 | if [[ ! -z $(magequery -n kdelibs4-experimental) ]] |
116 | then |
117 | echo -e ${COLRED} |
118 | echo -e "Error: kde-base/kdelibs4-experimental is installed!!" |
119 | echo -e "kdelibs4-experimental colides with the new kde-4.4." |
120 | echo -e "Please uninstall kde-base/kdelibs4-experimental first!" |
121 | echo -e ${COLDEFAULT} |
122 | die "kde-base/kdelibs4-experimental found!" |
123 | fi |
124 | } |
125 | |
126 | postinstall() |
127 | { |
128 | kde4_postinstall |
129 | |
130 | echo |
131 | echo "To have full zeroconf support with kde," |
132 | echo "make sure the avahi daemons are running." |
133 | echo "Also multicast dns host lookups should be" |
134 | echo "enabled in '/etc/nsswitch.conf'." |
135 | echo "e.g: ipv6 'hosts: files mdns dns'" |
136 | echo "or for ipv4 'hosts: files mdns4 dns'" |
137 | echo |
138 | } |