diff options
author | 2012-03-14 22:19:06 +0000 | |
---|---|---|
committer | 2012-03-14 22:19:06 +0000 | |
commit | 693b4b532eed472c36b9b120ce5e9e7ef8b75207 (patch) | |
tree | 3940b6b982e16142d6adcd4c3eb60aa1ffe24d9e /games-rpg | |
parent | games-misc/limbs-off: Ebuild for bug 408155 (diff) | |
download | sunrise-reviewed-693b4b532eed472c36b9b120ce5e9e7ef8b75207.tar.gz sunrise-reviewed-693b4b532eed472c36b9b120ce5e9e7ef8b75207.tar.bz2 sunrise-reviewed-693b4b532eed472c36b9b120ce5e9e7ef8b75207.zip |
games-rpg/dwarf-fortress: New Ebuild for bug 290294 thanks to _AxS_ Enlik and Tommy[D]
svn path=/sunrise/; revision=12797
Diffstat (limited to 'games-rpg')
-rw-r--r-- | games-rpg/dwarf-fortress/ChangeLog | 11 | ||||
-rw-r--r-- | games-rpg/dwarf-fortress/Manifest | 5 | ||||
-rw-r--r-- | games-rpg/dwarf-fortress/dwarf-fortress-0.34.05.ebuild | 93 | ||||
-rw-r--r-- | games-rpg/dwarf-fortress/files/dwarf-fortress-0.34.05-wrapper | 7 | ||||
-rw-r--r-- | games-rpg/dwarf-fortress/metadata.xml | 5 |
5 files changed, 121 insertions, 0 deletions
diff --git a/games-rpg/dwarf-fortress/ChangeLog b/games-rpg/dwarf-fortress/ChangeLog new file mode 100644 index 000000000..9db0190db --- /dev/null +++ b/games-rpg/dwarf-fortress/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for games-rpg/dwarf-fortress +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*dwarf-fortress-0.34.05 (14 Mar 2012) + + 14 Mar 2012; hasufell <julian.ospald@googlemail.com> + +dwarf-fortress-0.34.05.ebuild, +files/dwarf-fortress-0.34.05-wrapper, + +metadata.xml: + New Ebuild for bug 290294 thanks to _AxS_ Enlik and Tommy[D] + diff --git a/games-rpg/dwarf-fortress/Manifest b/games-rpg/dwarf-fortress/Manifest new file mode 100644 index 000000000..23069ed87 --- /dev/null +++ b/games-rpg/dwarf-fortress/Manifest @@ -0,0 +1,5 @@ +AUX dwarf-fortress-0.34.05-wrapper 279 RMD160 684a2cd795465f836abdda595dea26afa7107073 SHA1 e68c5d311794b6d539385a9db3e62c446927f6e0 SHA256 8e0fa9ef398cab6a780198feaa34f47d1263e8a7e1ff6c562739963322209257 +DIST df_34_05_linux.tar.bz2 11218076 RMD160 d01f2560981b51d10ee382c209a418ab2f5e5b6f SHA1 992e30a95b7271323b90254349d26083d54b3e48 SHA256 a4852863224c9276d30eb914f5b6d73ae3d4320ae91679c9cb2b572168d32919 +EBUILD dwarf-fortress-0.34.05.ebuild 2535 RMD160 7d2b7beec9ae78250a7554187cc97c2996cca034 SHA1 d8ae5e88bedf65e438e0017f99a1dca1ad832729 SHA256 5d618e381a4ba56aa06e3b9b1a09110f318e097935fdda3d32ad16ed24b45dd5 +MISC ChangeLog 373 RMD160 f900cdf1726953367ea924c218ddd64016488460 SHA1 e8597dd781273211b968efd041bea05962a79031 SHA256 045e1a5b36c473365f44d609da7cd933d0171ae2bcc16ac22dfde4ad840fda15 +MISC metadata.xml 208 RMD160 c18611400760e42bdd001905be0a63c2e963bcea SHA1 595816105cac477cb85792a182e15888029118a1 SHA256 c4841c87f0c2b9b5e679a27dc72180be8d508fb3f5df0fbab2ec2c805c0a6d82 diff --git a/games-rpg/dwarf-fortress/dwarf-fortress-0.34.05.ebuild b/games-rpg/dwarf-fortress/dwarf-fortress-0.34.05.ebuild new file mode 100644 index 000000000..fedc65bb9 --- /dev/null +++ b/games-rpg/dwarf-fortress/dwarf-fortress-0.34.05.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 + +inherit games versionator + +MY_PV=$(replace_all_version_separators _ "$(get_version_component_range 2-)") +MY_PN=df +MY_P=${MY_PN}_${MY_PV} + +DESCRIPTION="A single-player fantasy game" +HOMEPAGE="http://www.bay12games.com/dwarves" +SRC_URI="http://www.bay12games.com/dwarves/${MY_P}_linux.tar.bz2" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~x86 -*" +IUSE="" +# this is all precompiled +RESTRICT="strip" + +RDEPEND=" + virtual/glu + amd64? ( + app-emulation/emul-linux-x86-baselibs + app-emulation/emul-linux-x86-gtklibs + app-emulation/emul-linux-x86-opengl + app-emulation/emul-linux-x86-sdl + app-emulation/emul-linux-x86-soundlibs + app-emulation/emul-linux-x86-xlibs + ) + x86? ( + media-libs/fmod + media-libs/freetype + media-libs/libsdl[opengl,video,X] + media-libs/libsndfile + media-libs/openal + media-libs/sdl-image[png] + media-libs/sdl-ttf + sys-libs/ncurses + sys-libs/zlib + x11-libs/cairo[xcb,X] + x11-libs/gtk+:2[xinerama] + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/pango[X] + )" + +S=${WORKDIR}/${MY_PN}_linux + +src_install() { + # install config stuff + insinto "${GAMES_SYSCONFDIR}"/${PN} + doins -r data/init/* || die + + # keep saves, movies and objects directories + keepdir "${GAMES_STATEDIR}"/${PN}/save \ + "${GAMES_STATEDIR}"/${PN}/movies \ + "${GAMES_STATEDIR}"/${PN}/objects || die + + # install data-files and libs + local gamesdir="${GAMES_PREFIX_OPT}/${PN}" + insinto "${gamesdir}" + rm -r data/{movies,init} || die + doins -r raw data libs || die + + # install our wrapper + newgamesbin "${FILESDIR}"/${P}-wrapper ${PN} || die + + # install docs + dodoc README.linux *.txt || die + + # create symlinks for several directories we want to have + # in a different place + dodir "${GAMES_STATEDIR}"/${PN}/save + dodir "${GAMES_STATEDIR}"/${PN}/movies + dodir "${GAMES_STATEDIR}"/${PN}/objects + ln -s "${GAMES_SYSCONFDIR}"/${PN} "${D}${gamesdir}"/data/init || die + ln -s "${GAMES_STATEDIR}"/${PN}/save "${D}${gamesdir}"/data/save || die + ln -s "${GAMES_STATEDIR}"/${PN}/movies "${D}${gamesdir}"/data/movies || die + ln -s "${GAMES_STATEDIR}"/${PN}/objects "${D}${gamesdir}"/data/objects || die + + prepgamesdirs + + # fix a few permissions + fperms 0755 \ + "${gamesdir}"/libs/{Dwarf_Fortress,libgcc_s.so.1,libgraphics.so,libstdc++.so.6} || die + fperms -R g+w "${GAMES_STATEDIR}"/${PN} || die + fperms g+w "${gamesdir}"/data/index || die + fperms -R g+w "${gamesdir}"/data/{announcement,dipscript,help} || die +} diff --git a/games-rpg/dwarf-fortress/files/dwarf-fortress-0.34.05-wrapper b/games-rpg/dwarf-fortress/files/dwarf-fortress-0.34.05-wrapper new file mode 100644 index 000000000..d79e09220 --- /dev/null +++ b/games-rpg/dwarf-fortress/files/dwarf-fortress-0.34.05-wrapper @@ -0,0 +1,7 @@ +#!/bin/sh +cd /opt/dwarf-fortress +export SDL_DISABLE_LOCK_KEYS=1 # Work around for bug in Debian/Ubuntu SDL patch. +#export SDL_VIDEO_CENTERED=1 # Centre the screen. Messes up resizing. + +umask 0002 # Make sure that any saves created get 775/664 +exec ./libs/Dwarf_Fortress "$@" diff --git a/games-rpg/dwarf-fortress/metadata.xml b/games-rpg/dwarf-fortress/metadata.xml new file mode 100644 index 000000000..31dc017fa --- /dev/null +++ b/games-rpg/dwarf-fortress/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer> +</pkgmetadata> |