diff options
author | Michele Noberasco <s4t4n@gentoo.org> | 2010-10-14 08:29:32 +0000 |
---|---|---|
committer | Michele Noberasco <s4t4n@gentoo.org> | 2010-10-14 08:29:32 +0000 |
commit | 0ff4b518d84a5e3261ff9bac8f50b34929cd8f82 (patch) | |
tree | 5e7db53a211717894e81c9e176d896a92ca8a555 /games-engines | |
parent | Version bump (diff) | |
download | gentoo-2-0ff4b518d84a5e3261ff9bac8f50b34929cd8f82.tar.gz gentoo-2-0ff4b518d84a5e3261ff9bac8f50b34929cd8f82.tar.bz2 gentoo-2-0ff4b518d84a5e3261ff9bac8f50b34929cd8f82.zip |
Version bump. Closes bug #253098.
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'games-engines')
-rw-r--r-- | games-engines/gargoyle/ChangeLog | 7 | ||||
-rw-r--r-- | games-engines/gargoyle/gargoyle-20100930.ebuild | 114 |
2 files changed, 120 insertions, 1 deletions
diff --git a/games-engines/gargoyle/ChangeLog b/games-engines/gargoyle/ChangeLog index 3389739b800f..cbecf5e83a33 100644 --- a/games-engines/gargoyle/ChangeLog +++ b/games-engines/gargoyle/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-engines/gargoyle # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-engines/gargoyle/ChangeLog,v 1.10 2010/08/31 15:38:31 s4t4n Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-engines/gargoyle/ChangeLog,v 1.11 2010/10/14 08:29:32 s4t4n Exp $ + +*gargoyle-20100930 (14 Oct 2010) + + 14 Oct 2010; Michele Noberasco <s4t4n@gentoo.org> gargoyle-20100930.ebuild: + Version bump. Closes bug #253098. 31 Aug 2010; Michele Noberasco <s4t4n@gentoo.org> gargoyle-20060917-r1.ebuild: Honour Gentoo LDFLAGS. Closes bug #333653. diff --git a/games-engines/gargoyle/gargoyle-20100930.ebuild b/games-engines/gargoyle/gargoyle-20100930.ebuild new file mode 100644 index 000000000000..0867b8de8b0f --- /dev/null +++ b/games-engines/gargoyle/gargoyle-20100930.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-engines/gargoyle/gargoyle-20100930.ebuild,v 1.1 2010/10/14 08:29:32 s4t4n Exp $ + +# Notes: +# - fmod support is based on an old version of fmod which is not in portage, +# and therefore not supported by this ebuild. SDL is the preferred library. +# - Have contacted upstream requesting overridable build variables and a +# configurable config file path, to obviate file editing in src_prepare. + +# Regarding licenses: libgarglk is licensed under the GPLv2. Bundled +# interpreters are licensed under GPLv2, BSD or MIT license, except: +# - alan2/alan3: status unclear! +# - glulxe: custom license, see "terps/glulxle/README" +# - hugo: custom license, see "licenses/HUGO License.txt" +# Since we don't compile or install any of the bundled fonts, their licenses +# don't apply. (Fonts are installed through dependencies instead.) + +MY_PV="2010.1" +MY_P="${PN}-${MY_PV}" + +EAPI=2 + +inherit eutils games + +DESCRIPTION="An interactive fiction (IF) player supporting all major formats" +HOMEPAGE="http://ccxvii.net/gargoyle/" +SRC_URI="http://garglk.googlecode.com/files/${MY_P}-sources.zip" + +LICENSE="BSD GPL-2 MIT Hugo Glulxe" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="sdl" + +RDEPEND="media-libs/freetype:2 + media-libs/jpeg + media-libs/libpng + media-fonts/liberation-fonts + media-fonts/libertine-ttf + sys-libs/zlib + x11-libs/gtk+:2 + sdl? ( + media-libs/libsdl + media-libs/sdl-mixer + media-libs/sdl-sound + media-libs/libvorbis + media-libs/smpeg + )" + +DEPEND="${RDEPEND} + app-arch/unzip + dev-util/ftjam" + +src_prepare() { + if ! use sdl; then + sed -i -e '/^USESDL = /s/yes/no/' Jamrules || die + fi + + # Substitute custom CFLAGS/LDFLAGS: + sed -i -e \ + "/^\s*OPTIM = / { + s/ \(-O.*\)\? ;/ ${CFLAGS} ;/ + a LINKFLAGS = ${LDFLAGS} ; + a SHRLINKFLAGS = ${LDFLAGS} ; + }" Jamrules || die + + # Don't bundle default fonts; we'll install better ones as a dependency: + sed -i -e '/^BUNDLEFONTS = /s/yes/no/' Jamrules || die + + # Convert garglk.ini to UNIX format: + edos2unix garglk/garglk.ini + + # Fix path to garglk.ini in config loader: + sed -i -e "s|/etc|${GAMES_SYSCONFDIR}|" garglk/config.c || die +} + +src_compile() { + jam || die + jam install || die + # Note: the line above doesn't actually install anything yet! +} + +src_install() { + # Install config file: + insinto "${GAMES_SYSCONFDIR}" + newins garglk/garglk.ini garglk.ini || die + + # Install application entry and icon: + insinto /usr/share/applications + doins garglk/${PN}.desktop || die + doicon garglk/${PN}-house.png || die + + # Install library: + cd build/dist || die + dogameslib libgarglk.so || die + + # Install launcher and terps, symlinking binaries to avoid name clashes: + insinto "${GAMES_PREFIX}/libexec/${PN}" + insopts -m0755 + for terp in advsys agility alan2 alan3 frotz geas git glulxe hugo jacl \ + level9 magnetic nitfol scare tadsr + do + doins ${terp} || die + dosym "${GAMES_PREFIX}/libexec/${PN}/${terp}" \ + "${GAMES_BINDIR}/${PN}-${terp}" || die + done + # N.B. the launcher binary is installed in libexec too, because it + # expects to find the interpreters in the same directory: + doins ${PN}|| die + dosym "${GAMES_PREFIX}/libexec/${PN}/${PN}" \ + "${GAMES_BINDIR}/${PN}" || die + + prepgamesdirs +} |