diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-03-21 22:08:04 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-03-21 22:08:04 +0000 |
commit | d883f400d9ed31c89fe2006cc79b835375afe03b (patch) | |
tree | f385d5e670a8c2b77c81b7cb00d0d3803f51c0e2 /games-puzzle | |
parent | initial import wrt #395887 (diff) | |
download | historical-d883f400d9ed31c89fe2006cc79b835375afe03b.tar.gz historical-d883f400d9ed31c89fe2006cc79b835375afe03b.tar.bz2 historical-d883f400d9ed31c89fe2006cc79b835375afe03b.zip |
initial import wrt #395887
Package-Manager: portage-2.2.0_alpha168/cvs/Linux x86_64
Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'games-puzzle')
-rw-r--r-- | games-puzzle/nightsky/Manifest | 18 | ||||
-rw-r--r-- | games-puzzle/nightsky/files/nightsky-wrapper | 23 | ||||
-rw-r--r-- | games-puzzle/nightsky/metadata.xml | 15 | ||||
-rw-r--r-- | games-puzzle/nightsky/nightsky-20111222.ebuild | 95 |
4 files changed, 149 insertions, 2 deletions
diff --git a/games-puzzle/nightsky/Manifest b/games-puzzle/nightsky/Manifest index e53319d278da..018b1711d3d6 100644 --- a/games-puzzle/nightsky/Manifest +++ b/games-puzzle/nightsky/Manifest @@ -1,5 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX nightsky-wrapper 540 SHA256 562fa782edad4859cb70316a642bfd009a51eda0f47e529a9360fb4f2710d3b2 SHA512 6ecb52d390757bb6b1ffcd7b06c1a154d5a3253822e989d7b9276ede8627d241b203afb88afff731f33967a3e380d1fcaf3feeef61713485848f654df3855248 WHIRLPOOL ca6e962c2870650aa979476ad5934d3cfffef87107583f5ab49651253e4e430a4571c0d095af76b8f344707c8f71ae85d77da59e30f3f59b131c50d2b9dac58f DIST nightskyhd-linux-1324519044.tar.gz 123971537 SHA256 def2b3b42239f9e786472a88d85ae739790f6675b8eadffe9941350d2100e9d0 SHA512 a1d4ec588fa67c3dfbefe563d37df7bd93ce6a7580e7fcedda6567f6f05f362fc478fbd6ac921854fa5fe26270a037c49f9bce2df5527a6490ff0984b9bb671e WHIRLPOOL b7aeef90eadaa47498da4d3cefd10c3f0c5ec8262ea9cf0125280aed6848ae5c8f05e591ccdedfa9a11f161f4abbb5ee03844ddee1a1c252cb61d53c5103cd0c -EBUILD nightsky-20111222.ebuild 1880 SHA256 5890ae6f6b64b4a7edf9cfa5b5390519abd6d8b97886f5e2bd75995696e26f77 SHA512 990afc016d07f4e3f4e500f0ce3348385811f6c0a184591596ca4213fd38f3b7217154c656b75dc9b1b73ca07314db988b770590e27d1ec5a057ef5a7171e545 WHIRLPOOL f2df4fe0c04fed6ff1eb6d8da3a4b4b1a3f8d286327a219cd17afdd0f57851506fcd0ccc561874b12339d9734fd868b7ba89f0f3b4697849e7f27778255b276f -MISC ChangeLog 306 SHA256 0e6b304d2da29a53bf3287f8d6e68eb817fd29b145614ca4ca3f193407b76018 SHA512 c790223258b1a66ebac53151472224263b33f42923e44da878151b9fb7b76f3da28d5c41c366e8b552376b617d44a2f92917b14b3221d0eb3e2ea10d17aa422a WHIRLPOOL 36e931bac1b9644f681610e511a07d4e0e57bfb56a33cac3f3db8e4270fff86a6f610b68b3c79823c6074793f9f0bcd3fe4c0ab9477ef0612a26cd7c2a65be58 +EBUILD nightsky-20111222.ebuild 1990 SHA256 ddef48b72cf9aeaee4f67e5afac7f977b96a227ffee59dd9224a17819209599e SHA512 dc42839358ef7edc7fb017599795fc89a69d208a76d7737748373df9631a718d37574b99cd874b9988af1ea19e6a102dc01207d78dec07e2a614a6d05e270c19 WHIRLPOOL ed4f4f7d9dcac385fcb1ec33a6d7c0413ad4cdec779d7d31a66beb70ab98a10962b8e402e7105bd574507cbcc037cdc2c573eccccd785169083e1d76e5b6d74f +MISC ChangeLog 401 SHA256 508d8160d53f0e650410d2b23ad95f3144b55f7f83b7831a19de747e953aa43e SHA512 d5a2d89ba25e573fe70e94ed8fb5a77739deefab3602457c14280cc5d15af315650b55e7846fb872ab8f6c153df558e391fcb836a6f5d90c43541b142c875967 WHIRLPOOL 419980a667d8d00fb2197a5117e99eb758d7dc4f266744f24c2d0240add48a473aaa25a41ddc3f0f04ee99391b71598a7c0edb971200af69df25d6ed28db8af7 MISC metadata.xml 357 SHA256 edcc7199ab480ee354907b48f6b4d582a64e82fa5160973b671106f08b153145 SHA512 73094df9982a4b60d3faba468322c1450aa515acc405f3deff1ce29307c1dfb301a66e09586df2ae39cc8262020e6b6f6141372cb9baaf8787910593582a5013 WHIRLPOOL 19503a292e1bb54ac364a724f1a8f785a54439daaeb2c609041759a0f8447e11c38afb754fe617909c68406c0325a0fffbe19ae20a617e1bcedf10d77cb59ef2 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQEcBAEBCAAGBQJRS4TEAAoJEFpvPKfnPDWzN7IIAIT8v73n7n49ij54Lvj7nxOh +v8fpquiF6/ZEeW1Q415BNSPaFyTbU3vM56M4uey+VUETpiYpgSN8n0XzQd/pbF+2 +FP0/waP05Z2humS8z50xgeoqP4tl6WlM4tfkgGgFwzwLxmUUOW0kKa8wEpMXyGME +EagUgcx4w1MZQHQU6a19aqX72NwurwmGXBrNSCvG+y+PFsUJMUz5uKlKj7cWLBk3 +0/C4UsbFebDdWsB2StHAYqKSylEERm6kyYgiP7/oL5w3FRuLibYcLVollxY1JdSA +8/eF6ejlkaXK0fEhV8N4rwFz1dU2BLuYSQHQgpargKlk+hgtAliyEhGnfg+pBj8= +=dln1 +-----END PGP SIGNATURE----- diff --git a/games-puzzle/nightsky/files/nightsky-wrapper b/games-puzzle/nightsky/files/nightsky-wrapper new file mode 100644 index 000000000000..be838c7432cc --- /dev/null +++ b/games-puzzle/nightsky/files/nightsky-wrapper @@ -0,0 +1,23 @@ +#!/bin/sh + +HOMEDIR="${HOME}/.nightsky" +GAMEDIR="@GAMES_PREFIX_OPT@/nightsky" + +# create root config dir +[ -e "${HOMEDIR}" ] || mkdir "${HOMEDIR}" + +# symlink game data +for i in `cd "${GAMEDIR}" || exit 1 ; ls -d *` ; do + [ -e "${HOMEDIR}/${i}" ] || ln -sf "${GAMEDIR}/${i}" "${HOMEDIR}/${i}" +done +# create empty Settings dir +[ -e "${HOMEDIR}/Settings" ] || mkdir "${HOMEDIR}/Settings" + +cd "${HOMEDIR}" + +# start architecture dependent binary +if [ -e "${HOMEDIR}/NightSkyHD_64" ] ; then + exec ./NightSkyHD_64 "$@" +else + exec ./NightSky "$@" +fi diff --git a/games-puzzle/nightsky/metadata.xml b/games-puzzle/nightsky/metadata.xml new file mode 100644 index 000000000000..d647e74d87ea --- /dev/null +++ b/games-puzzle/nightsky/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>hasufell@gentoo.org</email> + <name>Julian Ospald</name> + </maintainer> + <use> + <flag name='bundled-libs'> + Use the upstream provided bundled libraries. + </flag> + </use> +</pkgmetadata> + diff --git a/games-puzzle/nightsky/nightsky-20111222.ebuild b/games-puzzle/nightsky/nightsky-20111222.ebuild new file mode 100644 index 000000000000..c9a04814e8c2 --- /dev/null +++ b/games-puzzle/nightsky/nightsky-20111222.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/nightsky/nightsky-20111222.ebuild,v 1.1 2013/03/21 22:08:02 hasufell Exp $ + +EAPI=5 + +inherit eutils gnome2-utils games + +DESCRIPTION="Puzzle game that puts you inside and ambient and mysterious universe" +HOMEPAGE="http://www.nicalis.com/nightsky/" +SRC_URI="nightskyhd-linux-1324519044.tar.gz" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="bundled-libs" +RESTRICT="bindist fetch" + +MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN} +QA_PREBUILT="${MYGAMEDIR#/}/NightSky* + ${MYGAMEDIR#/}/lib/* + ${MYGAMEDIR#/}/lib64/*" + +RDEPEND=" + virtual/glu + virtual/opengl + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXi + x11-libs/libXxf86vm + !bundled-libs? ( + media-libs/freealut + media-libs/freeglut + media-libs/libogg + media-libs/libvorbis + media-libs/openal + sys-libs/zlib + )" + +S=${WORKDIR}/NightSky + +pkg_nofetch() { + einfo "Please buy & download ${SRC_URI} from:" + einfo " ${HOMEPAGE}" + einfo "and move it to ${DISTDIR}" +} + +src_prepare() { + einfo "removing ${ARCH} unrelated files..." + rm -v NightSkyHD$(usex amd64 "" "_64") || die + rm -rv lib$(usex amd64 "" "64") || die + + if ! use bundled-libs ; then + einfo "removing bundled libs..." + rm -rv lib* || die + fi + + # empty dir, we create symlink here later + rm -r Settings || die + + sed \ + -e "s#@GAMES_PREFIX_OPT@#${GAMES_PREFIX_OPT}#" \ + "${FILESDIR}"/${PN}-wrapper > "${T}"/${PN} || die +} + +src_install() { + dogamesbin "${T}"/${PN} + + insinto "${MYGAMEDIR}" + doins -r * + + newicon -s 128 "World/The Void/Physical"/Circle72.png ${PN}.png + make_desktop_entry ${PN} + + fperms +x "${MYGAMEDIR}"/NightSkyHD$(usex amd64 "_64" "") + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update + + echo + elog "Saves and Settings are in ~/.nightsky/Settings" + echo +} + +pkg_postrm() { + gnome2_icon_cache_update +} |