Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-engines/renpy: ChangeLog renpy-6.17.2.ebuild renpy-6.17.0.ebuild
Date: Sat, 01 Mar 2014 14:41:40
Message-Id: 20140301144134.CF2452004E@flycatcher.gentoo.org
1 hasufell 14/03/01 14:41:34
2
3 Modified: ChangeLog
4 Added: renpy-6.17.2.ebuild
5 Removed: renpy-6.17.0.ebuild
6 Log:
7 version bump, remove old
8
9 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
10
11 Revision Changes Path
12 1.30 games-engines/renpy/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/ChangeLog?rev=1.30&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/ChangeLog?rev=1.30&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/ChangeLog?r1=1.29&r2=1.30
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/games-engines/renpy/ChangeLog,v
21 retrieving revision 1.29
22 retrieving revision 1.30
23 diff -u -r1.29 -r1.30
24 --- ChangeLog 25 Feb 2014 21:29:40 -0000 1.29
25 +++ ChangeLog 1 Mar 2014 14:41:34 -0000 1.30
26 @@ -1,6 +1,13 @@
27 # ChangeLog for games-engines/renpy
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/ChangeLog,v 1.29 2014/02/25 21:29:40 hasufell Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/ChangeLog,v 1.30 2014/03/01 14:41:34 hasufell Exp $
31 +
32 +*renpy-6.17.2 (01 Mar 2014)
33 +
34 + 01 Mar 2014; Julian Ospald <hasufell@g.o> -renpy-6.17.0.ebuild,
35 + -files/renpy-6.17.0-multiple-abi.patch, +renpy-6.17.2.ebuild,
36 + +files/renpy-6.17.2-multiple-abi.patch:
37 + version bump, remove old
38
39 *renpy-6.17.1 (25 Feb 2014)
40
41
42
43
44 1.1 games-engines/renpy/renpy-6.17.2.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/renpy-6.17.2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/renpy-6.17.2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: renpy-6.17.2.ebuild
50 ===================================================================
51 # Copyright 1999-2014 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/renpy-6.17.2.ebuild,v 1.1 2014/03/01 14:41:34 hasufell Exp $
54
55 EAPI=5
56 PYTHON_COMPAT=( python2_7 )
57 DISTUTILS_IN_SOURCE_BUILD=1
58 inherit eutils toolchain-funcs python-r1 versionator gnome2-utils games distutils-r1
59
60 DESCRIPTION="Visual novel engine written in python"
61 HOMEPAGE="http://www.renpy.org"
62 SRC_URI="http://www.renpy.org/dl/${PV}/${P}-source.tar.bz2"
63
64 LICENSE="MIT"
65 SLOT="$(get_version_component_range 1-2)"
66 MYSLOT=$(delete_all_version_separators ${SLOT})
67 KEYWORDS="~amd64 ~x86"
68 IUSE="development doc examples"
69 REQUIRED_USE="examples? ( development )"
70
71 RDEPEND="
72 >=app-admin/eselect-renpy-0.4
73 dev-libs/fribidi
74 dev-python/pygame[X,${PYTHON_USEDEP}]
75 >=dev-python/python-exec-0.3[${PYTHON_USEDEP}]
76 media-libs/glew
77 media-libs/libpng:0
78 media-libs/libsdl[X,video]
79 media-libs/freetype:2
80 sys-libs/zlib
81 virtual/ffmpeg
82 virtual/python-argparse[${PYTHON_USEDEP}]"
83 DEPEND="${RDEPEND}
84 virtual/pkgconfig"
85
86 S=${WORKDIR}/${P}-source
87
88 pkg_setup() {
89 games_pkg_setup
90 export CFLAGS="${CFLAGS} $($(tc-getPKG_CONFIG) --cflags fribidi)"
91 }
92
93 python_prepare_all() {
94 # wooosh! this should fix multiple abi
95 epatch "${FILESDIR}"/${P}-multiple-abi.patch
96
97 einfo "Deleting precompiled python files"
98 find . -name '*.py[co]' -print -delete || die
99
100 sed -i \
101 -e "s/@SLOT@/${MYSLOT}/" \
102 renpy.py renpy/common.py || die "setting slot failed!"
103
104 distutils-r1_python_prepare_all
105 }
106
107 python_compile() {
108 cd "${S}"/module || die
109 distutils-r1_python_compile
110 }
111
112 python_install() {
113 cd "${S}"/module || die
114 distutils-r1_python_install --install-lib="$(python_get_sitedir)/renpy${MYSLOT}"
115
116 cd "${S}" || die
117 python_scriptinto "${GAMES_BINDIR}"
118 python_newscript renpy.py ${PN}-${SLOT}
119
120 python_moduleinto renpy${MYSLOT}
121 python_domodule renpy
122 if use development ; then
123 python_domodule launcher template
124 fi
125 if use examples ; then
126 python_domodule the_question tutorial
127 fi
128 }
129
130 python_install_all() {
131 if use development; then
132 newicon -s 32 launcher/game/logo32.png ${P}.png
133 make_desktop_entry ${PN}-${SLOT} "Ren'Py ${PV}" ${P}
134 fi
135
136 if use doc; then
137 dohtml -r doc
138 fi
139
140 prepgamesdirs
141 }
142
143 pkg_preinst() {
144 games_pkg_preinst
145 use development && gnome2_icon_savelist
146 }
147
148 pkg_postinst() {
149 games_pkg_postinst
150 use development && gnome2_icon_cache_update
151
152 einfo "running: eselect renpy update --if-unset"
153 eselect renpy update --if-unset
154 }
155
156 pkg_postrm() {
157 use development && gnome2_icon_cache_update
158
159 einfo "running: eselect renpy update --if-unset"
160 eselect renpy update --if-unset
161 }