summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2016-01-02 18:09:26 -0500
committerMichael Sterrett <mr_bones_@gentoo.org>2016-01-02 18:09:52 -0500
commitafb682000551c3bb42636260e4b2daef8d18543a (patch)
tree8e17b8ced670abde88f1b24ada115bbb959c3ab5 /games-rpg/freedroidrpg
parentnet-wireless/neard: Remove old (diff)
downloadgentoo-afb682000551c3bb42636260e4b2daef8d18543a.tar.gz
gentoo-afb682000551c3bb42636260e4b2daef8d18543a.tar.bz2
gentoo-afb682000551c3bb42636260e4b2daef8d18543a.zip
games-rpg/freedroidrpg: version bump
Package-Manager: portage-2.2.24
Diffstat (limited to 'games-rpg/freedroidrpg')
-rw-r--r--games-rpg/freedroidrpg/Manifest1
-rw-r--r--games-rpg/freedroidrpg/freedroidrpg-0.16.ebuild88
2 files changed, 89 insertions, 0 deletions
diff --git a/games-rpg/freedroidrpg/Manifest b/games-rpg/freedroidrpg/Manifest
index d37f49a2a359..dfe3e3b884a3 100644
--- a/games-rpg/freedroidrpg/Manifest
+++ b/games-rpg/freedroidrpg/Manifest
@@ -1 +1,2 @@
DIST freedroidRPG-0.15.1.tar.gz 209427247 SHA256 3e0e0e901f05386f49b8dfa1a8b3582ea82347deb7fb8e94fc15bf8ad058ba08 SHA512 3e38753a040e507229b87235e449fc77db2457a4eb0129f8866a58e3863baa08304feb846828be95183a0b9e46f11761c706571ea68500203c953e1467e108a4 WHIRLPOOL 42f0d6e5ae48437ad0fb00d38966904601de80f2d7dbf6d93d40da5cf4897cc12fc82ec1b9ce500947ed4f1f583eb736fbfc2cdf7619f22999c0e28a007b0aac
+DIST freedroidRPG-0.16.tar.gz 225570013 SHA256 c11f28b69eed3e8e40528442d9e840847502ccd4d3d95d3f8182abc2b3b18135 SHA512 039ee4bfcd58e29a3cfa26ae7f2bc8aed7c289119476bb8f8486006910cf6a2127ba49f7526fac887392ca9e5320fb1a59ba068834e162348905423908b0755a WHIRLPOOL cc8e812515c9f0ce979558c8307fc2f7d30597c198fecd42e43e927b1969b8cacff0db4eed71a41b4119ddb64829d729593ee4151ca69c776f45b9295cda0978
diff --git a/games-rpg/freedroidrpg/freedroidrpg-0.16.ebuild b/games-rpg/freedroidrpg/freedroidrpg-0.16.ebuild
new file mode 100644
index 000000000000..bb5d56bbc9fe
--- /dev/null
+++ b/games-rpg/freedroidrpg/freedroidrpg-0.16.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit autotools eutils gnome2-utils python-any-r1 games
+
+DESCRIPTION="A modification of the classical Freedroid engine into an RPG"
+HOMEPAGE="http://freedroid.sourceforge.net/"
+SRC_URI="ftp://ftp.osuosl.org/pub/freedroid/freedroidRPG-${PV}//freedroidRPG-${PV}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="nls opengl sound"
+
+RDEPEND="media-libs/libsdl[opengl?,sound?,video]
+ virtual/jpeg:0
+ media-libs/libpng:0
+ media-libs/sdl-image[jpeg,png]
+ >=media-libs/sdl-gfx-2.0.21
+ sound? (
+ media-libs/sdl-mixer[vorbis]
+ media-libs/libogg
+ media-libs/libvorbis )
+ x11-libs/libX11
+ opengl? ( virtual/opengl )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ nls? ( sys-devel/gettext )"
+
+pkg_setup() {
+ python-any-r1_pkg_setup
+ games_pkg_setup
+}
+
+src_prepare() {
+ sed -i \
+ -e '/^dist_doc_DATA/d' \
+ -e '/-pipe/d' \
+ -e '/^SUBDIRS/s/pkgs//' \
+ Makefile.am || die
+ python_fix_shebang src sound
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf \
+ --disable-fastmath \
+ --with-embedded-lua \
+ --localedir=/usr/share/locale \
+ $(use_enable nls) \
+ $(use_enable opengl) \
+ $(use_enable sound)
+}
+
+src_install() {
+ local i
+
+ default
+ for i in 48 64 96 128
+ do
+ doicon -s ${i} pkgs/freedesktop/icons/hicolor/${i}x${i}/apps/freedroidRPG.png
+ done
+ doicon -s scalable pkgs/freedesktop/icons/hicolor/scalable/apps/freedroidRPG.svg
+ make_desktop_entry freedroidRPG "Freedroid RPG" freedroidRPG
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+ echo
+ ewarn "${P} is not compatible with old save games."
+ ewarn "Please start a new character."
+ echo
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}