summaryrefslogtreecommitdiff
path: root/games-action/openastromenace
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-action/openastromenace
reinit the tree, so we can have metadata
Diffstat (limited to 'games-action/openastromenace')
-rw-r--r--games-action/openastromenace/Manifest6
-rw-r--r--games-action/openastromenace/metadata.xml11
-rw-r--r--games-action/openastromenace/openastromenace-1.3.2-r1.ebuild75
-rw-r--r--games-action/openastromenace/openastromenace-1.3.2.ebuild76
4 files changed, 168 insertions, 0 deletions
diff --git a/games-action/openastromenace/Manifest b/games-action/openastromenace/Manifest
new file mode 100644
index 000000000000..239dd547bcf7
--- /dev/null
+++ b/games-action/openastromenace/Manifest
@@ -0,0 +1,6 @@
+DIST astromenace-src-1.3.2.tar.bz2 55390211 SHA256 9b775df2b157565b97aca008dd879b867cd3377c07b829cee6b5342639357fe6 SHA512 0a06278a8a7fdaaf5c730590fcc1f8f59503fe4c94dcbb6dd6b6ee638048f9bebf7c49c75cd32f26e4cd08cfbe01f5082002860901b7196f08a55712bb3ed5d4 WHIRLPOOL b5dee8d3cef2f143e44730c2eb0a60e3537675499c7c726752fc016faace498bf9a951bf96fb03ff2b3e3b8699d9f0575cb5e39ceacceb01a0c270c21691aa1f
+EBUILD openastromenace-1.3.2-r1.ebuild 1515 SHA256 72c4877229f3c00e56da623c464446f631d0839ae5e170f1411cbc00d3a57027 SHA512 4acf0703ce89b8b1fe8e64f8af07dc852f5d41438b71243d2fcac11d8c32670d4e3a5bf71b27e2c7dde65f9246154158e9ef809e34d9f0014f77dc448eff3d3b WHIRLPOOL dc4d9ce7dabcd07fdd473e44b74a2dc147efd40255c80dd8486b32a8657d1c07f2cb979617a8844c291d371dde20f941d65827edd879b2b924e92b2fb1311df4
+EBUILD openastromenace-1.3.2.ebuild 1605 SHA256 80b8542841e1f6f5790233b9c8431443f1b287e0226ff2f424452c7c2ae9b8b4 SHA512 31f3842dbd4d64e20aac0a32aee21bb29b7cd6c6473609304479bc1b01d8a691a297f5cb817eeaf7d85f61cf8d20fa9809814de0d0b0825cc3b01f4fdc6e0de6 WHIRLPOOL d92430001d96961ac84773763daeff1d5278f97dcdaef2cf6013414a79e57de8bc4564d580d4ba3e47255597b182aefae2a03b251bb7d5e58a290dc67bb577fe
+MISC ChangeLog 2714 SHA256 a5b356523a062aace2dcd5db2551184028acf19ef5aee2da4e0e0fbbd0da632a SHA512 05b9cda130c83cdd8ea961ab8e85fea908607d80ed58d596a3c4acca6e723ea29d53da8403a13a1aa3d60e9f4f3309becff5c82ee389696f5a032e7214350774 WHIRLPOOL b64f8e22460b17bb05227eb8f323c288cb39c8ae97dbd7dc7073c510da1dc057dce5122fedd519fe5d02a8cf8c725390a98cbb45453ca4dceac8a5a1b83bbbe4
+MISC ChangeLog-2015 4097 SHA256 55ee25bcfcb0dd136928aa601e2371f9e19fb78b652ba4413909802b23984812 SHA512 a97a82a565eaba440645c79659a575aa10c2b26215ec1f7fc4db6eeea884bcb62e082dc6cfd5a3fce85f6436bd6059a8865b30fe85ea818f71388653264cb579 WHIRLPOOL 9f7344c0e0363070413af2d3b59c38b0f4487a8c11916dd4733ee9e9084c6dc579ae867f6414d72967fbaca6d817b3717e86d479b66571ffe2c256c8af6b09fa
+MISC metadata.xml 338 SHA256 d39703abfcdc995b130742cc94f476611cb21a97926c9faaa936f20135e5c365 SHA512 b2364e10d11ba13a39560816a4b7bc99bd00eb5917e81842a909813cd0fe55bb5324baf4181238fcd1122508bde58f2f0d064c6d6cf52401bc7a76372c6e6e44 WHIRLPOOL e67347b64b3a5a4f576b785b236e7403d685bcd4b962f6fa58f46f2910457f13dd247922881453aa8115cfd2b2041dded720fc4a5a8793b9a18d7d4781fba48d
diff --git a/games-action/openastromenace/metadata.xml b/games-action/openastromenace/metadata.xml
new file mode 100644
index 000000000000..6894dd761700
--- /dev/null
+++ b/games-action/openastromenace/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <upstream>
+ <remote-id type="sourceforge">openastromenace</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/openastromenace/openastromenace-1.3.2-r1.ebuild b/games-action/openastromenace/openastromenace-1.3.2-r1.ebuild
new file mode 100644
index 000000000000..ef7a4f821d85
--- /dev/null
+++ b/games-action/openastromenace/openastromenace-1.3.2-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2-utils cmake-utils eutils
+
+DESCRIPTION="Modern 3D space shooter with spaceship upgrade possibilities"
+HOMEPAGE="https://sourceforge.net/projects/openastromenace/"
+SRC_URI="mirror://sourceforge/openastromenace/${PV}/astromenace-src-${PV}.tar.bz2"
+
+LICENSE="GPL-3 GPL-3+ CC-BY-SA-3.0 UbuntuFontLicense-1.0 OFL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ media-libs/freealut
+ media-libs/freetype:2
+ media-libs/libogg
+ media-libs/libsdl[joystick,video,X]
+ media-libs/libvorbis
+ media-libs/openal
+ virtual/glu
+ virtual/opengl
+ x11-libs/libXinerama"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/AstroMenace
+
+src_prepare() {
+ default
+
+ # no messing with CXXFLAGS please.
+ sed -i -e '/-Os/d' CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=("-DDATADIR=/usr/share/${PN}")
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ "${CMAKE_BUILD_DIR}"/AstroMenace --pack \
+ --rawdata="${S}"/RAW_VFS_DATA \
+ --dir=$(dirname "${CMAKE_BUILD_DIR}") || die
+}
+
+src_install() {
+ newbin "${CMAKE_BUILD_DIR}"/AstroMenace "${PN}"
+
+ insinto /usr/share/${PN}
+ doins ../*.vfs
+
+ newicon -s 128 astromenace_128.png ${PN}.png
+ newicon -s 64 astromenace_64.png ${PN}.png
+
+ dodoc ChangeLog.txt ReadMe.txt
+
+ make_desktop_entry "${PN}" OpenAstroMenace
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-action/openastromenace/openastromenace-1.3.2.ebuild b/games-action/openastromenace/openastromenace-1.3.2.ebuild
new file mode 100644
index 000000000000..a84ba6057389
--- /dev/null
+++ b/games-action/openastromenace/openastromenace-1.3.2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit gnome2-utils cmake-utils eutils games
+
+DESCRIPTION="Modern 3D space shooter with spaceship upgrade possibilities"
+HOMEPAGE="https://sourceforge.net/projects/openastromenace/"
+SRC_URI="mirror://sourceforge/openastromenace/${PV}/astromenace-src-${PV}.tar.bz2"
+
+LICENSE="GPL-3 GPL-3+ CC-BY-SA-3.0 UbuntuFontLicense-1.0 OFL-1.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="virtual/opengl
+ virtual/glu
+ media-libs/libsdl[joystick,video,X]
+ media-libs/openal
+ media-libs/freealut
+ media-libs/freetype:2
+ media-libs/libogg
+ media-libs/libvorbis
+ x11-libs/libXinerama"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/AstroMenace
+
+src_prepare() {
+ # no messing with CXXFLAGS please.
+ sed -i -e '/-Os/d' CMakeLists.txt || die
+ epatch_user # bug #542930
+}
+
+src_configure() {
+ local mycmakeargs="-DDATADIR=${GAMES_DATADIR}/${PN}"
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ "${CMAKE_BUILD_DIR}"/AstroMenace --pack \
+ --rawdata="${S}"/RAW_VFS_DATA \
+ --dir=$(dirname "${CMAKE_BUILD_DIR}") || die
+}
+
+src_install() {
+ newgamesbin "${CMAKE_BUILD_DIR}"/AstroMenace "${PN}"
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins ../*.vfs
+
+ newicon -s 128 astromenace_128.png ${PN}.png
+ newicon -s 64 astromenace_64.png ${PN}.png
+
+ dodoc ChangeLog.txt ReadMe.txt
+
+ make_desktop_entry "${PN}" OpenAstroMenace
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}