commit:     e35221bcbfc0092b4bb4225bd6699983dffb3c17
Author:     Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Sun May 23 06:50:17 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sun May 23 09:40:08 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e35221bc

games-engines/fs2_open:

Initial commit for games-engines/fs2_open

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Jonas Frei <freijon <AT> pm.me>

 .../fs2_open-21.2.0-make-arch-independent.patch    | 14 +++++
 games-engines/fs2_open/fs2_open-21.2.0.ebuild      | 61 ++++++++++++++++++++++
 games-engines/fs2_open/metadata.xml                | 18 +++++++
 3 files changed, 93 insertions(+)

diff --git 
a/games-engines/fs2_open/files/fs2_open-21.2.0-make-arch-independent.patch 
b/games-engines/fs2_open/files/fs2_open-21.2.0-make-arch-independent.patch
new file mode 100644
index 000000000..8bd511129
--- /dev/null
+++ b/games-engines/fs2_open/files/fs2_open-21.2.0-make-arch-independent.patch
@@ -0,0 +1,14 @@
+--- fs2_open-21.2.0/cmake/version.cmake        2021-05-22 20:20:18.448441242 
+0200
++++ fs2_open-21.2.0/cmake/version.cmake        2021-05-22 20:21:05.493447003 
+0200
+@@ -35,11 +35,6 @@
+     SET(FSO_BINARY_SUFFIX 
"${FSO_VERSION_MAJOR}_${FSO_VERSION_MINOR}_${FSO_VERSION_BUILD}_${FSO_VERSION_REVISION_STR}")
+ ENDIF()
+ 
+-IF(IS_64BIT)
+-      # This is a 64-bit builds
+-    SET(FSO_BINARY_SUFFIX "${FSO_BINARY_SUFFIX}_x64")
+-ENDIF()
+-
+ IF (NOT "${FSO_INSTRUCTION_SET}" STREQUAL "")
+     SET(FSO_BINARY_SUFFIX "${FSO_BINARY_SUFFIX}_${FSO_INSTRUCTION_SET}")
+ ENDIF()

diff --git a/games-engines/fs2_open/fs2_open-21.2.0.ebuild 
b/games-engines/fs2_open/fs2_open-21.2.0.ebuild
new file mode 100644
index 000000000..11720db3a
--- /dev/null
+++ b/games-engines/fs2_open/fs2_open-21.2.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit git-r3
+inherit cmake
+
+# Replace "." with "_" in version
+_PV=${PV//./_}
+
+DESCRIPTION="FreeSpace2 Source Code Project game engine"
+HOMEPAGE="https://github.com/scp-fs2open/fs2open.github.com/";
+EGIT_REPO_URI="https://github.com/scp-fs2open/fs2open.github.com.git";
+EGIT_COMMIT="release_${_PV}"
+
+LICENSE="Unlicense"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+       media-libs/libjpeg-turbo
+       media-libs/libpng
+       media-libs/libtheora
+       media-libs/libvorbis
+       >=dev-lang/lua-5.1.0:*
+       media-libs/mesa
+       media-libs/openal
+       media-libs/libsdl2
+       media-libs/glu
+       dev-libs/jansson
+       app-arch/lz4
+"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+CMAKE_BUILD_TYPE=Release
+
+src_prepare() {
+       eapply "${FILESDIR}/${P}-make-arch-independent.patch"
+       eapply_user
+       cmake_src_prepare
+}
+
+src_install() {
+       exeinto "/opt/${PN}"
+       doexe "${BUILD_DIR}/bin/${PN}_${_PV}"
+       insinto "/opt/${PN}"
+       doins "${BUILD_DIR}/bin/libRocketControls.so"
+       doins "${BUILD_DIR}/bin/libRocketControlsLua.so"
+       doins "${BUILD_DIR}/bin/libRocketCore.so"
+       doins "${BUILD_DIR}/bin/libRocketCoreLua.so"
+       doins "${BUILD_DIR}/bin/libRocketDebugger.so"
+       doins "${BUILD_DIR}/bin/libdiscord-rpc.so"
+}
+
+pkg_postinst() {
+       einfo "This package only generates the engine binary."
+       einfo "The retail Freespace 2 data is required to play the"
+       einfo "original game and most mods."
+}

diff --git a/games-engines/fs2_open/metadata.xml 
b/games-engines/fs2_open/metadata.xml
new file mode 100644
index 000000000..ae3fd23ea
--- /dev/null
+++ b/games-engines/fs2_open/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+        <maintainer type="person">
+                <name>Jonas Frei</name>
+                <email>[email protected]</email>
+        </maintainer>
+        <longdescription>
+                fs2_open is the game enginge of the FreeSpace2 Source Code 
Project.
+               This package is not the complete game, but rather the game 
engine
+               that runs the game. The game data files have to be installed
+               manually.
+        </longdescription>
+        <upstream>
+                <remote-id 
type="github">scp-fs2open/fs2open.github.com</remote-id>
+                
<bugs-to>https://github.com/scp-fs2open/fs2open.github.com/issues</bugs-to>
+        </upstream>
+</pkgmetadata>

Reply via email to