From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- games-rpg/daimonin-client/Manifest | 9 +++ .../daimonin-client-0.10.5-r1.ebuild | 70 ++++++++++++++++++++++ .../daimonin-client/daimonin-client-0.10.5.ebuild | 65 ++++++++++++++++++++ .../files/daimonin-client-0.10.5-datadir.patch | 28 +++++++++ .../files/daimonin-client-0.10.5-nozlib.patch | 40 +++++++++++++ games-rpg/daimonin-client/metadata.xml | 14 +++++ 6 files changed, 226 insertions(+) create mode 100644 games-rpg/daimonin-client/Manifest create mode 100644 games-rpg/daimonin-client/daimonin-client-0.10.5-r1.ebuild create mode 100644 games-rpg/daimonin-client/daimonin-client-0.10.5.ebuild create mode 100644 games-rpg/daimonin-client/files/daimonin-client-0.10.5-datadir.patch create mode 100644 games-rpg/daimonin-client/files/daimonin-client-0.10.5-nozlib.patch create mode 100644 games-rpg/daimonin-client/metadata.xml (limited to 'games-rpg/daimonin-client') diff --git a/games-rpg/daimonin-client/Manifest b/games-rpg/daimonin-client/Manifest new file mode 100644 index 000000000000..f5418d500e84 --- /dev/null +++ b/games-rpg/daimonin-client/Manifest @@ -0,0 +1,9 @@ +AUX daimonin-client-0.10.5-datadir.patch 983 SHA256 69f925f6fe46e7129a2b2af3988f6a5b6cc06b670ec1a97a7765e4a655d0c7cc SHA512 eb4748894c0722ee112efc3953a14784eb13237919813c057afddc09104f250f346c29a1a224bd3ce8a44b22af4fa2b59f826aa5eb96fb45a51f276f743fa3fa WHIRLPOOL f68dfaca458d7d4a5f0f4c464d6483e684f0812a414bbceed42c404715dd493a8a816156ec34bde39ffd11d1448324ad2d3a0c019617c884abc8ab736d2e7671 +AUX daimonin-client-0.10.5-nozlib.patch 1094 SHA256 f5fe6c24c907bf991bb8e853ab5afa2fc4df26e12ce66395b92fc981f5f15bcd SHA512 31ef58b81c669f7a8c685355dfb37d85383891db4534c3b62b0d9f5beaed6cb6d4be34657acd109287dc85d83a6c81950322667729b36552394c17a9b0bfc989 WHIRLPOOL 4a172e40362abd7d3e3937e0df18536d73f95784a5207b1e292d5eeb36b90e1d0c5fb2c1e862252176f21fea584e20e0fab95f0e00650f13255d244cc063ef7a +DIST daimonin-client-0.10.5.tar.gz 15554328 SHA256 07bc94207dc77e0cae2bc949fd9df92da853f70343927d39f31e439d2d7ea3c9 SHA512 7f961105f368d7b4279c03e90028581a0efe998311f334f87d4ca6ff22df1a62f9b5911adf20822a282d7ed3796d8cb0643ab458cc51fb46cf3b90815164ac04 WHIRLPOOL e5141b02cb581f391609031b18626cd37eb2ed69dcfc7dc2e53d7b019747a5e63bf9f2cbcb7751b936c8c9e7f1637fe92151ac0370fb6dab3511fca0e8ea2dc4 +DIST daimonin-client-AllMusic-20100827.zip 86844919 SHA256 0732fde7f39b34057d72ab65b00ddefc1c84fcf8ef8fdf00d72fb67f2144d867 SHA512 50ec9524bd934a715271ddef1ea2cec855e93607e5befd1b18b74493400c9e1b2e6e5d829f3b21088b28c67635c0d1479eec53e1626c680f1d34081292607c9f WHIRLPOOL 91d485e1b816c6ee06cca9c18185b2a58f1da1f4231139dbb183a14a2ce3a12bab1891a9506bfe7ee2d9ff91d63801b160a4b67a52be8d2f2c4615d2568edd93 +EBUILD daimonin-client-0.10.5-r1.ebuild 1533 SHA256 fb74ee3679374c3a10783344ae136d951721b2090146ef9d790f41272f0e4808 SHA512 e94ae5bd39900bcb50d31a64f395b96087911ce824a0502fd386a8f25fd3acdcbd80908baed1d8a8ec73febe635052964ffbfae5804c2f8ee679666c7ccb68a3 WHIRLPOOL 41186f88b049a21313e5666145b01cf32238b80cfa103d4578a7817286286fd51fee45ed2051ec9bb69bb9c5c9e0cb8b5e16a4f15b683c0a06146bef236cc7d5 +EBUILD daimonin-client-0.10.5.ebuild 1446 SHA256 0bac292ec850fe052a5a9f4d1afe47d5e6debffef5e29f3737a4488019f3c2c1 SHA512 ce7e1af44dba8de7022d8e7cb2b55981ffa169d3f0b3a63b2474efbf3f2fadd86dafa95ec03bf73585ccf62f7756f78069475aebc7f8ebdca6e03982cf463a78 WHIRLPOOL fd588ee77f724b29ba00cd0de569887abd18e7f5f834a75a720f1b472adba2d75502f4708cd0159fdbd6453becc3a254734b4c9883701884d62eabb0711e2fb3 +MISC ChangeLog 2908 SHA256 78eaf599c4c881246a680b45136bc43c823a6e8c6e847278487311cabfa83b40 SHA512 52d59681a7d1f59f84051212722557033975b7e80ba7ec727a6dfef84a1f270ffb2e73f88a8135d561664caecba58563cbbb797a474cc3a6c2cf180dfa60ddcc WHIRLPOOL 9a1db530f059514d4bda1bd38e21548058a02351dfb4f1f94560f45596f62739300bf821bccaa342a55b5c78df5fa0cb6b405e29f3cd10a62af595b69755708f +MISC ChangeLog-2015 5418 SHA256 817b643734fbd26b098fc4bd48cf100d78450e6a431a231489cd7da76879f7df SHA512 09db4ad04c1d46edf00792a552813ebb16213ee33afa7b5ab32294f01f7698dcb26736c38cfe6c15cfbcf7305606af7aa14054e2e124b4cd3bd92bd27fadf176 WHIRLPOOL 9a61289b9ba35d116f10aa1c5464037805caac9d567f90dd6a293352ec04134f39ad1994fd9608c60f15285bf32ade5813a6b33a87f9f54e9ef1711e00d80467 +MISC metadata.xml 408 SHA256 f8bde5afc39419a3b24fd0c99e19cec9e2d50601759dac0062875a89ea06d5fa SHA512 039f6849c28f9c21b7e2854314fcd0ff9b356b3983e68c0a4a2eb8e96893475e4333f7408c233f8f9651c4613a2683a63a4f5da58d11555d34712f9ebe0a2f6b WHIRLPOOL c3bcc6aab04716086320e35e6f147f2a969b1bc54520566e82bfaa1c4549c96c825ab3c7800023185ec569bc375ac1afe6c69a8baa2c7b2cc20c76686c8f7b94 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..048a72617b0b --- /dev/null +++ b/games-rpg/daimonin-client/daimonin-client-0.10.5-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 ~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/daimonin-client-0.10.5.ebuild b/games-rpg/daimonin-client/daimonin-client-0.10.5.ebuild new file mode 100644 index 000000000000..70df84a87515 --- /dev/null +++ b/games-rpg/daimonin-client/daimonin-client-0.10.5.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils autotools games + +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 x86" +IUSE="music debug" + +RDEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-image[png] + dev-games/physfs + net-misc/curl" +DEPEND="${RDEPEND} + music? ( app-arch/unzip )" + +S=${WORKDIR}/client/make/linux + +src_unpack() { + unpack ${MY_P}.tar.gz + if use music ; then + cd client/media + rm -f * + unpack ${PN}-AllMusic-20100827.zip + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-nozlib.patch + rm ../../src/include/z{lib,conf}.h + sed -i \ + -e 's:$(d_datadir):$(DESTDIR)$(d_datadir):' \ + -e '/PROGRAMS/s:daimonin-updater::' \ + Makefile.am \ + || die "sed failed" + eautoreconf + cd ../../src + epatch "${FILESDIR}"/${P}-datadir.patch +} + +src_configure() { + egamesconf \ + --disable-simplelayout \ + $(use_enable debug) +} + +src_install() { + default + cd ../.. + dodoc README* + newicon bitmaps/pentagram.png ${PN}.png + make_desktop_entry daimonin Daimonin + prepgamesdirs +} 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 new file mode 100644 index 000000000000..f2fc757abd27 --- /dev/null +++ b/games-rpg/daimonin-client/files/daimonin-client-0.10.5-datadir.patch @@ -0,0 +1,28 @@ +--- 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 + * defaults are (or should be). */ +- if (!PHYSFS_addToSearchPath(PHYSFS_getBaseDir(), 1)) ++ if (!PHYSFS_addToSearchPath(SYSPATH, 1)) + { + LOG(LOG_MSG, "%s\n", PHYSFS_getLastError()); + } +@@ -2545,13 +2545,13 @@ + + /* Prepend the user dir to the search path. This means files are read from + * this location in preference to the defaults. */ +- if (strcmp(PHYSFS_getBaseDir(), home)) +- { ++ /*if (strcmp(PHYSFS_getBaseDir(), home)) ++ {*/ + if (!PHYSFS_addToSearchPath(home, 0)) + { + LOG(LOG_ERROR, "%s\n", PHYSFS_getLastError()); + } +- } ++ //} + + /* Prepend any add-on packs to the search path. This means files are read + * from these locations in preference to the defaults and the user dir. */ 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 new file mode 100644 index 000000000000..62a6e5fb1302 --- /dev/null +++ b/games-rpg/daimonin-client/files/daimonin-client-0.10.5-nozlib.patch @@ -0,0 +1,40 @@ +--- 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 + + daimonin_SOURCES = \ +- ../../src/adler32.c \ + ../../src/anim.c \ + ../../src/book.c \ + ../../src/buddy.c \ + ../../src/chatfilter.c \ + ../../src/client.c \ + ../../src/commands.c \ +- ../../src/crc32.c \ + ../../src/dialog.c \ + ../../src/event.c \ + ../../src/filewrap.c \ + ../../src/font.c \ + ../../src/group.c \ + ../../src/ignore.c \ +- ../../src/inffast.c \ +- ../../src/inflate.c \ +- ../../src/inftrees.c \ + ../../src/interface.c \ + ../../src/inventory.c \ + ../../src/item.c \ +@@ -35,11 +30,9 @@ + ../../src/sprite.c \ + ../../src/textwin.c \ + ../../src/tile_stretcher.c \ +- ../../src/uncompr.c \ + ../../src/wrapper.c \ +- ../../src/widget.c \ +- ../../src/zutil.c +-daimonin_LDADD = -lSDL_mixer -lSDL_image @SDL_LIBS@ @EXTRA_LIBS@ @PHYSFS_LIBS@ ++ ../../src/widget.c ++daimonin_LDADD = -lSDL_mixer -lSDL_image @SDL_LIBS@ @EXTRA_LIBS@ @PHYSFS_LIBS@ -lz + daimonin_OBJDIR = objs + + daimonin_updater_SOURCES = \ diff --git a/games-rpg/daimonin-client/metadata.xml b/games-rpg/daimonin-client/metadata.xml new file mode 100644 index 000000000000..6794421a86c3 --- /dev/null +++ b/games-rpg/daimonin-client/metadata.xml @@ -0,0 +1,14 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + Install extra music + + + daimonin + + -- cgit v1.2.3