From 57c2d7c77822804c568f2f0a804add6add4529b7 Mon Sep 17 00:00:00 2001 From: Nikos Chantziaras Date: Mon, 26 Mar 2012 00:47:02 +0300 Subject: [PATCH] gargoyle: add new package and 2011.1 version --- games-engines/gargoyle/Manifest | 3 + games-engines/gargoyle/gargoyle-2011.1.ebuild | 96 +++++++++++++++++++++++++++ games-engines/gargoyle/metadata.xml | 9 +++ 3 files changed, 108 insertions(+) create mode 100644 games-engines/gargoyle/Manifest create mode 100644 games-engines/gargoyle/gargoyle-2011.1.ebuild create mode 100644 games-engines/gargoyle/metadata.xml diff --git a/games-engines/gargoyle/Manifest b/games-engines/gargoyle/Manifest new file mode 100644 index 0000000..18b250c --- /dev/null +++ b/games-engines/gargoyle/Manifest @@ -0,0 +1,3 @@ +DIST gargoyle-2011.1-sources.zip 11291660 RMD160 43de562c12a068c5d6f4fab6bb62647faadd0ff3 SHA1 8e01e458e01dd7d20fe5330f95a3e44b7cbc37d6 SHA256 8642ac38add31d47bfd531d4121dc1e956d06895a9352ce573b5007e9cae4634 +EBUILD gargoyle-2011.1.ebuild 2498 RMD160 f16329db46656c2a3f32e1cb46949af0a28dbe3b SHA1 661b0a178c926cf9263b386779c1594605cb6202 SHA256 830a7d23aea90e137d50d4019e4cb4a58b704874ca7e903bff410e981a886864 +MISC metadata.xml 252 RMD160 8ce3795bac9d4960615a67c32fb3994bfece325f SHA1 dfce1ee8158b18adf66bfee2988b2b1c796443a8 SHA256 76446769792843475165db424def28271c1aabc5d695d29ad30858e8055c7acd diff --git a/games-engines/gargoyle/gargoyle-2011.1.ebuild b/games-engines/gargoyle/gargoyle-2011.1.ebuild new file mode 100644 index 0000000..0d97fd2 --- /dev/null +++ b/games-engines/gargoyle/gargoyle-2011.1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# Regarding licenses: libgarglk is licensed under the GPLv2. Bundled +# interpreters are licensed under GPLv2, BSD or MIT license, except: +# - 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="2011.1" +MY_P="${PN}-${MY_PV}" + +EAPI=3 + +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" + +RDEPEND="media-libs/freetype:2 + virtual/jpeg + media-libs/libpng + media-fonts/liberation-fonts + >=media-fonts/libertine-ttf-5 + sys-libs/zlib + x11-libs/gtk+:2 + media-libs/sdl-mixer + media-libs/sdl-sound" + +DEPEND="${RDEPEND} + app-arch/unzip + dev-util/ftjam" + +src_prepare() { + # Substitute custom CFLAGS/LDFLAGS. + sed -i -e \ + "/^\s*OPTIM = / { + s/ \(-O.*\)\? ;/ ${CFLAGS} ;/ + a LINKFLAGS = ${LDFLAGS} ; + a SHRLINKFLAGS = ${LDFLAGS} ; + }" Jamrules || die + + # Convert garglk.ini to UNIX format. + edos2unix garglk/garglk.ini + + # The font name of Linux Libertine changed in version 5. + sed -i -e 's/Linux Libertine O/Linux Libertine/g' garglk/garglk.ini +} + +src_compile() { + jam \ + -sGARGLKINI="${GAMES_SYSCONFDIR}/garglk.ini" \ + -sUSESDL=yes \ + -sBUNDLEFONTS=no \ + ${MAKEOPTS} || die +} + +src_install() { + DESTDIR="${D}" \ + _BINDIR="${GAMES_PREFIX}/libexec/${PN}" \ + _APPDIR="${GAMES_PREFIX}/libexec/${PN}" \ + _LIBDIR="$(games_get_libdir)" \ + EXEMODE=755 \ + FILEMODE=755 \ + jam install || die + + # 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 + + # Symlink binaries to avoid name clashes. + for terp in advsys agility alan2 alan3 frotz geas git glulxe hugo jacl \ + level9 magnetic nitfol scare tadsr + do + dosym "${GAMES_PREFIX}/libexec/${PN}/${terp}" \ + "${GAMES_BINDIR}/${PN}-${terp}" || die + done + + # Also symlink the main binary since it resides in libexec. + dosym "${GAMES_PREFIX}/libexec/${PN}/${PN}" \ + "${GAMES_BINDIR}/${PN}" || die + + prepgamesdirs +} diff --git a/games-engines/gargoyle/metadata.xml b/games-engines/gargoyle/metadata.xml new file mode 100644 index 0000000..85d0385 --- /dev/null +++ b/games-engines/gargoyle/metadata.xml @@ -0,0 +1,9 @@ + + + +games + + s4t4n@gentoo.org + Michele Noberasco + + -- 2.11.4.GIT