From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- games-roguelike/hengband/Manifest | 6 + .../hengband/files/hengband-1.6.2-added_faq.patch | 163 +++++++++++++++++++++ .../hengband/files/hengband-1.6.2-ovflfix.patch | 11 ++ games-roguelike/hengband/hengband-1.6.2-r1.ebuild | 62 ++++++++ games-roguelike/hengband/metadata.xml | 11 ++ 5 files changed, 253 insertions(+) create mode 100644 games-roguelike/hengband/Manifest create mode 100644 games-roguelike/hengband/files/hengband-1.6.2-added_faq.patch create mode 100644 games-roguelike/hengband/files/hengband-1.6.2-ovflfix.patch create mode 100644 games-roguelike/hengband/hengband-1.6.2-r1.ebuild create mode 100644 games-roguelike/hengband/metadata.xml (limited to 'games-roguelike/hengband') diff --git a/games-roguelike/hengband/Manifest b/games-roguelike/hengband/Manifest new file mode 100644 index 000000000000..06ea699fe583 --- /dev/null +++ b/games-roguelike/hengband/Manifest @@ -0,0 +1,6 @@ +AUX hengband-1.6.2-added_faq.patch 6371 BLAKE2B 322267980e2b9ddc75245528a1a29fae0936e6cb3a6d87287e4e4d475090c37c47b9d8268fbe52cc5e6725f6a2d034d28c4fdecba57a23137384340a5e5c3fcb SHA512 254283e117f6bf7d050ec152d7bb04cdcbd23235f56da8ed8aa587e23ef21de0a556cac4027e8a3b0fa32d66448c96ac18e9e76d242b9d1a921befcaf78195a1 +AUX hengband-1.6.2-ovflfix.patch 236 BLAKE2B 7a2fc1e76fb1d4755cb4d45ddd0f7f48ecf38e21b769196ccfeabe7cadaacd278c7e3c25e64711f7d362e310247773fb1e907e402a0b1f11a7ac0065325415ad SHA512 0e51671bce72cd0ab1109111556bfda71ef043475c033548ffd5873d9329597e705b9e6459d5e95369df5f5501e2553f9109622d522534ea43f787087160e3cf +DIST hengband-1.6.2-mispellings.patch.gz 11964 BLAKE2B a409161c70d655078396c8774b251cbb467802eaa9d6c96322a49ba1956fb3c9a5ba24d8de74907afea96c1df62fdfee3fe581a45e19b77e51f917e862c63531 SHA512 73838981616e09deca7afc3911386e665ac38fafcdcea42d87bc41e4bc187551278efeaa608a772a444e0c178c3f990e16dd302b6a8dc6dfdd8625d463b9b3b5 +DIST hengband-1.6.2.tar.bz2 2029169 BLAKE2B 3a25a829f3fba8bd265d0b13fc81becbbf505dcb4efd78010d6cc8db29bb4be22911d18bf7c4496e4b408c3742aa12c36060bacd62bb79de0be4fa5c36191afa SHA512 24c67f00556d7899b4f18f3071c4bd50bc754566c4c4736c18248ced243b1332e6c84381250c1a59358e7a914e5d62db05c47ab0921bcf40fbd6cfe4b6717520 +EBUILD hengband-1.6.2-r1.ebuild 1453 BLAKE2B 3d256fa9e2330d39b0afc03c5f372602af8ae67a6f7bfef186416711e135a0d60cce152a58d955dd8079188bfe290f3e92b1166a2d50444fc27771566d64e4bb SHA512 0f122fb11e595edb3ff54a9ff172ac30d53bc86efeaa0cbc33bd265ceb17fa016ed38015516066c8f36ecd498c78ca426d9ce6d927258ac485ae16134f201cdc +MISC metadata.xml 334 BLAKE2B 26c821bfd5ecfb9e843418084ffc417e2b22f3c371b442e9473a85ad45aed5861259194c1c1d48dac929d60019d4b040f751afb32caced1aa094086d07d098b6 SHA512 ec8a4116d1ad2f15b2dad0148f912da9123d937cd724eaac00ff20541d64b7ac37190f617b8e82376c571a47cb6b886fc269a477c2c6b4aaa0859204f716add9 diff --git a/games-roguelike/hengband/files/hengband-1.6.2-added_faq.patch b/games-roguelike/hengband/files/hengband-1.6.2-added_faq.patch new file mode 100644 index 000000000000..0e75022145cb --- /dev/null +++ b/games-roguelike/hengband/files/hengband-1.6.2-added_faq.patch @@ -0,0 +1,163 @@ +diff -Naur hengband-1.6.2-orig/lib/help/faq.txt hengband-1.6.2-fixed/lib/help/faq.txt +--- hengband-1.6.2-orig/lib/help/faq.txt 1970-01-01 03:00:00.000000000 +0300 ++++ hengband-1.6.2-fixed/lib/help/faq.txt 2004-12-07 08:12:53.000000000 +0300 +@@ -0,0 +1,147 @@ ++ ++========= Hengband FAQ ========== ++ ++ ++Q. I want to play as an Android, Balrog, Golem, Skeleton, Zombie, ++ Spectre, or Ent. But I can't find any scroll of satisfy hunger. ++ And Berserkers no longer have racial ability of satisfy hunger. ++ How do I avoid starvation? ++ ++A. Scroll of Satisfy Hunger and Berserker's ability of Satisfy Hunger ++ are obsoleted. And races which previously relyed on Satisfy Hunger ++ have new sources of nutrition now; Android can quaff oil. Balrogs ++ can sacrifice human corpse using the 'E'at command. Golems, ++ Skeletons, Zombies, and Spectres can absorb mana from staves and ++ wands using the 'E'at command. Ents can gain enough nutrition from ++ potions. ++ ++ ++Q. I got through the Yeek cave and I headed into the wilderness....and ++ I'm still there searching endlessly down one road after another ++ looking for a town. Where are other towns and dungeons? ++ ++A. You need to use the global wilderness map (press the < key on the ++ ground level). This gives you a larger map of the world, where you ++ can travel to other towns and dungeons. By the way, you should ++ read the readme_eng.txt and the on-line help. ++ ++ ++Q. I'm playing as a berserker, and cannot read scrolls. How do I ++ remove curse? ++ ++A. You can simply 't'ake off cursed equipments. Since cursed ++ equipments are strongly sticking, you need to try 't'ake off ++ command many times. ++ ++ ++Q. I know Berserkers cannot use scrolls, and rods. How do I recall ++ from dungeon? Maybe I need to travel completely on foot?!! ++ ++A. Berserkers gain a class power 'Recall' at level 10. Press the ++ 'U'(original keyset) or 'O'(Roguelike keyset) to use class power. ++ ++ ++Q. Why Ninja have Iron Spikes at the start? ++ ++A. Ninja can use Iron Spikes as shuriken; they can throw it as good ++ missile weapon. Simply use 'v' command. ++ ++ ++Q. I'm at normal speed (+0). But normal speed monsters sometimes do ++ double or even triple move! ++ ++A. On Hengband, amount of energy needed for a move is somewhat ++ randomized. This method of speed system is an important feature of ++ Hengband, and is simulating real fighting. So always expect that ++ your enemy can get two or three move. Don't fight when your HP is ++ low, if you don't want to get instakill! ++ ++ ++Q. I tried to dual wield two weapons. But I couldn't hit anything! ++ ++A. You need to practice your dual wielding skill(proficiency level) ++ and your weapon skills. Hitting high level monsters many times ++ will improve your skills. Note that the information command '~' ++ reveals your proficiency levels. ++ ++ ++Q. How do skills(proficiency levels) work? ++ ++A. Weapon proficiency levels and dual wielding proficiency levels ++ increase your to-hit bonus. Spell proficiency levels decrease fail ++ rate and mana consumption rate of spells. Riding proficiency level ++ gives you more speed when you are riding on a high speed monster, ++ and decreases risk of falling from your mount. ++ ++ ++Q. How do I increase proficiency level? ++ ++A. Proficiency level of a weapon will increase when you hit a monster ++ whose level is high enough compared with your character level. ++ Proficiency level of a spell will increase when you cast the spell ++ at the dungeon level deep enough compared with the spell level. ++ Needed condition to increase riding proficiency level is rather ++ complex; Generally, you need to hit a monster whose level is high ++ enough compared with current riding proficiency level or to shoot a ++ monster when ride on high level mount. ++ ++ ++Q. How do I ride on a monster? ++ ++A. At first, summon, charm or capture some suitable monster. Then use ++ pet menu command 'p'. ++ ++ ++Q. How to use Capture Ball? ++ ++A. Just equip it and activate 'A' to a dying monster. ++ ++ ++Q. I cannot hold a weapon and a shield without losing control of my ++ horse. My horse runs aimlessly! ++ ++A. You cannot directly control your mount unless you use one hand to ++ control your mount. But you can command your mount. Just use 'p' ++ command, and give your mount a target. The horse which was given a ++ target will no longer run around aimlessly. ++ ++ ++Q. Where is the score server? And how do I register my character ++ dumps? ++ ++A. Here;'http://hengband.sourceforge.jp/en/score.html'. ++ When you die, Hengband will ask you as 'Do you send score to the ++ world score sever?'. And if you answer 'y', Hengband will ++ automatically register your character dump and screen shot. ++ ++ ++Q. Are there spoiler for more details? ++ ++A. Yes. Henkma is writing spoiler page for Hengband; ++ 'http://www.kmc.gr.jp/~henkma/heng-e/index.html' ++ ++ ++Q. Who wrote Hengband? ++ ++A. Hengband is mainly based on ZAngband 2.2.8 Japanese version. ++ ZAngband 2.2.8 Japanese version was developed by Mitsuhiro Itakura, ++ based on both ZAngband 2.2.8 and Angband 2.8.3 Japanese version, ++ and has some original features, for example, Auto-picker, in ++ addition to simple translation. ++ ++ Hengband also includes codes from many other variants including ++ ToME, OAngband, etc... Mr.Hoge wrote the first original part of ++ Hengband. And currently, it is maintained by Hengband Development ++ Team including Mr.Hoge, Habu, Henkma, iks, Kuwa, Mogami and nsk. ++ ++ ++Q. Where is Hengband? ++ ++A. Here: http://hengband.sourceforge.jp/en/ ++ ++ ++ ++ Hengband FAQ written by Mogami ++ ++-- ++Updated : Hengband 1.5.4 +diff -Naur hengband-1.6.2-orig/lib/help/Makefile.am hengband-1.6.2-fixed/lib/help/Makefile.am +--- hengband-1.6.2-orig/lib/help/Makefile.am 2002-10-31 17:12:08.000000000 +0300 ++++ hengband-1.6.2-fixed/lib/help/Makefile.am 2005-11-22 11:59:58.000000000 +0300 +@@ -4,7 +4,7 @@ + attack.hlp attack.txt birth.hlp birth.txt \ + bldg.txt raceclas.hlp raceclas.txt command.hlp \ + command.txt commdesc.hlp commdesc.txt defend.hlp \ +- defend.txt dungeon.hlp dungeon.txt gambling.txt \ ++ defend.txt dungeon.hlp dungeon.txt faq.txt gambling.txt \ + general.hlp general.txt help.hlp helpinfo.txt \ + j_general.txt j_item1.txt j_item2.txt j_trans.txt \ + jattack.hlp jattack.txt jbirth.hlp jbirth.txt \ diff --git a/games-roguelike/hengband/files/hengband-1.6.2-ovflfix.patch b/games-roguelike/hengband/files/hengband-1.6.2-ovflfix.patch new file mode 100644 index 000000000000..47bb53cf771a --- /dev/null +++ b/games-roguelike/hengband/files/hengband-1.6.2-ovflfix.patch @@ -0,0 +1,11 @@ +--- src/effects.c.old 2010-10-28 11:51:31.000000000 +0200 ++++ src/effects.c 2010-10-28 11:51:59.000000000 +0200 +@@ -5191,7 +5191,7 @@ + } + else + { +- char buf[10]; ++ char buf[15]; + + if (p_ptr->inside_arena) + #ifdef JP diff --git a/games-roguelike/hengband/hengband-1.6.2-r1.ebuild b/games-roguelike/hengband/hengband-1.6.2-r1.ebuild new file mode 100644 index 000000000000..8559444d7075 --- /dev/null +++ b/games-roguelike/hengband/hengband-1.6.2-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils autotools games + +DESCRIPTION="An Angband variant, with a Japanese/fantasy theme" +HOMEPAGE="http://hengband.sourceforge.jp/en/" +SRC_URI="mirror://sourceforge.jp/hengband/10331/${P}.tar.bz2 + mirror://gentoo/${P}-mispellings.patch.gz" + +KEYWORDS="~x86 ~x86-fbsd" +LICENSE="Moria" +SLOT="0" +IUSE="X l10n_ja" + +RDEPEND=">=sys-libs/ncurses-5:0 + X? ( x11-libs/libX11 )" +DEPEND="${RDEPEND} + X? ( x11-libs/libXt )" + +src_prepare() { + # Removing Xaw dependency as is not used + sed -i \ + -e '/Xaw/d' src/main-xaw.c \ + || die + sed -i \ + -e 's|root\.|root:|' lib/*/Makefile.in \ + || die + sed -i \ + -e 's:/games/:/:g' configure.in \ + || die + epatch \ + "../${P}"-mispellings.patch \ + "${FILESDIR}/${P}"-added_faq.patch \ + "${FILESDIR}"/${P}-ovflfix.patch + mv configure.in configure.ac || die + eautoreconf +} + +src_configure() { + local myconf + use l10n_ja || myconf="--disable-japanese" + + egamesconf \ + --with-setgid=${GAMES_GROUP} \ + $(use_with X x) \ + ${myconf} +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + if use l10n_ja ; then + dodoc readme.txt autopick.txt readme_eng.txt autopick_eng.txt + else + newdoc readme_eng.txt readme.txt + newdoc autopick_eng.txt autopick.txt + fi + prepgamesdirs + # FIXME: we need to patch around this BS + fperms g+w "${GAMES_DATADIR}"/${PN}/lib/{apex,data,save,user} +} diff --git a/games-roguelike/hengband/metadata.xml b/games-roguelike/hengband/metadata.xml new file mode 100644 index 000000000000..4ced683a10c0 --- /dev/null +++ b/games-roguelike/hengband/metadata.xml @@ -0,0 +1,11 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + hengband + + -- cgit v1.2.3