summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2016-10-14 18:15:27 -0500
committerAustin English <wizardedit@gentoo.org>2016-10-14 18:41:40 -0500
commitcef11d7dcfb7a6034d3660c57e80cb6ca8093d73 (patch)
tree19e8cb878fb4646ea5522cad97907526d6855f76 /games-rpg
parentnet-misc/memcached: bup (diff)
downloadgentoo-cef11d7dcfb7a6034d3660c57e80cb6ca8093d73.tar.gz
gentoo-cef11d7dcfb7a6034d3660c57e80cb6ca8093d73.tar.bz2
gentoo-cef11d7dcfb7a6034d3660c57e80cb6ca8093d73.zip
games-rpg/daimonin-client: remove deprecated games eclass
Also update to EAPI 6 Gentoo-Bug: https://bugs.gentoo.org/574082 Package-Manager: portage-2.3.0
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/daimonin-client/daimonin-client-0.10.5-r1.ebuild71
-rw-r--r--games-rpg/daimonin-client/files/daimonin-client-0.10.5-datadir.patch4
-rw-r--r--games-rpg/daimonin-client/files/daimonin-client-0.10.5-nozlib.patch4
3 files changed, 75 insertions, 4 deletions
diff --git a/games-rpg/daimonin-client/daimonin-client-0.10.5-r1.ebuild b/games-rpg/daimonin-client/daimonin-client-0.10.5-r1.ebuild
new file mode 100644
index 000000000000..9341e42e725b
--- /dev/null
+++ b/games-rpg/daimonin-client/daimonin-client-0.10.5-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils autotools
+
+MY_P=${PN}-${PV}
+DESCRIPTION="a graphical 2D tile-based MMORPG"
+HOMEPAGE="http://daimonin.sourceforge.net/"
+SRC_URI="http://daimonin.svn.sourceforge.net/viewvc/daimonin/main/client/?view=tar&pathrev=6021
+ -> daimonin-client-0.10.5.tar.gz
+ music? ( mirror://sourceforge/daimonin/Addon%20packs/Music/AllMusic.zip
+ -> daimonin-client-AllMusic-20100827.zip )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug music"
+
+RDEPEND="
+ dev-games/physfs
+ media-libs/libsdl[sound,video]
+ media-libs/sdl-image[png]
+ media-libs/sdl-mixer[vorbis]
+ net-misc/curl"
+DEPEND="${RDEPEND}
+ music? ( app-arch/unzip )"
+
+S=${WORKDIR}/client/make/linux
+
+PATCHES=(
+ "${FILESDIR}"/${P}-nozlib.patch
+)
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ if use music ; then
+ cd client/media || die
+ rm -f * || die
+ unpack ${PN}-AllMusic-20100827.zip
+ fi
+}
+
+src_prepare() {
+ default
+ rm ../../src/include/z{lib,conf}.h || die
+ sed -i \
+ -e 's:$(d_datadir):$(DESTDIR)$(d_datadir):' \
+ -e '/PROGRAMS/s:daimonin-updater::' \
+ Makefile.am \
+ || die "sed failed"
+ eautoreconf
+ cd ../../src || die
+ # Not relative to $S, so can't be applied via $PATCHES[@]
+ eapply "${FILESDIR}"/${P}-datadir.patch
+}
+
+src_configure() {
+ econf \
+ --disable-simplelayout \
+ $(use_enable debug)
+}
+
+src_install() {
+ default
+ cd ../.. || die
+ dodoc README*
+ newicon bitmaps/pentagram.png ${PN}.png
+ make_desktop_entry daimonin Daimonin
+}
diff --git a/games-rpg/daimonin-client/files/daimonin-client-0.10.5-datadir.patch b/games-rpg/daimonin-client/files/daimonin-client-0.10.5-datadir.patch
index ea79f7595910..f2fc757abd27 100644
--- a/games-rpg/daimonin-client/files/daimonin-client-0.10.5-datadir.patch
+++ b/games-rpg/daimonin-client/files/daimonin-client-0.10.5-datadir.patch
@@ -1,5 +1,5 @@
---- main.c.old 2010-08-24 19:32:55.000000000 +0200
-+++ main.c 2010-09-19 18:49:54.000000000 +0200
+--- a/main.c 2010-08-24 19:32:55.000000000 +0200
++++ b/main.c 2010-09-19 18:49:54.000000000 +0200
@@ -2386,7 +2386,7 @@
/* Add the base dir to the search path. The base dir is where all the
diff --git a/games-rpg/daimonin-client/files/daimonin-client-0.10.5-nozlib.patch b/games-rpg/daimonin-client/files/daimonin-client-0.10.5-nozlib.patch
index c342cc3c3850..62a6e5fb1302 100644
--- a/games-rpg/daimonin-client/files/daimonin-client-0.10.5-nozlib.patch
+++ b/games-rpg/daimonin-client/files/daimonin-client-0.10.5-nozlib.patch
@@ -1,5 +1,5 @@
---- Makefile.am.old 2010-12-01 14:39:11.605648458 -0500
-+++ Makefile.am 2010-12-01 14:41:59.875915880 -0500
+--- a/Makefile.am 2010-12-01 14:39:11.605648458 -0500
++++ b/Makefile.am 2010-12-01 14:41:59.875915880 -0500
@@ -2,23 +2,18 @@
daimonin_PROGRAMS = daimonin daimonin-updater