From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-955847-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 60F1D139694 for <garchives@archives.gentoo.org>; Sat, 17 Jun 2017 06:01:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D6E00E0C14; Sat, 17 Jun 2017 06:00:57 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A998AE0C14 for <gentoo-commits@lists.gentoo.org>; Sat, 17 Jun 2017 06:00:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5E215341896 for <gentoo-commits@lists.gentoo.org>; Sat, 17 Jun 2017 06:00:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7FB51747C for <gentoo-commits@lists.gentoo.org>; Sat, 17 Jun 2017 06:00:52 +0000 (UTC) From: "Vadim A. Misbakh-Soloviov" <mva@mva.name> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Vadim A. Misbakh-Soloviov" <mva@mva.name> Message-ID: <1497679243.0a8bbdf4d8db63f63a94388dda01a29dfdf854d7.mva@gentoo> Subject: [gentoo-commits] proj/gamerlay:master commit in: games-simulation/kerbal-space-program/ X-VCS-Repository: proj/gamerlay X-VCS-Files: games-simulation/kerbal-space-program/kerbal-space-program-2.13.0.16.ebuild X-VCS-Directories: games-simulation/kerbal-space-program/ X-VCS-Committer: mva X-VCS-Committer-Name: Vadim A. Misbakh-Soloviov X-VCS-Revision: 0a8bbdf4d8db63f63a94388dda01a29dfdf854d7 X-VCS-Branch: master Date: Sat, 17 Jun 2017 06:00:52 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 324516aa-5205-491e-ac85-fd405f7d26ed X-Archives-Hash: 941ffd4a2d14acbd3aca274c29520674 commit: 0a8bbdf4d8db63f63a94388dda01a29dfdf854d7 Author: Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name> AuthorDate: Sat Jun 17 06:00:43 2017 +0000 Commit: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name> CommitDate: Sat Jun 17 06:00:43 2017 +0000 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=0a8bbdf4 kerbal-space-program: added .../kerbal-space-program-2.13.0.16.ebuild | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/games-simulation/kerbal-space-program/kerbal-space-program-2.13.0.16.ebuild b/games-simulation/kerbal-space-program/kerbal-space-program-2.13.0.16.ebuild new file mode 100644 index 0000000..fada004 --- /dev/null +++ b/games-simulation/kerbal-space-program/kerbal-space-program-2.13.0.16.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils + +DESCRIPTION="A combination of platformer and role playing game" +HOMEPAGE="http://www.unepicgame.com/" +SRC_URI="gog_${P//-/_}.sh" + +RESTRICT="fetch strip" +LICENSE="EULA" + +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="app-arch/unzip" +RDEPEND=" +" +QA_DIR="usr/share/${PF}" +QA_PREBUILT="${QA_DIR}/Launcher.x86 ${QA_DIR}/KSP.x86 ${QA_DIR}/Launcher_Data/Mono/x86/libmono.so ${QA_DIR}/KSP_Data/Mono/x86/libmono.so" + +pkg_nofetch() { + einfo "" + einfo "Please buy and download \"${A}\" from corresponding shop (HumbleBundle or GOG)" + einfo "and move/link it to \"${DISTDIR}\"" + einfo "You can get more info on ${HOMEPAGE}" + einfo "" +} + +src_unpack() { + einfo "\nUnpacking files. This can take several minutes.\n" + + mkdir "${WORKDIR}/tmp" || die "mkdir 'tmp' failed" + cd "${WORKDIR}/tmp" || die "cd 'tmp' failed" + + unzip -q "${DISTDIR}/${A}" + + local gpath="data/noarch/game" + + mv "${gpath}" "${S}" + + cd "${S}" && rm -r "${WORKDIR}/tmp" +} + +src_install() { + local arch="${ARCH//amd/x86_}" + local dir="/usr/share/${PF}" + insinto "${dir}" + exeinto "${dir}" + + doins -r . + doexe {KSP,Launcher}.x86{,_64} || die "Failed to install executables" + + newicon "Launcher_Data/Resources/UnityPlayer.png" "${PN}.png" + make_wrapper "${PN}" "./KSP.${arch}" "${dir}" + make_wrapper "${PN}-launcher" "./Launcher.${arch}" "${dir}" + make_desktop_entry "${PN}" "Kerbal Space Program" "${PN}" || die "make_desktop_entry failed" + make_desktop_entry "${PN}-launcher" "Kerbal Space Program: Launcher" "${PN}" || die "make_desktop_entry failed" +} + +pkg_postinst() { + einfo "Just in case: neither of these DRM-free versions sees Steam's savegames." + einfo "In case, if you played in Steam and moved to DRM-free version," + einfo "consider copying files from:" + einfo "~/.local/share/Steam/userdata/[your_user_id]/233980/remote/save" + einfo "to:" + einfo "~/.local/share/Unepic/unepic/save" + einfo "and vice versa if you want to import DRM-free saves to Steam." + einfo "Although, it can cause sudden game freezes..." +}