diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-06-14 23:08:35 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-06-14 23:08:35 +0000 |
commit | 5603f7189498de26216cdb89f1e21048d64cbf45 (patch) | |
tree | a0f6013ac378eb755452535a0295a4b2ee5d45a6 /games-rpg | |
parent | version bump (diff) | |
download | historical-5603f7189498de26216cdb89f1e21048d64cbf45.tar.gz historical-5603f7189498de26216cdb89f1e21048d64cbf45.tar.bz2 historical-5603f7189498de26216cdb89f1e21048d64cbf45.zip |
convert to python-single-r1
Package-Manager: portage-2.2.0_alpha179/cvs/Linux x86_64
Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'games-rpg')
-rw-r--r-- | games-rpg/dragonhunt/ChangeLog | 7 | ||||
-rw-r--r-- | games-rpg/dragonhunt/Manifest | 27 | ||||
-rw-r--r-- | games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild | 93 |
3 files changed, 110 insertions, 17 deletions
diff --git a/games-rpg/dragonhunt/ChangeLog b/games-rpg/dragonhunt/ChangeLog index 60a90dd6cbab..76f3db8892b3 100644 --- a/games-rpg/dragonhunt/ChangeLog +++ b/games-rpg/dragonhunt/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-rpg/dragonhunt # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/dragonhunt/ChangeLog,v 1.7 2013/02/07 22:12:52 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/dragonhunt/ChangeLog,v 1.8 2013/06/14 23:08:31 hasufell Exp $ + +*dragonhunt-3.56-r1 (14 Jun 2013) + + 14 Jun 2013; Julian Ospald <hasufell@gentoo.org> +dragonhunt-3.56-r1.ebuild: + convert to python-single-r1 07 Feb 2013; Ulrich Müller <ulm@gentoo.org> dragonhunt-3.56.ebuild: Move Creative Commons licenses to shorter names. diff --git a/games-rpg/dragonhunt/Manifest b/games-rpg/dragonhunt/Manifest index 2ed1d76fba43..bb635a6e32e6 100644 --- a/games-rpg/dragonhunt/Manifest +++ b/games-rpg/dragonhunt/Manifest @@ -1,24 +1,19 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 -DIST Dragon_Hunt-3.56.tar.gz 2170718 SHA256 70a22937fd002f2d82d8998623b6ec101fadfbafc4e0d1857aa0686c6bf1eba9 +DIST Dragon_Hunt-3.56.tar.gz 2170718 SHA256 70a22937fd002f2d82d8998623b6ec101fadfbafc4e0d1857aa0686c6bf1eba9 SHA512 86ca32436088e8cda8993e21ebe6180f8361eb8bf5e052b3744a1db50073826118d1db657d713c7d75cd78c50c78c940caaf7adc5d31ad895d02a44f82b1e72a WHIRLPOOL c19fb4fedaeb62a65d8bf3938f8f629394ab4b1d8d0ccb1c88ebeac280a596ae7a93f34741d2e2c998d863e37bfebe95fe070f3d017202bf3b3eb35712a6598b +EBUILD dragonhunt-3.56-r1.ebuild 2634 SHA256 2a92e7b82a9a09f00e68c269f227683bdcd6a12a7068bc4a45fd0710722ae654 SHA512 fa5eeab47779ebc643980a84bffdaab458146a05c58dd784f6506f7f04b9403a965b71ec42f9d29b42a09e773af43c4d67cc1197f567d50e3a5fa712d821ddd8 WHIRLPOOL 3d27697c7c27dd3e9bc6fd560114cc7d8e87f8cfd06edc2aba7496676f934a049ad5022fbce48b0c4b694ae72a388c2fbac7ba22a73242375434cf3660dc6613 EBUILD dragonhunt-3.56.ebuild 2379 SHA256 ba8cad045c2b624e83d94f10b205c9059213d93e8f3146ac6172ac727387d0eb SHA512 6a3c84e546c681fd41d83b48e363b5d3d1300288b7fc12acb20f4665a8ae4cf900ae896db896621ecbc8835a13b6eb8bbabd7c7b4761a0fb92133bf0e1f8c538 WHIRLPOOL 641b2aaac4fafb7f40a5728122cdb42b1f6db6ac8a7d15a9baffa886a3971f7009bd9db10a2ad066d385f267e3d93e654c8279f3764d000ef97ad41b2b993842 -MISC ChangeLog 1019 SHA256 d52741fc4bb487d830d5aa3df4a8a52950202b0efe0320a6fd1b445738b0178d SHA512 6586c655ac552417f3940e22af889200ede4edffe66e5026e3e1659d47a334de341a2f8decde4fe2a9b297af10816a7febbe1be51014c32dabb51def84c77137 WHIRLPOOL e8626d55c697445fbb9d01b03ea9d032cf82d3649c7045d371311227cac750e47d89d885c91d444753a97798a7238c9be4a0716d33dc248d308d443376f04b43 +MISC ChangeLog 1169 SHA256 4a663ccc7815e1a688965cfc0544ec1661deca369c9285fb03299de6da42bf0d SHA512 a53cb30328de4ac0382495f807b860e4912949832183404378cda7e19dadb2ed21799b83ace0941c2e75f8fbc1ba7e3a4336ca208a5eb1db85f70bd850816f0a WHIRLPOOL 0a9714c49778e09a6310569eb9a524e2ce260d3ffebebab33e76301b101c9cda912cce20c4ee8ca877fa6929efe3659d390ec9fe3a7b7a1bf1bdf9f2ae098a22 MISC metadata.xml 159 SHA256 c3c3613f26371d08a639f099b4f0d23f1efa7477c4414784a274edfd853eeec7 SHA512 74b346702ad5174ce55dd5897c9f6d5ca2cd1bebfd6d139cdb54a30ea86f5232711877f449c422f16bb4c699c46388f8520eff96a0befb482570ea85f37e811a WHIRLPOOL 2dfcd1dbc8fddbb3e5c469bb2ce3e3135397341dc184602ea212b3abfc4b194e3dcafe519c68ff95eda9a08561df3fa057796264f1f5978a00621569e5b2b36d -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.19 (GNU/Linux) +Version: GnuPG v2.0.20 (GNU/Linux) -iQIcBAEBCAAGBQJRFCfRAAoJEDxpGckxwJCBYQwP/0wopofgskKeHhY+U5ObVdKf -dpfma17oVEkr8r7QeU8QQ6IKyKgzg/3xgxynWqqdLsFreIG2yCEqq5ZffIdUd3Cy -v/nKoCJqGotbORp8LETGW65TGZWgRx9FHzieVY/mkk4quG/zeTHuwI60WKL/325u -B1eKa5xs4vB7QATV1Z2+LmfsWIR5z8U5+0iqu8Jn0GLpJHABuk8j55O0fTD8rb6D -OF1fQWAJcA8DExM/XTrO838hifwPg+3zd7R1ydMVmObNP405TYqyekTACCPgyyjO -VcsTVpNjuemJvvOoLtRvDpSfcUwkv85c0lWGMbl+7CbNsEZzXgqHi32IQOHly5LZ -d8TiJq1BX8DQlqaBWySJkEW9hbNsSmIltmZUWDyk7pbSIFCvyaWUue7eBIpfHLs5 -FGiWvsQ36zRzQ3k8cpe7N5qFNPNM8RW6CGgJnawIcIUdbYue43LMFb3c9gWYqY8c -idEputq3dCvr8f2dkbUEYcyHW08z7qx4GE4Jx33SNQwnIWTtPvQX1Len501JUze9 -SxThhbX92SG8O4sJNlpGn3sdomtGzbtTmI9aKWpeC0hgAguQWxSBzc/E/POSf7SU -u7WWn9fS46Lw2JJNrtXJrixdcACD0ji89fLloP9g0aim9St0U058wTbVyToLn21e -4XylMgOKSWC+M7J2Hrnl -=0ptp +iQEcBAEBCAAGBQJRu6JzAAoJEFpvPKfnPDWzFssH/3e2tQhV5gt8KnEc1RYgAbQX +U8weI6o/9uvpc3Y4hmLXwW12Zzil5KD9N/mpu/EQRw3sUEsmjHE8VJY00jtGfspa +PmUtZq0Y2m7Zf5+IA8cC5SfKC5SV4on2gBU9nfjdjNFQ0XHhMz30FqAK6pw76pOD +DQ+bx5eV4euc1Q9kpcN87PTfQfSgN3bpt4qWhIHWNWFcG9SGWGIQLE3nmc19Q6hA +zSIrKNH/AHWFD+KsgstQmsgUw5QqkLMZelWGobJGHeD3uyhZSVsymFsszhSE73K3 +yhbZ6Rg1hp08Kgq+X5zYPs0OyRKwu/j3MnC+Jrv0IA1UKAfTR8V6PIHyAjdW2T4= +=vj5X -----END PGP SIGNATURE----- diff --git a/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild b/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild new file mode 100644 index 000000000000..d3e0f61eb0d4 --- /dev/null +++ b/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/dragonhunt/dragonhunt-3.56-r1.ebuild,v 1.1 2013/06/14 23:08:31 hasufell Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_5 python2_6 python2_7 ) +inherit eutils python-single-r1 games + +MY_P="Dragon_Hunt-${PV}" +DESCRIPTION="A simple graphical RPG" +HOMEPAGE="http://emhsoft.com/dh.html" +SRC_URI="http://emhsoft.com/dh/${MY_P}.tar.gz" + +LICENSE="GPL-2 CC-SA-1.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} + dev-python/pygame[${PYTHON_USEDEP}]" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + games_pkg_setup + python-single-r1_pkg_setup +} + +src_prepare() { + # Where to look for modules to load. + sed -i "s:\.\./modules/:${GAMES_DATADIR}/${PN}/:" \ + code/g.py \ + code/map_editor.py \ + code/rpg.py \ + || die "Could not change module path." + + # Where to look for keybinding + sed -i "s:\.\./settings:${GAMES_SYSCONFDIR}/${PN}/settings:" \ + code/g.py \ + || die "Could not change settings.txt directory" + + # Save games in ~/.${PN}/. + sed -i \ + -e "s:^\(from os import.*\):\1\, environ:" \ + -e "s:g.mod_dir.*\"/saves/\?\":environ[\"HOME\"] + \"/.${PN}/\":" \ + code/g.py code/loadgame.py \ + || die "Could not change savegames location." + + # Save maps in ~/. + sed -i \ + -e "s:^\(from os import.*\):\1\, environ:" \ + -e "s:g.mod_dir.*\"map\.txt\":environ[\"HOME\"]\ +\ \"/dh_map.txt\":" \ + code/map_editor.py \ + || die "Could not change map location." +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins -r modules/* || die "doins modules failed" + + insinto "${GAMES_SYSCONFDIR}"/${PN} + doins settings.txt || die "doins settings.txt failed" + + insinto "$(games_get_libdir)"/${PN} + doins code/*.py || die "doins code failed" + + games_make_wrapper ${PN} "${EPYTHON} ./rpg.py" "$(games_get_libdir)"/${PN} + games_make_wrapper ${PN}-mapeditor "${EPYTHON} ./map_editor.py" \ + "$(games_get_libdir)"/${PN} + + newicon modules/default/images/buttons/icon.png ${PN}.png + make_desktop_entry ${PN} "Dragon Hunt" + make_desktop_entry ${PN}-mapeditor "Dragon Hunt - Editor" + + dodoc README.txt docs/{Changelog,Items.txt,example_map.txt,tiles.txt} + dohtml docs/*.html + + python_optimize "${ED}$(games_get_libdir)"/${PN} \ + "${ED}${GAMES_DATADIR}/${PN}/Dark Ages/data/make_map.py" + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + echo + elog "If you use the map editor then note that maps will be saved as" + elog "~/dh_map.txt and must be move to the correct module directory" + elog "(within ${GAMES_DATADIR}/${PN}) by hand." + echo +} |