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: renpy-6.18.0-r1.ebuild ChangeLog renpy-6.18.0.ebuild
Date: Sat, 23 Aug 2014 02:27:32
Message-Id: 20140823022727.1801F3C28@oystercatcher.gentoo.org
1 hasufell 14/08/23 02:27:27
2
3 Modified: ChangeLog
4 Added: renpy-6.18.0-r1.ebuild
5 Removed: renpy-6.18.0.ebuild
6 Log:
7 fix dependencies
8
9 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
10
11 Revision Changes Path
12 1.47 games-engines/renpy/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/ChangeLog?rev=1.47&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/ChangeLog?rev=1.47&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/ChangeLog?r1=1.46&r2=1.47
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/games-engines/renpy/ChangeLog,v
21 retrieving revision 1.46
22 retrieving revision 1.47
23 diff -u -r1.46 -r1.47
24 --- ChangeLog 20 Aug 2014 17:36:28 -0000 1.46
25 +++ ChangeLog 23 Aug 2014 02:27:27 -0000 1.47
26 @@ -1,6 +1,12 @@
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.46 2014/08/20 17:36:28 hasufell Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/ChangeLog,v 1.47 2014/08/23 02:27:27 hasufell Exp $
31 +
32 +*renpy-6.18.0-r1 (23 Aug 2014)
33 +
34 + 23 Aug 2014; Julian Ospald <hasufell@g.o> -renpy-6.18.0.ebuild,
35 + +renpy-6.18.0-r1.ebuild:
36 + fix dependencies
37
38 20 Aug 2014; Julian Ospald <hasufell@g.o> -renpy-6.17.4.ebuild,
39 -renpy-6.17.6.ebuild, -files/renpy-6.17.4-multiple-abi.patch,
40
41
42
43 1.1 games-engines/renpy/renpy-6.18.0-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/renpy-6.18.0-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/renpy-6.18.0-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: renpy-6.18.0-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2014 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.18.0-r1.ebuild,v 1.1 2014/08/23 02:27:27 hasufell Exp $
53
54 EAPI=5
55 PYTHON_COMPAT=( python2_7 )
56 DISTUTILS_IN_SOURCE_BUILD=1
57 inherit eutils toolchain-funcs 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.5
72 dev-libs/fribidi
73 dev-python/pygame[X,${PYTHON_USEDEP}]
74 >=dev-lang/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 DEPEND="${RDEPEND}
82 dev-python/cython[${PYTHON_USEDEP}]
83 virtual/pkgconfig"
84
85 S=${WORKDIR}/${P}-source
86
87 pkg_setup() {
88 games_pkg_setup
89 export CFLAGS="${CFLAGS} $($(tc-getPKG_CONFIG) --cflags fribidi)"
90 }
91
92 python_prepare_all() {
93 # wooosh! this should fix multiple abi
94 epatch "${FILESDIR}"/${P}-multiple-abi.patch
95
96 einfo "Deleting precompiled python files"
97 find . -name '*.py[co]' -print -delete || die
98
99 sed -i \
100 -e "s/@SLOT@/${MYSLOT}/" \
101 renpy.py renpy/common.py || die "setting slot failed!"
102
103 distutils-r1_python_prepare_all
104 }
105
106 python_compile() {
107 cd "${S}"/module || die
108 distutils-r1_python_compile
109 }
110
111 python_install() {
112 cd "${S}"/module || die
113 distutils-r1_python_install --install-lib="$(python_get_sitedir)/renpy${MYSLOT}"
114
115 cd "${S}" || die
116 python_scriptinto "${GAMES_BINDIR}"
117 python_newscript renpy.py ${PN}-${SLOT}
118
119 python_moduleinto renpy${MYSLOT}
120 python_domodule renpy
121 if use development ; then
122 python_domodule launcher templates
123 fi
124 if use examples ; then
125 python_domodule the_question tutorial
126 fi
127 }
128
129 python_install_all() {
130 if use development; then
131 newicon -s 32 launcher/game/images/logo32.png ${P}.png
132 make_desktop_entry ${PN}-${SLOT} "Ren'Py ${PV}" ${P}
133 fi
134
135 if use doc; then
136 dohtml -r doc
137 fi
138
139 prepgamesdirs
140 }
141
142 pkg_preinst() {
143 games_pkg_preinst
144 use development && gnome2_icon_savelist
145 }
146
147 pkg_postinst() {
148 games_pkg_postinst
149 use development && gnome2_icon_cache_update
150
151 einfo "running: eselect renpy update --if-unset"
152 eselect renpy update --if-unset
153 }
154
155 pkg_postrm() {
156 use development && gnome2_icon_cache_update
157
158 einfo "running: eselect renpy update --if-unset"
159 eselect renpy update --if-unset
160 }