diff options
author | Pacho Ramos <pacho@gentoo.org> | 2018-04-29 18:24:43 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2018-04-29 18:27:44 +0200 |
commit | 67a22279aee9a4adec1f5f90ff1487e82156d52c (patch) | |
tree | 98be3e299db02962c9c32a14bd5c3196dde38b30 /games-fps/alephone | |
parent | Remove masked for removal package (diff) | |
download | gentoo-67a22279aee9a4adec1f5f90ff1487e82156d52c.tar.gz gentoo-67a22279aee9a4adec1f5f90ff1487e82156d52c.tar.bz2 gentoo-67a22279aee9a4adec1f5f90ff1487e82156d52c.zip |
Revert "Remove masked for removal package"
This reverts commit 2d0b80ef059fd4c1ea78193385e4b22f92527b73.
Diffstat (limited to 'games-fps/alephone')
-rw-r--r-- | games-fps/alephone/Manifest | 1 | ||||
-rw-r--r-- | games-fps/alephone/alephone-20150620-r1.ebuild | 88 | ||||
-rw-r--r-- | games-fps/alephone/files/alephone.sh | 28 | ||||
-rw-r--r-- | games-fps/alephone/metadata.xml | 12 |
4 files changed, 129 insertions, 0 deletions
diff --git a/games-fps/alephone/Manifest b/games-fps/alephone/Manifest new file mode 100644 index 000000000000..63f1b15b4acc --- /dev/null +++ b/games-fps/alephone/Manifest @@ -0,0 +1 @@ +DIST AlephOne-20150620.tar.bz2 5031898 BLAKE2B 7f319c1b1ae2930e5ebfdf7baa1947d35e3f606e936fe86393cf26e1b9b7803283897811bf17cdb2f88931db606b3a13ed1f83bf9a8e9fed3b197135da0cbf46 SHA512 fb47969137b791f83b111171d7b92b3708597db294ce19fb682ce28c49edcd4cb84a6ce4dcceb6630812a8c676dfe7f39f3fb4642f40ef7086a0d6c6fdeba8df diff --git a/games-fps/alephone/alephone-20150620-r1.ebuild b/games-fps/alephone/alephone-20150620-r1.ebuild new file mode 100644 index 000000000000..4672cf9d6742 --- /dev/null +++ b/games-fps/alephone/alephone-20150620-r1.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils + +MY_P=AlephOne-${PV} +DESCRIPTION="An enhanced version of the game engine from the classic Mac game, Marathon" +HOMEPAGE="http://source.bungie.org/" +SRC_URI="https://github.com/Aleph-One-Marathon/alephone/releases/download/release-${PV}/AlephOne-${PV}.tar.bz2" + +LICENSE="GPL-3+ BitstreamVera OFL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="alsa curl ffmpeg mad mpeg sndfile speex vorbis" + +RDEPEND=" + dev-libs/boost + dev-libs/expat + dev-libs/zziplib + media-libs/libpng:0 + media-libs/libsdl[joystick,opengl,video] + media-libs/sdl-image[png] + media-libs/sdl-net + media-libs/sdl-ttf + virtual/opengl + virtual/glu + alsa? ( media-libs/alsa-lib ) + curl? ( net-misc/curl ) + ffmpeg? ( virtual/ffmpeg ) + mad? ( media-libs/libmad ) + mpeg? ( media-libs/smpeg ) + sndfile? ( media-libs/libsndfile ) + speex? ( media-libs/speex ) + vorbis? ( media-libs/libvorbis )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + default + + sed "s:GAMES_DATADIR:/usr/share:g" \ + "${FILESDIR}"/${PN}.sh > "${T}"/${PN}.sh \ + || die + + # try using the system expat - bug #251108 + sed -i \ + -e '/SUBDIRS/ s/Expat//' \ + -e 's/Expat\/libexpat.a/-lexpat/' \ + Source_Files/Makefile.am || die + sed -i -e '/Expat/d' configure.ac || die + rm -r Source_Files/Expat || die + + eautoreconf +} + +src_configure() { + econf \ + --enable-lua \ + --enable-opengl \ + $(use_with alsa) \ + $(use_with ffmpeg) \ + $(use_with mad) \ + $(use_with mpeg smpeg) \ + $(use_with sndfile) \ + $(use_with speex) \ + $(use_with vorbis) +} + +src_install() { + default + dobin "${T}"/${PN}.sh + doman docs/${PN}.6 + dodoc docs/*.html +} + +pkg_postinst() { + echo + elog "Read the docs and install the data files accordingly to play." + echo + elog "If you only want to install one scenario, read" + elog "http://traxus.bungie.org/index.php/Aleph_One_install_guide#Single_scenario_3" + elog "If you want to install multiple scenarios, read" + elog "http://traxus.bungie.org/index.php/Aleph_One_install_guide#Multiple_scenarios_3" + echo +} diff --git a/games-fps/alephone/files/alephone.sh b/games-fps/alephone/files/alephone.sh new file mode 100644 index 000000000000..62ac98f85770 --- /dev/null +++ b/games-fps/alephone/files/alephone.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +DIR=$(dirname "${0}") +CMD=$(basename "${0}") +ALEPHONE=${CMD%%.sh} + +if [[ -z "${1}" ]] +then + echo "Usage: ${0} SCENARIO FLAGS" + echo "Where SCENARIO is one of:" + for d in "GAMES_DATADIR"/alephone-* + do + echo " ${d##*/alephone-}" + done + exit 2 +fi + +export ALEPHONE_DATA="GAMES_DATADIR/alephone-${1}" + +shift + +# kill ARTS, because we're just that nice +if artsshell terminate 2> /dev/null +then + sleep 2 +fi + +"${DIR}"/"${ALEPHONE}" "$@" diff --git a/games-fps/alephone/metadata.xml b/games-fps/alephone/metadata.xml new file mode 100644 index 000000000000..f7a55faa0217 --- /dev/null +++ b/games-fps/alephone/metadata.xml @@ -0,0 +1,12 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">marathon</remote-id> + <remote-id type="github">Aleph-One-Marathon/alephone</remote-id> + </upstream> +</pkgmetadata> |