public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Austin English" <wizardedit@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-rpg/daimonin-client/files/, games-rpg/daimonin-client/
Date: Fri, 14 Oct 2016 23:41:50 +0000 (UTC)	[thread overview]
Message-ID: <1476488500.cef11d7dcfb7a6034d3660c57e80cb6ca8093d73.wizardedit@gentoo> (raw)

commit:     cef11d7dcfb7a6034d3660c57e80cb6ca8093d73
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 14 23:15:27 2016 +0000
Commit:     Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Fri Oct 14 23:41:40 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cef11d7d

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

 .../daimonin-client-0.10.5-r1.ebuild               | 71 ++++++++++++++++++++++
 .../files/daimonin-client-0.10.5-datadir.patch     |  4 +-
 .../files/daimonin-client-0.10.5-nozlib.patch      |  4 +-
 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 00000000..9341e42
--- /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 ea79f75..f2fc757 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 c342cc3..62a6e5f 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
  


             reply	other threads:[~2016-10-14 23:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-14 23:41 Austin English [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-11-18 16:36 [gentoo-commits] repo/gentoo:master commit in: games-rpg/daimonin-client/files/, games-rpg/daimonin-client/ David Seifert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1476488500.cef11d7dcfb7a6034d3660c57e80cb6ca8093d73.wizardedit@gentoo \
    --to=wizardedit@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox