public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/gamerlay:master commit in: games-rpg/arx-libertatis/files/, games-rpg/arx-libertatis/
@ 2020-03-19 20:13 Azamat H. Hackimov
  0 siblings, 0 replies; 2+ messages in thread
From: Azamat H. Hackimov @ 2020-03-19 20:13 UTC (permalink / raw
  To: gentoo-commits

commit:     be9dcd19cc898481ef3ba28c0c2174c35735f826
Author:     Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Thu Mar 19 20:13:09 2020 +0000
Commit:     Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Thu Mar 19 20:13:09 2020 +0000
URL:        https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=be9dcd19

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 <AT> gmail.com>

 .../arx-libertatis/arx-libertatis-1.1.2_p2.ebuild  | 85 ++++++++++++++++++++++
 .../files/arx-libertatis-1.1.2-cmake-3.5.patch     | 34 +++++++++
 games-rpg/arx-libertatis/metadata.xml              | 55 ++++++++++++++
 3 files changed, 174 insertions(+)

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>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] proj/gamerlay:master commit in: games-rpg/arx-libertatis/files/, games-rpg/arx-libertatis/
@ 2022-08-16  2:23 Azamat H. Hackimov
  0 siblings, 0 replies; 2+ messages in thread
From: Azamat H. Hackimov @ 2022-08-16  2:23 UTC (permalink / raw
  To: gentoo-commits

commit:     9cacfd47ccdf300fdd81d5e936997fa3a1577715
Author:     Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Tue Aug 16 02:04:22 2022 +0000
Commit:     Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Tue Aug 16 02:05:12 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=9cacfd47

games-rpg/arx-libertatis: add 1.2.1, drop 1.1.2_p2-r1

Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>

 ....2_p2-r1.ebuild => arx-libertatis-1.2.1.ebuild} | 18 ++++--------
 .../files/arx-libertatis-1.1.2-cmake-3.5.patch     | 34 ----------------------
 games-rpg/arx-libertatis/metadata.xml              |  1 -
 3 files changed, 5 insertions(+), 48 deletions(-)

diff --git a/games-rpg/arx-libertatis/arx-libertatis-1.1.2_p2-r1.ebuild b/games-rpg/arx-libertatis/arx-libertatis-1.2.1.ebuild
similarity index 80%
rename from games-rpg/arx-libertatis/arx-libertatis-1.1.2_p2-r1.ebuild
rename to games-rpg/arx-libertatis/arx-libertatis-1.2.1.ebuild
index d828706..52ee815 100644
--- a/games-rpg/arx-libertatis/arx-libertatis-1.1.2_p2-r1.ebuild
+++ b/games-rpg/arx-libertatis/arx-libertatis-1.2.1.ebuild
@@ -6,20 +6,20 @@ 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"
+SRC_URI="https://github.com/arx/ArxLibertatis/releases/download/${PV}/${P}.tar.xz"
 
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="+c++11 crash-reporter debug static tools +unity-build"
+IUSE="crash-reporter debug static tools +unity-build"
 
 COMMON_DEPEND="
 	media-libs/freetype
-	media-libs/libsdl[X,video,opengl]
+	media-libs/glm
+	media-libs/libepoxy
+	media-libs/libsdl2[X,video,opengl]
 	media-libs/openal
 	sys-libs/zlib:=
 	virtual/opengl
@@ -39,14 +39,8 @@ BDEPEND="virtual/pkgconfig"
 
 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
@@ -54,11 +48,9 @@ src_configure() {
 		-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)

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
deleted file mode 100644
index d085afa..0000000
--- a/games-rpg/arx-libertatis/files/arx-libertatis-1.1.2-cmake-3.5.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-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
index 8a7355e..3d1bf51 100644
--- a/games-rpg/arx-libertatis/metadata.xml
+++ b/games-rpg/arx-libertatis/metadata.xml
@@ -50,6 +50,5 @@
 		<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>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-16  2:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-19 20:13 [gentoo-commits] proj/gamerlay:master commit in: games-rpg/arx-libertatis/files/, games-rpg/arx-libertatis/ Azamat H. Hackimov
  -- strict thread matches above, loose matches on Subject: below --
2022-08-16  2:23 Azamat H. Hackimov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox