summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2020-03-19 23:13:09 +0300
committerAzamat H. Hackimov <azamat.hackimov@gmail.com>2020-03-19 23:13:09 +0300
commitbe9dcd19cc898481ef3ba28c0c2174c35735f826 (patch)
tree46cd5c9ca5093894a0372f78e8cf0375488295d3
parentgames-rpg/arx-fatalis-demo: update ebuild (diff)
downloadgamerlay-be9dcd19cc898481ef3ba28c0c2174c35735f826.tar.gz
gamerlay-be9dcd19cc898481ef3ba28c0c2174c35735f826.tar.bz2
gamerlay-be9dcd19cc898481ef3ba28c0c2174c35735f826.zip
games-rpg/arx-libertatis: save from portage
Updated ebuild, update to EAPI 7 and cmake eclass. Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
-rw-r--r--games-rpg/arx-libertatis/Manifest1
-rw-r--r--games-rpg/arx-libertatis/arx-libertatis-1.1.2_p2.ebuild85
-rw-r--r--games-rpg/arx-libertatis/files/arx-libertatis-1.1.2-cmake-3.5.patch34
-rw-r--r--games-rpg/arx-libertatis/metadata.xml55
4 files changed, 175 insertions, 0 deletions
diff --git a/games-rpg/arx-libertatis/Manifest b/games-rpg/arx-libertatis/Manifest
new file mode 100644
index 0000000..d8d9120
--- /dev/null
+++ b/games-rpg/arx-libertatis/Manifest
@@ -0,0 +1 @@
+DIST arx-libertatis-1.1.2_p2.tar.gz 1289955 SHA256 adcf960bf6ab27f5339d4ed54d38181816a2c215cc969c7a55cfe56212708cef SHA512 b4b462ce707aea835b1cec0f623eb411a4bc5888a7dcd5d9ef0b5cf083145f89d4d8b325a6d47534bb086217fd18114c176501f1d0960e5e277f7ae5140d779b WHIRLPOOL 34170560486651f0747435e70e453109fc48dacebff91dfa5b25c9a2492e0ef8d84c34aa6914400687545ff58e0152a1d2517996915de025945894a81da90e17
diff --git a/games-rpg/arx-libertatis/arx-libertatis-1.1.2_p2.ebuild b/games-rpg/arx-libertatis/arx-libertatis-1.1.2_p2.ebuild
new file mode 100644
index 0000000..68ac100
--- /dev/null
+++ b/games-rpg/arx-libertatis/arx-libertatis-1.1.2_p2.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+CMAKE_WARN_UNUSED_CLI=yes
+inherit cmake
+
+MY_PV=${PV/_p/-r}
+
+DESCRIPTION="Cross-platform port of Arx Fatalis, a first-person role-playing game"
+HOMEPAGE="https://arx-libertatis.org/"
+SRC_URI="https://github.com/arx/ArxLibertatis/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+c++11 crash-reporter debug static tools +unity-build"
+
+COMMON_DEPEND="
+ media-libs/freetype
+ media-libs/libsdl[X,video,opengl]
+ media-libs/openal
+ sys-libs/zlib:=
+ virtual/opengl
+ crash-reporter? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5[ssl]
+ dev-qt/qtwidgets:5
+ )
+ !static? ( media-libs/glew:= )"
+RDEPEND="${COMMON_DEPEND}
+ crash-reporter? ( sys-devel/gdb )"
+DEPEND="${COMMON_DEPEND}
+ dev-libs/boost
+ virtual/pkgconfig
+ static? ( media-libs/glew[static-libs] )"
+
+DOCS=( README.md AUTHORS CHANGELOG )
+
+PATCHES=( "${FILESDIR}/${PN}-1.1.2-cmake-3.5.patch" )
+
+S="${WORKDIR}/ArxLibertatis-${MY_PV}"
+
+src_configure() {
+ # editor does not build
+ local mycmakeargs=(
+ -DBUILD_EDITOR=OFF
+ -DBUILD_TOOLS=$(usex tools)
+ -DDEBUG=$(usex debug)
+ -DICONDIR=/usr/share/icons/hicolor/128x128/apps
+ -DINSTALL_SCRIPTS=ON
+ -DSET_OPTIMIZATION_FLAGS=OFF
+ -DSTRICT_USE=ON
+ -DUNITY_BUILD=$(usex unity-build)
+ -DUSE_CXX11=$(usex c++11)
+ -DUSE_NATIVE_FS=ON
+ -DUSE_OPENAL=ON
+ -DUSE_OPENGL=ON
+ -DUSE_SDL=ON
+ -DBUILD_CRASHREPORTER=$(usex crash-reporter)
+ $(usex crash-reporter "-DUSE_QT5=ON" "")
+ -DUSE_STATIC_LIBS=$(usex static)
+ )
+
+ cmake_src_configure
+}
+
+pkg_postinst() {
+ elog "optional dependencies:"
+ elog " games-rpg/arx-fatalis-data (from CD or GOG)"
+ elog " games-rpg/arx-fatalis-demo (free demo)"
+ elog
+ elog "This package only installs the game binary."
+ elog "You need the demo or full game data. Also see:"
+ elog "http://wiki.arx-libertatis.org/Getting_the_game_data"
+ elog
+ elog "If you have already installed the game or use the STEAM version,"
+ elog "run \"/usr/bin/arx-install-data\""
+}
+
+#pkg_postrm() {
+# gnome2_icon_cache_update
+#}
diff --git a/games-rpg/arx-libertatis/files/arx-libertatis-1.1.2-cmake-3.5.patch b/games-rpg/arx-libertatis/files/arx-libertatis-1.1.2-cmake-3.5.patch
new file mode 100644
index 0000000..d085afa
--- /dev/null
+++ b/games-rpg/arx-libertatis/files/arx-libertatis-1.1.2-cmake-3.5.patch
@@ -0,0 +1,34 @@
+From c4262bc600dc01d3ddbacc7811132b29ea46ad3b Mon Sep 17 00:00:00 2001
+From: Daniel Scharrer <daniel@constexpr.org>
+Date: Thu, 24 Mar 2016 22:47:44 +0100
+Subject: [PATCH] CMake: Disable variable expansion for quoted strings in if()
+
+This makes the build system more robust against stray variables
+coming from included CMake scripts provided by the system.
+
+Fixes build with CMake 3.5.
+
+This has been fixed in master with commit 60e43c.
+---
+ CMakeLists.txt | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 93f1ee3..8347544 100755
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -13,6 +13,11 @@ else()
+ cmake_minimum_required(VERSION 2.8)
+ endif()
+
++if(POLICY CMP0054)
++ # CMake 3.1+: Only interpret if() arguments as variables or keywords when unquoted.
++ cmake_policy(SET CMP0054 NEW)
++endif()
++
+
+ # Define configuration options
+
+--
+2.7.4
+
diff --git a/games-rpg/arx-libertatis/metadata.xml b/games-rpg/arx-libertatis/metadata.xml
new file mode 100644
index 0000000..8a7355e
--- /dev/null
+++ b/games-rpg/arx-libertatis/metadata.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <use>
+ <flag name="c++11">Build using the C++11 standard.</flag>
+ <flag name="crash-reporter">Build a <pkg>dev-qt/qtgui</pkg>-based
+ tool that allows to submit crash information to the upstream
+ backtracker.</flag>
+ <flag name="debug">Enable asserts and debug logging.</flag>
+ <flag name="static">Link libraries statically, currently only
+ <pkg>media-libs/glew</pkg></flag>
+ <flag name="tools">Build tools that can extract the game's data and
+ save files.</flag>
+ <flag name="unity-build">Build everything in one big source file,
+ allowing for faster build times and better optimizations at
+ the cost of higher memory usage.</flag>
+ </use>
+ <longdescription lang="en">
+ Arx Libertatis is a cross-platform, open source port of
+ Arx Fatalis, a 2002 first-person role-playing game/dungeon crawler
+ developed by Arkane Studios.
+ Arx Fatalis features crafting, melee and ranged combat, as well
+ as a unique casting system where the player draws runes in real
+ time to effect the desired spell.
+ Arx Libertatis updates and improves Arx Fatalis by supporting
+ modern systems, porting the game to new systems as well as
+ eliminating bugs and limitations.
+ </longdescription>
+ <longdescription lang="de">
+ Arx Libertatis ist eine cross-platform, open source Portierung
+ von Arx Fatalis, ein Rollenspiel/Dungeon Crawler in Ego-Perspektive
+ aus dem Jahr 2002, entwickelt von Arkane Studios.
+ Arx Fatalist umfasst das Herstellen von Gegenständen,
+ Nah- und Fernkampf, sowie ein einzigartiges Magiesystem,
+ in dem der Spieler Runen in Echtzeit zeichnen muss, um einen
+ Zauberspruch auszusprechen.
+ Arx Libertatis aktualisiert und verbessert Arx Fatalis, indem
+ es moderne Systeme unterstützt, das Spiel auch zu neuen Systemen
+ portiert und bugs und Beschränkungen behebt.
+ </longdescription>
+ <upstream>
+ <maintainer status="active">
+ <email>daniel@constexpr.org</email>
+ <name>Daniel Scharrer</name>
+ </maintainer>
+ <bugs-to>https://bugs.arx-libertatis.org/</bugs-to>
+ <changelog>
+ http://wiki.arx-libertatis.org/Changelog
+ </changelog>
+ <doc lang="en">http://wiki.arx-libertatis.org/</doc>
+ <remote-id type="github">arx/ArxLibertatis</remote-id>
+ <remote-id type="sourceforge">arx</remote-id>
+ <remote-id type="freecode">arx-libertatis</remote-id>
+ </upstream>
+</pkgmetadata>