Gentoo Archives: gentoo-commits

From: Michael Sterrett <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-rpg/freedroidrpg/
Date: Sat, 02 Jan 2016 23:10:36
Message-Id: 1451776192.afb682000551c3bb42636260e4b2daef8d18543a.mr_bones_@gentoo
1 commit: afb682000551c3bb42636260e4b2daef8d18543a
2 Author: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 2 23:09:26 2016 +0000
4 Commit: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 2 23:09:52 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afb68200
7
8 games-rpg/freedroidrpg: version bump
9
10 Package-Manager: portage-2.2.24
11
12 games-rpg/freedroidrpg/Manifest | 1 +
13 games-rpg/freedroidrpg/freedroidrpg-0.16.ebuild | 88 +++++++++++++++++++++++++
14 2 files changed, 89 insertions(+)
15
16 diff --git a/games-rpg/freedroidrpg/Manifest b/games-rpg/freedroidrpg/Manifest
17 index d37f49a..dfe3e3b 100644
18 --- a/games-rpg/freedroidrpg/Manifest
19 +++ b/games-rpg/freedroidrpg/Manifest
20 @@ -1 +1,2 @@
21 DIST freedroidRPG-0.15.1.tar.gz 209427247 SHA256 3e0e0e901f05386f49b8dfa1a8b3582ea82347deb7fb8e94fc15bf8ad058ba08 SHA512 3e38753a040e507229b87235e449fc77db2457a4eb0129f8866a58e3863baa08304feb846828be95183a0b9e46f11761c706571ea68500203c953e1467e108a4 WHIRLPOOL 42f0d6e5ae48437ad0fb00d38966904601de80f2d7dbf6d93d40da5cf4897cc12fc82ec1b9ce500947ed4f1f583eb736fbfc2cdf7619f22999c0e28a007b0aac
22 +DIST freedroidRPG-0.16.tar.gz 225570013 SHA256 c11f28b69eed3e8e40528442d9e840847502ccd4d3d95d3f8182abc2b3b18135 SHA512 039ee4bfcd58e29a3cfa26ae7f2bc8aed7c289119476bb8f8486006910cf6a2127ba49f7526fac887392ca9e5320fb1a59ba068834e162348905423908b0755a WHIRLPOOL cc8e812515c9f0ce979558c8307fc2f7d30597c198fecd42e43e927b1969b8cacff0db4eed71a41b4119ddb64829d729593ee4151ca69c776f45b9295cda0978
23
24 diff --git a/games-rpg/freedroidrpg/freedroidrpg-0.16.ebuild b/games-rpg/freedroidrpg/freedroidrpg-0.16.ebuild
25 new file mode 100644
26 index 0000000..bb5d56b
27 --- /dev/null
28 +++ b/games-rpg/freedroidrpg/freedroidrpg-0.16.ebuild
29 @@ -0,0 +1,88 @@
30 +# Copyright 1999-2015 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +PYTHON_COMPAT=( python2_7 )
36 +inherit autotools eutils gnome2-utils python-any-r1 games
37 +
38 +DESCRIPTION="A modification of the classical Freedroid engine into an RPG"
39 +HOMEPAGE="http://freedroid.sourceforge.net/"
40 +SRC_URI="ftp://ftp.osuosl.org/pub/freedroid/freedroidRPG-${PV}//freedroidRPG-${PV}.tar.gz"
41 +
42 +LICENSE="GPL-2+"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~ppc ~x86"
45 +IUSE="nls opengl sound"
46 +
47 +RDEPEND="media-libs/libsdl[opengl?,sound?,video]
48 + virtual/jpeg:0
49 + media-libs/libpng:0
50 + media-libs/sdl-image[jpeg,png]
51 + >=media-libs/sdl-gfx-2.0.21
52 + sound? (
53 + media-libs/sdl-mixer[vorbis]
54 + media-libs/libogg
55 + media-libs/libvorbis )
56 + x11-libs/libX11
57 + opengl? ( virtual/opengl )
58 + nls? ( virtual/libintl )"
59 +DEPEND="${RDEPEND}
60 + ${PYTHON_DEPS}
61 + nls? ( sys-devel/gettext )"
62 +
63 +pkg_setup() {
64 + python-any-r1_pkg_setup
65 + games_pkg_setup
66 +}
67 +
68 +src_prepare() {
69 + sed -i \
70 + -e '/^dist_doc_DATA/d' \
71 + -e '/-pipe/d' \
72 + -e '/^SUBDIRS/s/pkgs//' \
73 + Makefile.am || die
74 + python_fix_shebang src sound
75 + eautoreconf
76 +}
77 +
78 +src_configure() {
79 + egamesconf \
80 + --disable-fastmath \
81 + --with-embedded-lua \
82 + --localedir=/usr/share/locale \
83 + $(use_enable nls) \
84 + $(use_enable opengl) \
85 + $(use_enable sound)
86 +}
87 +
88 +src_install() {
89 + local i
90 +
91 + default
92 + for i in 48 64 96 128
93 + do
94 + doicon -s ${i} pkgs/freedesktop/icons/hicolor/${i}x${i}/apps/freedroidRPG.png
95 + done
96 + doicon -s scalable pkgs/freedesktop/icons/hicolor/scalable/apps/freedroidRPG.svg
97 + make_desktop_entry freedroidRPG "Freedroid RPG" freedroidRPG
98 + prepgamesdirs
99 +}
100 +
101 +pkg_preinst() {
102 + games_pkg_preinst
103 + gnome2_icon_savelist
104 +}
105 +
106 +pkg_postinst() {
107 + games_pkg_postinst
108 + gnome2_icon_cache_update
109 + echo
110 + ewarn "${P} is not compatible with old save games."
111 + ewarn "Please start a new character."
112 + echo
113 +}
114 +
115 +pkg_postrm() {
116 + gnome2_icon_cache_update
117 +}