From 1726f32a4bf939c045d35db6e95ab327213ecf8a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 20:20:16 +0100 Subject: gentoo resync : 14.07.2018 --- games-engines/gargoyle/Manifest | 2 +- games-engines/gargoyle/gargoyle-2011.1-r1.ebuild | 118 ++++++++++++++++++++++ games-engines/gargoyle/gargoyle-2011.1.ebuild | 123 ----------------------- 3 files changed, 119 insertions(+), 124 deletions(-) create mode 100644 games-engines/gargoyle/gargoyle-2011.1-r1.ebuild delete mode 100644 games-engines/gargoyle/gargoyle-2011.1.ebuild (limited to 'games-engines/gargoyle') diff --git a/games-engines/gargoyle/Manifest b/games-engines/gargoyle/Manifest index 5d8521d34e2c..44fcb1627a6a 100644 --- a/games-engines/gargoyle/Manifest +++ b/games-engines/gargoyle/Manifest @@ -1,4 +1,4 @@ AUX gargoyle-2011.1-desktopfile.patch 1265 BLAKE2B 1fcbc1eded032ef11ef357e03c614067b18c21a268b4a3bebe4516a0ed196660292b311c9769d66853ffbbf2535808d014991bd42155919b913965223a4523dc SHA512 ed31bc711b52b5d231f130956d7d07cb9080747e6d53c85b379aa413582f8e4ffe825298bc86180ec7d1eadff5e6bffc6e49b3ff7a2607f612dcf81a6c1af22e DIST gargoyle-2011.1-sources.zip 11291660 BLAKE2B aac47c41bd02e772c4717dfdeae8678105f72704641ea3df39105d412afe61734cc43f863b9556e38ea34287259df9f4d72ae93b3092d0372434b9f59f99483d SHA512 65159580cf3494944f841c44320135580557258e37ad5523ae3ea30555c19834a2793231a8e42c217e5c1d055d50ed6a20d372d6302e880a2818bc4ea59b226f -EBUILD gargoyle-2011.1.ebuild 3217 BLAKE2B f2d74fefa87a5e0aeb6fdea0816e591a3b23e75b455051d161a600cdfe198a502c2e0c2c95537c403e531b38848b2999479414062557ea4e7d84326d18ebab6a SHA512 62a23b3df92c9db95824d1344796a5cac16fc3d1ebd7358066b38a7c02487fdfdb7589cf17331ffc38e73d7732233e7d9ece0224138087dffc1481fca9cbbf0d +EBUILD gargoyle-2011.1-r1.ebuild 3017 BLAKE2B 12371e41ca78403ba1452da2a2c5dbac287912b8dbcd7afe524984b8442bb4cf5701f3073f27a64c5adadccfebfaaef9e543b883026b4eae4b185cc151eac6b7 SHA512 0daa2b0ef761c935d0e7d47fd42060ebf5db4331634bba8e1812a619d8fb31cdb0f2aec197cf7d30e1bff357ccd60888ac5107c7e9644f8ddeed9520a9b1ac9e MISC metadata.xml 329 BLAKE2B cc77f8750b5385687d311159b8edbf296284013812d4be5fe0076468c02758dcac19c77b5e6f38c4fbdac51f1c69b34cfd39d5d19235d18ec80076ceba98e2b3 SHA512 f6b913db889e2434a76d61526ff2cf3f719322991bb26891ac0383fcb8f11cf69cfc895a7cddd35074c2dee9a5ceac0fd8c0172542401d302ec39e9cac180b2c diff --git a/games-engines/gargoyle/gargoyle-2011.1-r1.ebuild b/games-engines/gargoyle/gargoyle-2011.1-r1.ebuild new file mode 100644 index 000000000000..82e11b237828 --- /dev/null +++ b/games-engines/gargoyle/gargoyle-2011.1-r1.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2018 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=6 +inherit eutils flag-o-matic gnome2-utils multilib multiprocessing toolchain-funcs + +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 + 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 + + epatch "${FILESDIR}"/${P}-desktopfile.patch + append-cflags -std=gnu89 # build with gcc5 (bug #573378) + append-cxxflags -std=gnu++11 # code assumes C++11 semantics (bug #642996) + default +} + +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="/etc/garglk.ini" \ + -sUSESDL=yes \ + -sBUNDLEFONTS=no \ + -dx \ + -j$(makeopts_jobs) || die +} + +src_install() { + DESTDIR="${D}" \ + _BINDIR="/usr/libexec/${PN}" \ + _APPDIR="/usr/libexec/${PN}" \ + _LIBDIR="/usr/$(get_libdir)" \ + EXEMODE=755 \ + FILEMODE=755 \ + jam install || die + + # Install config file. + insinto "/etc" + 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 "../libexec/${PN}/${terp}" \ + "/usr/bin/${PN}-${terp}" + done + + # Also symlink the main binary since it resides in libexec. + dosym "../libexec/${PN}/${PN}" \ + "/usr/bin/${PN}" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-engines/gargoyle/gargoyle-2011.1.ebuild b/games-engines/gargoyle/gargoyle-2011.1.ebuild deleted file mode 100644 index 640adac5fa7e..000000000000 --- a/games-engines/gargoyle/gargoyle-2011.1.ebuild +++ /dev/null @@ -1,123 +0,0 @@ -# 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 -} -- cgit v1.2.3