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.14.1-r1.ebuild renpy-6.14.1.ebuild
Date: Wed, 27 Feb 2013 19:34:35
Message-Id: 20130227193431.995DC2171D@flycatcher.gentoo.org
1 hasufell 13/02/27 19:34:31
2
3 Modified: ChangeLog
4 Added: renpy-6.14.1-r1.ebuild
5 Removed: renpy-6.14.1.ebuild
6 Log:
7 update dependencies, update new eselect-module in pkg_postinst
8
9 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
10
11 Revision Changes Path
12 1.2 games-engines/renpy/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/ChangeLog?rev=1.2&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/ChangeLog?rev=1.2&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/ChangeLog?r1=1.1&r2=1.2
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/games-engines/renpy/ChangeLog,v
21 retrieving revision 1.1
22 retrieving revision 1.2
23 diff -u -r1.1 -r1.2
24 --- ChangeLog 27 Feb 2013 00:20:19 -0000 1.1
25 +++ ChangeLog 27 Feb 2013 19:34:31 -0000 1.2
26 @@ -1,6 +1,12 @@
27 # ChangeLog for games-engines/renpy
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/ChangeLog,v 1.1 2013/02/27 00:20:19 hasufell Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/ChangeLog,v 1.2 2013/02/27 19:34:31 hasufell Exp $
31 +
32 +*renpy-6.14.1-r1 (27 Feb 2013)
33 +
34 + 27 Feb 2013; Julian Ospald <hasufell@g.o> -renpy-6.14.1.ebuild,
35 + +renpy-6.14.1-r1.ebuild:
36 + update dependencies, update new eselect-module in pkg_postinst
37
38 *renpy-6.14.1 (27 Feb 2013)
39
40
41
42
43 1.1 games-engines/renpy/renpy-6.14.1-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/renpy-6.14.1-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/renpy-6.14.1-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: renpy-6.14.1-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/renpy-6.14.1-r1.ebuild,v 1.1 2013/02/27 19:34:31 hasufell Exp $
53
54 EAPI=5
55 PYTHON_COMPAT=( python2_6 python2_7 )
56 DISTUTILS_IN_SOURCE_BUILD=1
57 inherit eutils python-r1 versionator gnome2-utils games distutils-r1
58
59 DESCRIPTION="Visual novel engine written in python"
60 HOMEPAGE="http://www.renpy.org"
61 SRC_URI="http://www.renpy.org/dl/${PV}/${P}-source.tar.bz2"
62
63 LICENSE="MIT"
64 SLOT="$(get_version_component_range 1-2)"
65 MYSLOT=$(delete_all_version_separators ${SLOT})
66 KEYWORDS="~amd64 ~x86"
67 IUSE="development doc examples"
68 REQUIRED_USE="examples? ( development )"
69
70 RDEPEND="
71 >=app-admin/eselect-renpy-0.1
72 dev-libs/fribidi
73 dev-python/pygame[X,${PYTHON_USEDEP}]
74 >=dev-python/python-exec-0.3[${PYTHON_USEDEP}]
75 media-libs/glew
76 media-libs/libpng:0
77 media-libs/libsdl[X,video]
78 media-libs/freetype:2
79 sys-libs/zlib
80 virtual/ffmpeg
81 virtual/python-argparse[${PYTHON_USEDEP}]"
82 DEPEND="${RDEPEND}
83 virtual/pkgconfig"
84
85 S=${WORKDIR}/${P}-source
86
87 pkg_setup() {
88 games_pkg_setup
89 export CFLAGS="${CFLAGS} $(pkg-config --cflags fribidi)"
90 }
91
92 python_prepare_all() {
93 # wooosh! this should fix multiple abi
94 epatch "${FILESDIR}"/${P}-multiple-abi.patch \
95 "${FILESDIR}"/${P}-{av_close_input_stream,remove-AVFormatParameters}.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 common
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 einfo "running: eselect renpy update --if-unset"
148 eselect renpy update --if-unset
149 }
150
151 pkg_postinst() {
152 games_pkg_postinst
153 use development && gnome2_icon_cache_update
154 }
155
156 pkg_postrm() {
157 use development && gnome2_icon_cache_update
158 }