diff options
author | eroen <eroen@occam.eroen.eu> | 2014-07-08 02:51:37 +0200 |
---|---|---|
committer | eroen <eroen@occam.eroen.eu> | 2014-07-15 23:55:34 +0200 |
commit | 40fcf4c13dbeda2b2c44dacc6693b94e86ce7be0 (patch) | |
tree | d4258989a9f59ef1c30c5dd7b4ae5563bb63d65b /games-roguelike | |
parent | unityofcommand - desktop entry (diff) | |
download | eroen-40fcf4c13dbeda2b2c44dacc6693b94e86ce7be0.tar.gz eroen-40fcf4c13dbeda2b2c44dacc6693b94e86ce7be0.tar.bz2 eroen-40fcf4c13dbeda2b2c44dacc6693b94e86ce7be0.zip |
roguelegacy - new ebuild
Diffstat (limited to 'games-roguelike')
-rw-r--r-- | games-roguelike/roguelegacy/Manifest | 1 | ||||
-rw-r--r-- | games-roguelike/roguelegacy/metadata.xml | 4 | ||||
-rw-r--r-- | games-roguelike/roguelegacy/roguelegacy-20131228.ebuild | 100 |
3 files changed, 105 insertions, 0 deletions
diff --git a/games-roguelike/roguelegacy/Manifest b/games-roguelike/roguelegacy/Manifest new file mode 100644 index 0000000..f7fdf67 --- /dev/null +++ b/games-roguelike/roguelegacy/Manifest @@ -0,0 +1 @@ +DIST roguelegacy-12282013-bin 161803867 SHA256 ad1803cf6ce93cb971de5511865297228c7ad657f1f15040ded544148e7f3e3e SHA512 e0dc2fd8a20cf0af1a8c5008ec02ce8902f9359cd1644e9266c0d2f2b6eab2a1a42d218ae4f1256af47cd8f9a9fc2c3c5e66e65ca4f237e65594f19135e65624 WHIRLPOOL f4610df120bc92b40f6909d5c774627549ffe3c6eccf317aa1415769552a047d0036e63604eb90468ded941f849ee73d6ed42b1a479e62a45bc978133a36f9fc diff --git a/games-roguelike/roguelegacy/metadata.xml b/games-roguelike/roguelegacy/metadata.xml new file mode 100644 index 0000000..097975e --- /dev/null +++ b/games-roguelike/roguelegacy/metadata.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +</pkgmetadata> diff --git a/games-roguelike/roguelegacy/roguelegacy-20131228.ebuild b/games-roguelike/roguelegacy/roguelegacy-20131228.ebuild new file mode 100644 index 0000000..ee14e91 --- /dev/null +++ b/games-roguelike/roguelegacy/roguelegacy-20131228.ebuild @@ -0,0 +1,100 @@ +# By eroen, 2014 +# Distributed under the terms of the ISC licence +# $Header: $ + +EAPI=5 + +inherit eutils games + +DESCRIPTION="A genealogical rogue-LITE where anyone can be a hero." +HOMEPAGE="http://www.roguelegacy.com/" +SRC_URI="${PN}-${PV:4:4}${PV:0:4}-bin" +RESTRICT="fetch mirror" +S=${WORKDIR} + +### Bundled stuff +# openal: LGPL-2 +# mono: +# libsdl2: ZLIB +# monogame: +LICENSE="all-rights-reserved LGPL-2 ZLIB" +SLOT="0" +KEYWORDS="-* ~amd64" # ~x86 +IUSE="" + +HDEPEND="app-arch/unzip" +LIBDEPEND=" + media-libs/alsa-lib + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXcursor + x11-libs/libXinerama + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXxf86vm + virtual/opengl + sys-apps/dbus + virtual/libudev + " +DEPEND="" +RDEPEND="${LIBDEPEND}" +[[ ${EAPI} == *-hdepend ]] || DEPEND+=" ${HDEPEND}" +# libSDL2-2.0.so.0: libX11.so.6 libXext.so.6 libXcursor.so.1 libXinerama.so.1 libXi.so.6 libXrandr.so.2 libXxf86vm.so.1 libdbus-1.so.3 libGL.so.1 libudev.so libasound.so.2 # libpulse-simple.so.0 libartsc.so.0 libesd.so.0 +# libopenal.so.1: libasound.so.2 # libportaudio.so.2 libpulse.so.0 +# System.dll: libasound.so.2 + +# x86 textrels +QA_PREBUILT="opt/roguelegacy-20131228/data/lib/libmono-*" + +pkg_nofetch() { + elog "Please download ${SRC_URI}" + elog "from ${HOMEPAGE} or http://humblebundle.com" + elog "and place it in ${DISTDIR}" +} + +src_unpack() { + # Lifted from portage's unpack(). + # 'unzip' returns 1 due to the initial junk data in the archive. + ( set +x ; while true ; do echo n || break ; done ) | \ + unzip -qo "${DISTDIR}/${A}" + [[ $? == 0 || $? == 1 ]] || die "unzip failed." +} + +src_prepare() { + # Installer leftovers + rm -rf guis/ meta/ scripts/ || die + + # Unused stuff + rm -f data/Lidgren.Network.dll || die + rm -f data/Mono.{Posix,Security}.dll || die + rm -f data/System.{Data,Design,Drawing,Management,Runtime.Serialization,Security,Transactions,Xml.Linq}.dll || die + + # We make our own wrapper later. + rm -f data/RogueLegacy || die + + if ! use amd64; then + rm -f data/RogueCastle.bin.x86_64 || die + rm -rf data/lib64/ || die + fi + if ! use x86; then + rm -f data/RogueCastle.bin.x86 || die + rm -rf data/lib/ || die + fi +} + +src_install() { + MY_PREFIX=${GAMES_PREFIX_OPT}/${P} + + dodoc data/Linux.README + rm -f data/Linux.README || die + + insinto "${MY_PREFIX}" + doins -r * + + use amd64 && games_make_wrapper ${P} ./RogueCastle.bin.x86_64 "${MY_PREFIX}"/data + use x86 && games_make_wrapper ${P} ./RogueCastle.bin.x86 "${MY_PREFIX}"/data + make_desktop_entry ${P} ${P} "${MY_PREFIX}/data/Rogue Legacy.bmp" + + prepgamesdirs + chmod 750 "${ED%/}/${MY_PREFIX}"/data/RogueCastle.bin* || die +} |