diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-puzzle/nightsky |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-puzzle/nightsky')
-rw-r--r-- | games-puzzle/nightsky/Manifest | 6 | ||||
-rw-r--r-- | games-puzzle/nightsky/files/nightsky-wrapper | 23 | ||||
-rw-r--r-- | games-puzzle/nightsky/metadata.xml | 13 | ||||
-rw-r--r-- | games-puzzle/nightsky/nightsky-20111222.ebuild | 94 |
4 files changed, 136 insertions, 0 deletions
diff --git a/games-puzzle/nightsky/Manifest b/games-puzzle/nightsky/Manifest new file mode 100644 index 000000000000..9fe58c174324 --- /dev/null +++ b/games-puzzle/nightsky/Manifest @@ -0,0 +1,6 @@ +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 1876 SHA256 6993c227b04a35bd248f02cfa359cb55db3ed6f63a4b3077651a523debaa0cee SHA512 d07cb62c379d63bcfb1229fa3c4d86beecde97af0e3e73e20fde05fcbeb2006498cd870dfda7a5a96eaa11cc3f9e4ed8b47d07bd40b4eee6b53083bc66e85e4c WHIRLPOOL 3972391bafb44a3c33deffdfd6be3a4bbd074d14bb2d6ec10885e7bcd66fec145d3ea03dc25e15f7d7af012c72616eca1e3625e26020fb1d12944ee1dd475b7f +MISC ChangeLog 2858 SHA256 47abec92964ac39f71fa7096f63fc0f7139f206f6db090b9ecb8ea3000439e75 SHA512 e491f3140053cba0ace803d952351bb95a9ad66b2adf9b02e79ba0127692b2c43d1d1e688002c7964d987dc93f84004237a18e822794261b341ced8f1bf4e9e5 WHIRLPOOL db78572cf3952668d85048b029e8f02ba71e76378bf17d755998f747d04c8d74a6335fca5eebd2c3c2e509814923093963225b4548a2f27bba40643db081e7f5 +MISC ChangeLog-2015 1025 SHA256 52bcae76e6e9f5b546713c40588b7fdbd46ae663d2d9e5c69e497de320fcb4ed SHA512 beb6107066216ce257908f65dcadbcd702fcbd043d21099828744eb15f214f0ba6ba0ea3fdff9a98c89b37f08d63a4e0c459e1e75fa692e0aee24a1c77875511 WHIRLPOOL 86207bdb93f2861de616205786aa7e926815e99b4bc91cdad46160c11003d86117d071e83f45060df7e20f464bdb080f73b709823a2b5a970a277dc53ed26835 +MISC metadata.xml 355 SHA256 3fe59ecadf91cdd661b063661864ef57eb3df8d59bd55a2eb9e61dc1a75e5bd8 SHA512 78f8cc8f1f1be915da206e4b8be196a21b58a6f209023594755e481136a1b86ee31c8d0dfedd516d756a47db624e89728875b073b71c3b08ac94a5cde8ff3b83 WHIRLPOOL adc2ef67e7870008ce851a78268832c5ff50649850b2614fb66edd3a16ccbad441306f00c44000385a742552b91b4a805408b19aad2ef3b7dda9e86532703dba 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..b878aaa1812d --- /dev/null +++ b/games-puzzle/nightsky/metadata.xml @@ -0,0 +1,13 @@ +<?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> + <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..e662c94e7dab --- /dev/null +++ b/games-puzzle/nightsky/nightsky-20111222.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 splitdebug" + +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 +} |