1 |
mr_bones_ 07/10/26 00:12:34 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: childsplay-0.90.1.ebuild |
5 |
Log: |
6 |
version bump |
7 |
(Portage version: 2.1.3.9) |
8 |
|
9 |
Revision Changes Path |
10 |
1.12 games-kids/childsplay/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-kids/childsplay/ChangeLog?rev=1.12&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-kids/childsplay/ChangeLog?rev=1.12&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-kids/childsplay/ChangeLog?r1=1.11&r2=1.12 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/games-kids/childsplay/ChangeLog,v |
19 |
retrieving revision 1.11 |
20 |
retrieving revision 1.12 |
21 |
diff -u -r1.11 -r1.12 |
22 |
--- ChangeLog 8 Jul 2007 09:35:57 -0000 1.11 |
23 |
+++ ChangeLog 26 Oct 2007 00:12:33 -0000 1.12 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for games-kids/childsplay |
26 |
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/games-kids/childsplay/ChangeLog,v 1.11 2007/07/08 09:35:57 tupone Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/games-kids/childsplay/ChangeLog,v 1.12 2007/10/26 00:12:33 mr_bones_ Exp $ |
29 |
+ |
30 |
+*childsplay-0.90.1 (26 Oct 2007) |
31 |
+ |
32 |
+ 26 Oct 2007; Michael Sterrett <mr_bones_@g.o> |
33 |
+ +childsplay-0.90.1.ebuild: |
34 |
+ version bump |
35 |
|
36 |
08 Jul 2007; Tupone Alfredo <tupone@g.o> childsplay-0.83.1.ebuild, |
37 |
childsplay-0.85.1.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 games-kids/childsplay/childsplay-0.90.1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-kids/childsplay/childsplay-0.90.1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-kids/childsplay/childsplay-0.90.1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: childsplay-0.90.1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2007 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/games-kids/childsplay/childsplay-0.90.1.ebuild,v 1.1 2007/10/26 00:12:33 mr_bones_ Exp $ |
51 |
|
52 |
inherit eutils python games |
53 |
|
54 |
DESCRIPTION="A suite of educational games for young children" |
55 |
HOMEPAGE="http://childsplay.sourceforge.net/" |
56 |
PLUGINS_VERSION="0.90" |
57 |
PLUGINS_LFC_VERSION="0.90" |
58 |
SRC_URI="mirror://sourceforge/childsplay/${P}.tgz |
59 |
mirror://sourceforge/childsplay/${PN}_plugins-${PLUGINS_VERSION}.tgz |
60 |
mirror://sourceforge/childsplay/${PN}_plugins_lfc-${PLUGINS_LFC_VERSION}.tgz" |
61 |
|
62 |
LICENSE="GPL-3" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64 ~x86" |
65 |
IUSE="" |
66 |
|
67 |
DEPEND=">=dev-lang/python-2.1 |
68 |
>=dev-python/pygame-1.7.1 |
69 |
>=media-libs/sdl-image-1.2 |
70 |
>=media-libs/sdl-ttf-2.0 |
71 |
>=media-libs/sdl-mixer-1.2 |
72 |
media-libs/libogg" |
73 |
|
74 |
src_unpack() { |
75 |
local DIR |
76 |
|
77 |
# Copy the plugins into the main package. |
78 |
unpack ${A} |
79 |
for DIR in ${PN}_plugins-${PLUGINS_VERSION} ${PN}_plugins_lfc-${PLUGINS_LFC_VERSION}; do |
80 |
cp -r ${DIR}/Data/*.icon.png ${P}/Data/icons || die |
81 |
cp -r ${DIR}/lib/* ${P}/lib || die |
82 |
cp -r ${DIR}/assetml/* ${P}/assetml || die |
83 |
done |
84 |
cp -r ${PN}_plugins-${PLUGINS_VERSION}/Data/AlphabetSounds ${P}/Data || die |
85 |
cp ${PN}_plugins-${PLUGINS_VERSION}/add-score.py ${P} || die |
86 |
cd "${S}" |
87 |
gunzip man/childsplay.6.gz |
88 |
} |
89 |
|
90 |
src_install() { |
91 |
local fn |
92 |
|
93 |
# The following variables are based on Childsplay's INSTALL.sh |
94 |
_LOCALEDIR=/usr/share/locale |
95 |
_ASSETMLDIR=/usr/share/assetml |
96 |
_SCOREDIR=${GAMES_STATEDIR} |
97 |
_SCOREFILE=${_SCOREDIR}/childsplay.score |
98 |
_CPDIR=$(games_get_libdir)/childsplay |
99 |
_SHAREDIR=${GAMES_DATADIR}/childsplay |
100 |
_LIBDIR=${_CPDIR}/lib |
101 |
_MODULESDIR=${_LIBDIR} |
102 |
_SHARELIBDATADIR=${_SHAREDIR}/lib |
103 |
_SHAREDATADIR=${_SHAREDIR}/Data |
104 |
_RCDIR=${_SHARELIBDATADIR}/ConfigData |
105 |
_HOME_DIR_NAME=.childsplay |
106 |
_CHILDSPLAYRC=childsplayrc |
107 |
|
108 |
dodir \ |
109 |
"${_CPDIR}" \ |
110 |
"${_LIBDIR}" \ |
111 |
"${_SHAREDIR}" \ |
112 |
"${_SHARELIBDATADIR}" \ |
113 |
"${_SCOREDIR}" \ |
114 |
"${_LOCALEDIR}" \ |
115 |
"${_ASSETMLDIR}" |
116 |
|
117 |
# create BASEPATH.py |
118 |
cat >BASEPATH.py <<EOF |
119 |
## Automated file--please do not edit |
120 |
LOCALEDIR="${_LOCALEDIR}" |
121 |
ASSETMLDIR="${_ASSETMLDIR}" |
122 |
SCOREDIR="${_SCOREDIR}" |
123 |
SCOREFILE="${_SCOREFILE}" |
124 |
CPDIR="${_CPDIR}" |
125 |
SHAREDIR="${_SHAREDIR}" |
126 |
LIBDIR="${_LIBDIR}" |
127 |
MODULESDIR="${_MODULESDIR}" |
128 |
SHARELIBDATADIR="${_SHARELIBDATADIR}" |
129 |
SHAREDATADIR="${_SHAREDATADIR}" |
130 |
RCDIR="${_RCDIR}" |
131 |
HOME_DIR_NAME="${_HOME_DIR_NAME}" |
132 |
CHILDSPLAYRC="${_CHILDSPLAYRC}" |
133 |
EOF |
134 |
|
135 |
# copy software and data |
136 |
cp -r *.py "${D}/${_CPDIR}" || die "cp failed" |
137 |
cp -r Data "${D}/${_SHAREDIR}" || die "cp failed" |
138 |
rm "${D}/${_SHAREDIR}/Data/childsplay.score" # this copy won't be used |
139 |
|
140 |
for fn in $(ls lib); do |
141 |
if [[ -d lib/${fn} ]] ; then |
142 |
cp -r lib/${fn} "${D}/${_SHARELIBDATADIR}" || die |
143 |
else |
144 |
cp lib/${fn} "${D}/${_LIBDIR}" || die |
145 |
fi |
146 |
done |
147 |
|
148 |
cp -r locale/* "${D}/${_LOCALEDIR}" || die |
149 |
cp -r assetml/* "${D}/${_ASSETMLDIR}" || die |
150 |
|
151 |
# initialize the score file |
152 |
cp Data/childsplay.score "${D}/${_SCOREFILE}" || die |
153 |
SCORE_GAMES="Packid,Numbers,Soundmemory,Fallingletters,Findsound,Findsound2,Billiard" |
154 |
python add-score.py "${D}/${_SCOREDIR}" $SCORE_GAMES |
155 |
|
156 |
# translate for the letters game |
157 |
python letters-trans.py "${D}/${_ASSETMLDIR}" |
158 |
|
159 |
doman man/childsplay.6 |
160 |
dodoc doc/README* doc/Changelog doc/copyright |
161 |
|
162 |
# Make a launcher. |
163 |
dogamesbin "${FILESDIR}"/childsplay || die |
164 |
sed -i \ |
165 |
-e "s:GENTOO_DIR:${_CPDIR}:" \ |
166 |
"${D}${GAMES_BINDIR}"/childsplay \ |
167 |
|| die "sed failed" |
168 |
|
169 |
newicon assetml/childsplay/childsplay-images/chpl-icon-48.png ${PN}.png |
170 |
make_desktop_entry childsplay Childsplay |
171 |
|
172 |
prepgamesdirs |
173 |
fperms g+w "${_SCOREFILE}" |
174 |
} |
175 |
|
176 |
pkg_postinst() { |
177 |
python_mod_optimize "${_CPDIR}" |
178 |
games_pkg_postinst |
179 |
} |
180 |
|
181 |
pkg_postrm() { |
182 |
python_mod_cleanup "${_CPDIR}" |
183 |
} |
184 |
|
185 |
|
186 |
|
187 |
-- |
188 |
gentoo-commits@g.o mailing list |