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