diff options
author | 2014-10-16 17:59:56 +0200 | |
---|---|---|
committer | 2014-10-16 21:27:09 +0200 | |
commit | a17a0cc15bd42094f7762ca7912fd0e239a37020 (patch) | |
tree | dcbb77f5dc837ec5fb4ab78da86f9996b1cff378 | |
parent | wine-1.5.28 - Bump (diff) | |
download | eroen-a17a0cc15bd42094f7762ca7912fd0e239a37020.tar.gz eroen-a17a0cc15bd42094f7762ca7912fd0e239a37020.tar.bz2 eroen-a17a0cc15bd42094f7762ca7912fd0e239a37020.zip |
prisonarchitect - new ebuild
-rw-r--r-- | games-simulation/prisonarchitect/Manifest | 1 | ||||
-rw-r--r-- | games-simulation/prisonarchitect/metadata.xml | 7 | ||||
-rw-r--r-- | games-simulation/prisonarchitect/prisonarchitect-0.24c.ebuild | 61 |
3 files changed, 69 insertions, 0 deletions
diff --git a/games-simulation/prisonarchitect/Manifest b/games-simulation/prisonarchitect/Manifest new file mode 100644 index 0000000..87e9948 --- /dev/null +++ b/games-simulation/prisonarchitect/Manifest @@ -0,0 +1 @@ +DIST prisonarchitect-alpha24c-linux.tar.gz 119341270 SHA256 c8e6bba8a8e6143a4a49bddb9f599eef51691055f65b27f7f5b09ee800650943 SHA512 5c3c0dd85865df69031a1f4699ef0656f08b263acff88dfd16c0f558b7278a0cb9e8f8dc5eabb12cc236ea9d7b5e02a107bf38469e01664cf575949204785777 WHIRLPOOL 6ac243f307520854d21b825823915c88ea01c054ebaba9624516e53abb619ad2715e335ae14d1c4f1789cac8b544503628d6546f3c5a8f78de224071585058f7 diff --git a/games-simulation/prisonarchitect/metadata.xml b/games-simulation/prisonarchitect/metadata.xml new file mode 100644 index 0000000..947a08c --- /dev/null +++ b/games-simulation/prisonarchitect/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <use> + <flag name="unpack-resources">Install game resources as flat files rather than rar bundles</flag> + </use> +</pkgmetadata> diff --git a/games-simulation/prisonarchitect/prisonarchitect-0.24c.ebuild b/games-simulation/prisonarchitect/prisonarchitect-0.24c.ebuild new file mode 100644 index 0000000..ae46dbc --- /dev/null +++ b/games-simulation/prisonarchitect/prisonarchitect-0.24c.ebuild @@ -0,0 +1,61 @@ +# By eroen, 2014 +# Distributed under the terms of the ISC licence +# $Header: $ + +EAPI=5 + +inherit eutils games + +MY_PV=${PV/#0./alpha} +MY_P=${PN}-${MY_PV} + +DESCRIPTION="" +HOMEPAGE="http://www.prison-architect.com" +SRC_URI="${MY_P}-linux.tar.gz" +S=${WORKDIR}/${MY_P}-linux + +# introversion.co.uk/legal +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64" # ~x86 +IUSE="unpack-resources" + +# TODO: +#GLIBC_2.11 - 2.18 in glibc 2.19 +#GLIBCXX_3.4.15 - 3.4.16 in gcc 4.6.4 +#Warning: mipmaps requested for non-power-of-two image (1200x343), will break on OpenGL ES +#ogg/vorbis audio +#png, bmp graphics +HDEPEND="unpack-resources? ( app-arch/unrar )" +LIBDEPEND=" + media-libs/libsdl2 + >=sys-devel/gcc-4.6.4 + sys-libs/glibc + virtual/glu + virtual/opengl + " +DEPEND="" +RDEPEND="${LIBDEPEND}" +[[ ${EAPI} == *-hdepend ]] || DEPEND+=" ${HDEPEND}" + +MY_PREFIX=${GAMES_PREFIX_OPT}/${P} +use amd64 && MY_ARCH=x86_64 +use x86 && MY_ARCH=i686 +QA_PREBUILT=("${MY_PREFIX#/}"/PrisonArchitect.${MY_ARCH}) + +src_install() { + insinto "${MY_PREFIX}" + if use unpack-resources; then + unrar x -idq -o+ main.dat || die + unrar x -idq -o+ sounds.dat || die + doins -r data + else + doins main.dat sounds.dat + fi + + exeinto "${MY_PREFIX}" + doexe PrisonArchitect.${MY_ARCH} + + # Provided wrapper is broken + games_make_wrapper ${PN} ./PrisonArchitect.${MY_ARCH} "${MY_PREFIX}" +} |