summaryrefslogtreecommitdiff
path: root/games-engines/gargoyle
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-engines/gargoyle
reinit the tree, so we can have metadata
Diffstat (limited to 'games-engines/gargoyle')
-rw-r--r--games-engines/gargoyle/Manifest6
-rw-r--r--games-engines/gargoyle/files/gargoyle-2011.1-desktopfile.patch31
-rw-r--r--games-engines/gargoyle/gargoyle-2011.1.ebuild123
-rw-r--r--games-engines/gargoyle/metadata.xml11
4 files changed, 171 insertions, 0 deletions
diff --git a/games-engines/gargoyle/Manifest b/games-engines/gargoyle/Manifest
new file mode 100644
index 000000000000..85df2c67725e
--- /dev/null
+++ b/games-engines/gargoyle/Manifest
@@ -0,0 +1,6 @@
+AUX gargoyle-2011.1-desktopfile.patch 1265 SHA256 b9f0eba5af34a7703c2d3bd38e216f82fd86cbf1acdb94267aaa06ba8b9a222f SHA512 ed31bc711b52b5d231f130956d7d07cb9080747e6d53c85b379aa413582f8e4ffe825298bc86180ec7d1eadff5e6bffc6e49b3ff7a2607f612dcf81a6c1af22e WHIRLPOOL b80e185d019ae88e256c14700c510a1ca81a9d7dbd081c9b685c7e5149d743d53d0a54606f295e8e35a074ba46753ea3ac1fe9fa10dd995910a872fa6d48b5fc
+DIST gargoyle-2011.1-sources.zip 11291660 SHA256 8642ac38add31d47bfd531d4121dc1e956d06895a9352ce573b5007e9cae4634 SHA512 65159580cf3494944f841c44320135580557258e37ad5523ae3ea30555c19834a2793231a8e42c217e5c1d055d50ed6a20d372d6302e880a2818bc4ea59b226f WHIRLPOOL 19e572d52ec6436c5b41d767e45d509bd965a0d4009b4445db08e79125eabb20636374bbb818ef7115a1ca9ac983a29cb2eaa3848a22e17d5e7d26284200b86f
+EBUILD gargoyle-2011.1.ebuild 3215 SHA256 2ef730e6810adb4744565fe13ca4370728535d6edaa5ba437b35269406ba4716 SHA512 0abedf358314f7130b749694d2ebba0ed452f595e077b35f993d5e9b62d8f071993597525ee25ffc70318e5bd4fb1df78a4e97cdc0cc7429bf2855a5f8fdf8c7 WHIRLPOOL 5ad0d9edee85660aac82dbfbf43590bc61e0bea3db3341872eabe181436ecdc5fcd0fe1d2743625c950906489e3491605cb3cbb907d721627dad1c66c8327178
+MISC ChangeLog 2948 SHA256 49ad20a8ea717148bf6f9260d8d391de03fcfd5400ec5302bce799187f5a1930 SHA512 7e310b5f4280b223984deb107acb98beb2bab41e94c0c62e4f14d5ce45907fcb91fd6c9acea57e3b8f808f397df7c37f8c5af3d9ad0fe099ff845b39805ffcc4 WHIRLPOOL a60a9ad4b27d9860240633d1f7912f2f13ade20d1e033faf81d3011bcb1050cdc05e26ebe0d1b5e3e4a756645055943461dc6ba3c709fbcdd422ab497487835f
+MISC ChangeLog-2015 4134 SHA256 1db1d93fab4bf891b5b126fe09b391c58e5c7df55504b7fdb02d41f5e00c8f6e SHA512 8f5102579edb859946ae556d2e2b54c943d0e90f8ff1cbc12718d3d8d8c25d3818389799458dbadbd586410eecfc0e89775e1779909c493c38dad150e3d62a8b WHIRLPOOL ce6280e7339f8792ee52ecaa387b8db5a94e8b60b7b450685e9d67f090b9f8505d7324767491db02dd95dde3721d99ce0101a920816b982ed6c7c53d48887111
+MISC metadata.xml 329 SHA256 4073a71c16d06a7bbbf6cd94a9e30306378a1801e4372656831b9b3383c91827 SHA512 f6b913db889e2434a76d61526ff2cf3f719322991bb26891ac0383fcb8f11cf69cfc895a7cddd35074c2dee9a5ceac0fd8c0172542401d302ec39e9cac180b2c WHIRLPOOL 28b6e9bbb091419d815bd4bf2c833d311cd8b0f52a5995cd35d807dc76aa51d5672876a93465e03d2d906c7873023ea7d58b6eef134672bb245c6875cd882c18
diff --git a/games-engines/gargoyle/files/gargoyle-2011.1-desktopfile.patch b/games-engines/gargoyle/files/gargoyle-2011.1-desktopfile.patch
new file mode 100644
index 000000000000..6b66328da016
--- /dev/null
+++ b/games-engines/gargoyle/files/gargoyle-2011.1-desktopfile.patch
@@ -0,0 +1,31 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Tue Aug 21 19:06:54 UTC 2012
+Subject: desktop file
+
+fix QA issues:
+
+# desktop-file-validate /usr/share/applications/gargoyle.desktop
+/usr/share/applications/gargoyle.desktop: error: file contains at least one line ending with a carriage return, while lines should only be separated by a line feed character. First such line is: "[Desktop Entry]"
+/usr/share/applications/gargoyle.desktop: error: (will be fatal in the future): value "gargoyle-house.png" for key "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path
+
+--- garglk/gargoyle.desktop
++++ garglk/gargoyle.desktop
+@@ -1,9 +1,9 @@
+-[Desktop Entry]
+-Version=1.0
+-Type=Application
+-Name=Gargoyle
+-GenericName=Interactive Fiction interpreter
+-Comment=Interactive Fiction multi-interpreter that supports all major IF formats
+-Icon=gargoyle-house.png
+-Exec=gargoyle
+-Categories=Game;
++[Desktop Entry]
++Version=1.0
++Type=Application
++Name=Gargoyle
++GenericName=Interactive Fiction interpreter
++Comment=Interactive Fiction multi-interpreter that supports all major IF formats
++Icon=gargoyle-house
++Exec=gargoyle
++Categories=Game;
diff --git a/games-engines/gargoyle/gargoyle-2011.1.ebuild b/games-engines/gargoyle/gargoyle-2011.1.ebuild
new file mode 100644
index 000000000000..8a9815363d33
--- /dev/null
+++ b/games-engines/gargoyle/gargoyle-2011.1.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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.)
+
+EAPI=5
+inherit eutils flag-o-matic multiprocessing toolchain-funcs gnome2-utils games
+
+DESCRIPTION="An Interactive Fiction (IF) player supporting all major formats"
+HOMEPAGE="http://ccxvii.net/gargoyle/"
+SRC_URI="https://garglk.googlecode.com/files/${P}-sources.zip"
+
+LICENSE="BSD GPL-2 MIT Hugo Glulxe"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="
+ >=media-fonts/libertine-5
+ media-fonts/liberation-fonts
+ media-libs/freetype:2
+ media-libs/libpng:0
+ media-libs/sdl-mixer
+ media-libs/sdl-sound[modplug,mp3,vorbis]
+ sys-libs/zlib
+ virtual/jpeg:0
+ x11-libs/gtk+:2"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-util/ftjam
+ virtual/pkgconfig"
+
+S=${WORKDIR}
+
+src_prepare() {
+ # Substitute custom CFLAGS/LDFLAGS.
+ sed -i -e \
+ "/^\s*OPTIM = / {
+ s/ \(-O.*\)\? ;/ ;/
+ a LINKFLAGS = ${LDFLAGS} ;
+ a SHRLINKFLAGS = ${LDFLAGS} ;
+ }" Jamrules || die
+
+ # Don't link against libraries used indirectly through SDL_sound.
+ sed -i -e "/GARGLKLIBS/s/-lsmpeg -lvorbisfile//g" 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 || die
+
+ epatch "${FILESDIR}"/${P}-desktopfile.patch
+ append-cflags -std=gnu89 # build with gcc5 (bug #573378)
+}
+
+src_compile() {
+ # build system messes up flags and toolchain completely
+ # append flags to compiler commands to have consistent behavior
+ jam \
+ -sAR="$(tc-getAR) cru" \
+ -sCC="$(tc-getCC) ${CFLAGS}" \
+ -sCCFLAGS="" \
+ -sC++="$(tc-getCXX) ${CXXFLAGS}" \
+ -sCXX="$(tc-getCXX) ${CXXFLAGS}" \
+ -sC++FLAGS="" \
+ -sGARGLKINI="${GAMES_SYSCONFDIR}/garglk.ini" \
+ -sUSESDL=yes \
+ -sBUNDLEFONTS=no \
+ -dx \
+ -j$(makeopts_jobs) || 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
+
+ # Install application entry and icon.
+ domenu garglk/${PN}.desktop
+ doicon -s 32 garglk/${PN}-house.png
+
+ # 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}"
+ done
+
+ # Also symlink the main binary since it resides in libexec.
+ dosym "${GAMES_PREFIX}/libexec/${PN}/${PN}" \
+ "${GAMES_BINDIR}/${PN}"
+
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-engines/gargoyle/metadata.xml b/games-engines/gargoyle/metadata.xml
new file mode 100644
index 000000000000..6842fdda8f83
--- /dev/null
+++ b/games-engines/gargoyle/metadata.xml
@@ -0,0 +1,11 @@
+<?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="google-code">garglk</remote-id>
+ </upstream>
+</pkgmetadata>