From f828273ad07d9daa3acfc2f1f002d3243c7beb9f Mon Sep 17 00:00:00 2001 From: Nils Freydank Date: Sat, 18 Jan 2020 21:23:31 +0100 Subject: [PATCH] games-puzzle/osmos: Revbump for housekeeping Package-Manager: Portage-2.3.84, Repoman-2.3.20 Manifest-Sign-Key: 00EFD31F1B60D5DBADB831C1C0ECE6960E54475B Signed-off-by: Nils Freydank --- games-puzzle/osmos/osmos-1.6.1-r3.ebuild | 62 ++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 games-puzzle/osmos/osmos-1.6.1-r3.ebuild diff --git a/games-puzzle/osmos/osmos-1.6.1-r3.ebuild b/games-puzzle/osmos/osmos-1.6.1-r3.ebuild new file mode 100644 index 0000000..de59f85 --- /dev/null +++ b/games-puzzle/osmos/osmos-1.6.1-r3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit desktop eutils + +MY_PN="Osmos" +MY_P="${MY_PN}_${PV}" + +DESCRIPTION="Play as a single-celled organism absorbing others" +HOMEPAGE="https://www.osmos-game.com/" +SRC_URI="${MY_P}.tar.gz" + +LICENSE="Hemisphere_Games-EULA" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" + +RESTRICT="bindist fetch strip test" +PROPERTIES="interactive" + +RDEPEND=" + media-libs/freetype:2 + media-libs/libvorbis + media-libs/openal + virtual/glu + virtual/opengl + x11-libs/libX11 +" + +QA_PREBUILT="/opt/osmos/osmos" + +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MY_PN}" + +pkg_nofetch() { + einfo "Please download ${MY_P}.tar.gz and place it into ${DISTDIR}." +} + +src_install() { + # install a wrapper file + exeinto "/usr/bin/" + newexe "${FILESDIR}"/osmos-wrapper.sh ${PN} + + # install all files to /opt/osmos, including the actual binary + exeinto "/opt/${PN}" + if use amd64 + then newexe ${MY_PN}.bin64 ${PN} + fi + if use x86 + then newexe ${MY_PN}.bin32 ${PN} + fi + insinto "/opt/${PN}" + doins -r Fonts/ Sounds/ Textures/ Osmos-* *.cfg + + newicon "Icons/256x256.png" "${PN}.png" + dodoc readme.html + + make_desktop_entry "${PN}" "Osmos" +}