Magellan Linux

Contents of /trunk/extras/kdegames4/kdegames4-4.4.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5175 - (show annotations) (download)
Mon Apr 5 18:55:39 2010 UTC (14 years, 7 months ago) by niro
File size: 4598 byte(s)
auto added: ver bump to 4.4.2-r1
1 # $Id$
2
3 PNAME="kdegames4"
4 PVER="4.4.2"
5 PBUILD="r1"
6
7 STATE="unstable"
8 # DESCRIPTION="The KDE games."
9
10 SDEPEND="== kde-base/kdebase4-runtime-${PVER}
11 >= dev-games/ggz-client-libs-0.0.14
12 >= app-crypt/qca-2"
13
14 SPLIT_PACKAGES="${PNAME}-libkdegames
15 ${PNAME}-libkmahjongg
16 ${PNAME}-bomber
17 ${PNAME}-bovo
18 ${PNAME}-kapman
19 ${PNAME}-katomic
20 ${PNAME}-kbattleship
21 ${PNAME}-kblackbox
22 ${PNAME}-kblocks
23 ${PNAME}-kbounce
24 ${PNAME}-kbreakout
25 ${PNAME}-kdiamond
26 ${PNAME}-kfourinline
27 ${PNAME}-kgoldrunner
28 ${PNAME}-killbots
29 ${PNAME}-kiriki
30 ${PNAME}-kjumpingcube
31 ${PNAME}-klines
32 ${PNAME}-kmahjongg
33 ${PNAME}-kmines
34 ${PNAME}-knetwalk
35 ${PNAME}-kolf
36 ${PNAME}-kollision
37 ${PNAME}-konquest
38 ${PNAME}-kpat
39 ${PNAME}-kreversi
40 ${PNAME}-ksame
41 ${PNAME}-kshisen
42 ${PNAME}-ksirk
43 ${PNAME}-kspaceduel
44 ${PNAME}-ksquares
45 ${PNAME}-ksudoku
46 ${PNAME}-ktron
47 ${PNAME}-ktuberling
48 ${PNAME}-kubrick
49 ${PNAME}-lskat
50 ${PNAME}-granatier
51 ${PNAME}-kigo
52 ${PNAME}-palapeli"
53
54 # ggz include overides PCATEGORIE, SRC_URI etc if not defined
55 # do not remove the kde4 include before!
56 sminclude kde4 ggz kde4-split
57
58 UP2DATE="updatecmd http://www.kde.org/download/ | grep ${PNAME/4/} | sed -n '1 p' | sed 's/.*-\([^ ]*\) .*/\1/'"
59
60 # being a little hackish here:
61 for subpackage in ${SPLIT_PACKAGES}
62 do
63 # exclude meta packages
64 [[ ${subpackage} = ${PNAME}-meta ]] && continue
65
66 eval "split_info_${subpackage}()
67 {
68 DESCRIPTION=\"KDE4 game '${subpackage#*-}'\"
69 DEPEND=\">= kde-base/kdebase4-runtime-${PVER}
70 >= kde-base/kdegames4-libkdegames-${PVER}\"
71 }"
72 done
73
74 split_info_kdegames4-libkdegames()
75 {
76 DESCRIPTION="Base library common to many KDE4 games."
77 DEPEND="== kde-base/kdelibs4-${PVER}"
78 }
79
80 split_info_kdegames4-libkmahjongg()
81 {
82 DESCRIPTION="LibKMahjongg library for KDE4."
83 DEPEND="== kde-base/kdelibs4-${PVER}"
84 }
85
86 split_info_kdegames4-kbattleship()
87 {
88 DESCRIPTION="KDE4 game 'kbattleship'"
89 DEPEND=">= kde-base/kdebase4-runtime-${PVER}
90 >= kde-base/kdegames4-libkdegames-${PVER}
91 >= dev-games/ggz-client-libs-0.0.14"
92
93 # run ggz modules in postinstall too
94 postinstall() { kde4_buildsycoca; ggz_update_modules; }
95 }
96
97 split_info_kdegames4-kmahjongg()
98 {
99 DESCRIPTION="KDE4 game 'kmahjongg'"
100 DEPEND=">= kde-base/kdebase4-runtime-${PVER}
101 >= kde-base/kdegames4-libkdegames-${PVER}
102 >= kde-base/kdegames4-libkmahjongg-${PVER}"
103 }
104
105 split_info_kdegames4-kreversi()
106 {
107 DESCRIPTION="KDE4 game 'kreversi'"
108 DEPEND=">= kde-base/kdebase4-runtime-${PVER}
109 >= kde-base/kdegames4-libkdegames-${PVER}
110 >= dev-games/ggz-client-libs-0.0.14"
111
112 # run ggz modules in postinstall too
113 postinstall() { kde4_buildsycoca; ggz_update_modules; }
114 }
115
116 split_info_kdegames4-kshisen()
117 {
118 DESCRIPTION="KDE4 game 'kshisen'"
119 DEPEND=">= kde-base/kdebase4-runtime-${PVER}
120 >= kde-base/kdegames4-libkdegames-${PVER}
121 >= kde-base/kdegames4-libkmahjongg-${PVER}"
122 }
123
124 split_info_kdegames4-ksirk()
125 {
126 DESCRIPTION="KDE4 game 'kshisen'"
127 DEPEND=">= kde-base/kdebase4-runtime-${PVER}
128 >= kde-base/kdegames4-libkdegames-${PVER}
129 >= app-crypt/qca-2"
130 }
131
132 split_info_kdegames4-ksquares()
133 {
134 DESCRIPTION="KDE4 game 'kreversi'"
135 DEPEND=">= kde-base/kdebase4-runtime-${PVER}
136 >= kde-base/kdegames4-libkdegames-${PVER}
137 >= dev-games/ggz-client-libs-0.0.14"
138
139 # run ggz modules in postinstall too
140 postinstall() { kde4_buildsycoca; ggz_update_modules; }
141 }
142
143 src_compile()
144 {
145 cd ${SRCDIR}
146
147 kde4_configure $(cmake_with QCA2) || die
148 mmake || die
149 }
150
151 src_install_kdegames4-libkdegames()
152 {
153 kde4-split_src_install_wrapper libkdegames || die
154
155 # install missing cmake modules
156 cd ${SRCDIR}
157 minstalldir ${KDEDIR}/share/apps/cmake/modules || die
158 local i
159 for i in cmake/modules/*.cmake
160 do
161 minstallfile ${i} ${KDEDIR}/share/apps/cmake/modules || die
162 done
163 }
164
165 src_install_kdegames4-kbattleship()
166 {
167 local kdemodule="kbattleship"
168 kde4-split_src_install_wrapper ${kdemodule} || die
169
170 # install module description for ggz
171 cd ${SRCDIR}
172 minstalldir /usr/share/ggz/modules || die
173 minstallfile ${kdemodule}/src/module.dsc /usr/share/ggz/modules/${kdemodule}.dsc || die
174 }
175
176 src_install_kdegames4-kreversi()
177 {
178 local kdemodule="kreversi"
179 kde4-split_src_install_wrapper ${kdemodule} || die
180
181 # install module description for ggz
182 cd ${SRCDIR}
183 minstalldir /usr/share/ggz/modules || die
184 minstallfile ${kdemodule}/module.dsc /usr/share/ggz/modules/${kdemodule}.dsc || die
185 }
186
187 src_install_kdegames4-ksquares()
188 {
189 local kdemodule="ksquares"
190 kde4-split_src_install_wrapper ${kdemodule} || die
191
192 # install module description for ggz
193 cd ${SRCDIR}
194 minstalldir /usr/share/ggz/modules || die
195 minstallfile ${kdemodule}/src/module.dsc /usr/share/ggz/modules/${kdemodule}.dsc || die
196 }

Properties

Name Value
svn:keywords Id