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.1.ebuild
Date: Tue, 25 Feb 2014 21:29:46
Message-Id: 20140225212940.DFA2C2004C@flycatcher.gentoo.org
1 hasufell 14/02/25 21:29:40
2
3 Modified: ChangeLog
4 Added: renpy-6.17.1.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
9
10 Revision Changes Path
11 1.29 games-engines/renpy/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/ChangeLog?rev=1.29&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/ChangeLog?rev=1.29&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/ChangeLog?r1=1.28&r2=1.29
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-engines/renpy/ChangeLog,v
20 retrieving revision 1.28
21 retrieving revision 1.29
22 diff -u -r1.28 -r1.29
23 --- ChangeLog 24 Feb 2014 01:57:38 -0000 1.28
24 +++ ChangeLog 25 Feb 2014 21:29:40 -0000 1.29
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.28 2014/02/24 01:57:38 phajdan.jr Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/ChangeLog,v 1.29 2014/02/25 21:29:40 hasufell Exp $
30 +
31 +*renpy-6.17.1 (25 Feb 2014)
32 +
33 + 25 Feb 2014; Julian Ospald <hasufell@g.o> +renpy-6.17.1.ebuild,
34 + +files/renpy-6.17.1-multiple-abi.patch:
35 + version bump
36
37 24 Feb 2014; Pawel Hajdan jr <phajdan.jr@g.o> renpy-6.16.5.ebuild:
38 x86 stable wrt bug #499832
39
40
41
42 1.1 games-engines/renpy/renpy-6.17.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/renpy-6.17.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-engines/renpy/renpy-6.17.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: renpy-6.17.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.17.1.ebuild,v 1.1 2014/02/25 21:29:40 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.4
71 dev-libs/fribidi
72 dev-python/pygame[X,${PYTHON_USEDEP}]
73 >=dev-python/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 virtual/python-argparse[${PYTHON_USEDEP}]"
81 DEPEND="${RDEPEND}
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 template
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/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 }