diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-rpg/daimonin-client | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-rpg/daimonin-client')
6 files changed, 222 insertions, 0 deletions
diff --git a/games-rpg/daimonin-client/Manifest b/games-rpg/daimonin-client/Manifest new file mode 100644 index 000000000000..73c0b39cbdf7 --- /dev/null +++ b/games-rpg/daimonin-client/Manifest @@ -0,0 +1,7 @@ +AUX daimonin-client-0.10.5-datadir.patch 983 BLAKE2B 810f36eed097c19a0d77ea89d60a4ac9acc83e2fe74d4563d77789fbfbdd5d9823c0e9271bcd113c00e6f6044c910338596c967d3fd68304863d0f9008da3324 SHA512 eb4748894c0722ee112efc3953a14784eb13237919813c057afddc09104f250f346c29a1a224bd3ce8a44b22af4fa2b59f826aa5eb96fb45a51f276f743fa3fa +AUX daimonin-client-0.10.5-nozlib.patch 1094 BLAKE2B d617dbee2d2a23eff6b6330c59c2fe7501ec06437d5d179611ea9ab50a2e15bacc7e948d3cd114bf1745d6649e80f503b8e364752c9f689c4f95170d3ebf74bb SHA512 31ef58b81c669f7a8c685355dfb37d85383891db4534c3b62b0d9f5beaed6cb6d4be34657acd109287dc85d83a6c81950322667729b36552394c17a9b0bfc989 +AUX daimonin-client-0.10.8-fix-build-system.patch 2538 BLAKE2B 1eb570088a9bd44489ce63eeef445a3d9b27f421abb28cad9f83eb622b7da33ed94ec9265f0c0d59744521367dd82d6bc4ba7001e1fd938629b3ec4bb0f9f8ee SHA512 baf333aad05a662bf38e6579cb6f8bfcb0b1fbf2a48191df28a96fe3d20585f7a2ad211d96107a3f99245bc99b877ca140b450111e7466d866e07d32199c737d +DIST daimonin-client-0.10.8.zip 51894462 BLAKE2B 9803b0e597134fa605ffc4e38b2f6f58cd76d45141bb0d5c5387e9b507c4b80b4a566d266b622df7ea38b3e9eb00e839981bcb999ac2d14e59a8cff37340f6fa SHA512 f4f5891697f96a60a8ee79973b0172b544cbae25b2d8787e0a4e9113d95be3b41b8c29c80ba5cbaf7548055e4c847456fa364346489f4d6ad165b984cfd64531 +DIST daimoninMusicLQ20100827.zip 24293301 BLAKE2B 35ee421c0db8f0ff29768b58af8fbc1d804d24534b8558631c97cf36b624999d0e5f422cd32e4a13bc09765b183bfd52270b33f2614023202211399e3d5da484 SHA512 f24bba24c0e9a79469511315c608c464568f3ee0dc05b3d83c791512fa51eae07669dc175e7672cc8b31764a7bdff5c975ac2b13e2d7b0e5287717e188f1d439 +EBUILD daimonin-client-0.10.8.ebuild 1483 BLAKE2B c67064029f915a15e5be0ce393275a05163ccd6ca9d16f1fc73fa9ae153b2ce85b55c2d6bb255b0f149bc60d75c2c902f1476859eac6b10bf92d29f2482bca6c SHA512 46898d7d1b725f963ceaf4e12ea8833feb37ae7e294f589789b87a1c51fd0bb5d404a6442a799ac59e061689ff6752482f3d623477cd1a27a6ffd7e4b1683a31 +MISC metadata.xml 408 BLAKE2B d816c7d0cd53dc68147f8a23d89d46da21defb09e0b9717b777b23881189ec61ae82ed3bb42dbccadd94a34421c6b92755bb20cdb60bd2a17826dcc128332930 SHA512 039f6849c28f9c21b7e2854314fcd0ff9b356b3983e68c0a4a2eb8e96893475e4333f7408c233f8f9651c4613a2683a63a4f5da58d11555d34712f9ebe0a2f6b diff --git a/games-rpg/daimonin-client/daimonin-client-0.10.8.ebuild b/games-rpg/daimonin-client/daimonin-client-0.10.8.ebuild new file mode 100644 index 000000000000..3ee1bd720d75 --- /dev/null +++ b/games-rpg/daimonin-client/daimonin-client-0.10.8.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils + +DESCRIPTION="A graphical 2D tile-based MMORPG" +HOMEPAGE="http://daimonin.sourceforge.net/" +SRC_URI="https://dev.gentoo.org/~soap/distfiles/${P}.zip + music? ( mirror://sourceforge/daimonin/daimoninMusicLQ20100827.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 + sys-libs/zlib:=" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/daimonin-code-8183-trunk/client/make/linux + +src_unpack() { + unpack ${P}.zip + if use music; then + rm -f daimonin-code-8183-trunk/client/media/* || die + cd daimonin-code-8183-trunk/client || die + unpack daimoninMusicLQ20100827.zip + fi +} + +src_prepare() { + eapply "${FILESDIR}"/${PN}-0.10.5-nozlib.patch + eapply "${FILESDIR}"/${PN}-0.10.8-fix-build-system.patch + + pushd ../../src >/dev/null || die + eapply "${FILESDIR}"/${PN}-0.10.5-datadir.patch + popd >/dev/null || die + + eapply_user + + # remove bundled zlib + rm ../../src/include/z{lib,conf}.h || die + + mv configure.{in,ac} || die + eautoreconf +} + +src_configure() { + econf \ + --disable-simplelayout \ + $(use_enable debug) +} + +src_install() { + default + + cd ../.. || die + dodoc README* + newicon bitmaps/pentagram.png "daimonin.png" + make_desktop_entry "daimonin" "Daimonin" "daimonin" "Game;Amusement" +} 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/files/daimonin-client-0.10.8-fix-build-system.patch b/games-rpg/daimonin-client/files/daimonin-client-0.10.8-fix-build-system.patch new file mode 100644 index 000000000000..a6171896bfac --- /dev/null +++ b/games-rpg/daimonin-client/files/daimonin-client-0.10.8-fix-build-system.patch @@ -0,0 +1,64 @@ +--- a/Makefile.am ++++ b/Makefile.am +@@ -1,5 +1,5 @@ + daimonindir=$(d_bindir) +-daimonin_PROGRAMS = daimonin daimonin-updater ++daimonin_PROGRAMS = daimonin + + daimonin_SOURCES = \ + ../../src/adler32.c \ +@@ -72,30 +72,30 @@ + # echo '***'; \ + # exit 42; \ + # fi; +- $(MKDIR) -p $(d_datadir)/sfx +- $(MKDIR) -p $(d_datadir)/man +- $(MKDIR) -p $(d_datadir)/media +- $(MKDIR) -p $(d_datadir)/cache +- $(MKDIR) -p $(d_datadir)/logs +- $(MKDIR) -p $(d_datadir)/gfx_user +- $(MKDIR) -p $(d_datadir)/srv_files +- $(MKDIR) -p $(d_datadir)/bitmaps +- $(MKDIR) -p $(d_datadir)/icons +- $(MKDIR) -p $(d_datadir)/settings +- $(MKDIR) -p $(d_datadir)/update +- $(CP) ../../sfx/*.* $(d_datadir)/sfx +- $(CP) -R ../../man/* $(d_datadir)/man +- $(CP) ../../media/*.* $(d_datadir)/media +- $(CP) ../../cache/*.* $(d_datadir)/cache +- $(CP) ../../bitmaps/* $(d_datadir)/bitmaps +- $(CP) ../../icons/* $(d_datadir)/icons +- $(CP) -R ../../settings/*.* $(d_datadir)/settings +- $(CP) ../../srv_files/*.* $(d_datadir)/srv_files +- $(CP) ../../update/version $(d_datadir)/update +- $(CP) ../../gfx_user/*.* $(d_datadir)/gfx_user +- $(CP) ../../daimonin.p0 $(d_datadir) +- $(CP) ../../License $(d_datadir) +- $(CP) ../../archdef.dat $(d_datadir) ++ $(MKDIR) -p $(DESTDIR)$(d_datadir)/sfx ++ $(MKDIR) -p $(DESTDIR)$(d_datadir)/man ++ $(MKDIR) -p $(DESTDIR)$(d_datadir)/media ++ $(MKDIR) -p $(DESTDIR)$(d_datadir)/cache ++ $(MKDIR) -p $(DESTDIR)$(d_datadir)/logs ++ $(MKDIR) -p $(DESTDIR)$(d_datadir)/gfx_user ++ $(MKDIR) -p $(DESTDIR)$(d_datadir)/srv_files ++ $(MKDIR) -p $(DESTDIR)$(d_datadir)/bitmaps ++ $(MKDIR) -p $(DESTDIR)$(d_datadir)/icons ++ $(MKDIR) -p $(DESTDIR)$(d_datadir)/settings ++ $(MKDIR) -p $(DESTDIR)$(d_datadir)/update ++ $(CP) ../../sfx/*.* $(DESTDIR)$(d_datadir)/sfx ++ $(CP) -R ../../man/* $(DESTDIR)$(d_datadir)/man ++ $(CP) ../../media/*.* $(DESTDIR)$(d_datadir)/media ++ $(CP) ../../cache/*.* $(DESTDIR)$(d_datadir)/cache ++ $(CP) ../../bitmaps/* $(DESTDIR)$(d_datadir)/bitmaps ++ $(CP) ../../icons/* $(DESTDIR)$(d_datadir)/icons ++ $(CP) -R ../../settings/*.* $(DESTDIR)$(d_datadir)/settings ++ $(CP) ../../srv_files/*.* $(DESTDIR)$(d_datadir)/srv_files ++ $(CP) ../../update/version $(DESTDIR)$(d_datadir)/update ++ $(CP) ../../gfx_user/*.* $(DESTDIR)$(d_datadir)/gfx_user ++ $(CP) ../../daimonin.p0 $(DESTDIR)$(d_datadir) ++ $(CP) ../../License $(DESTDIR)$(d_datadir) ++ $(CP) ../../archdef.dat $(DESTDIR)$(d_datadir) + @echo "*** Daimonin client successful installed in $(daimonindir)!" + @echo "*** Enter your install folder and type ./daimonin" + @echo "*** to start the game!" 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <use> + <flag name="music">Install extra music</flag> + </use> + <upstream> + <remote-id type="sourceforge">daimonin</remote-id> + </upstream> +</pkgmetadata> |