diff options
author | Julian Ospald <hasufell@gentoo.org> | 2012-06-29 21:47:41 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2012-06-29 21:47:41 +0000 |
commit | c5d6bed9a18b7f9a47fecf6758324ba64418eafe (patch) | |
tree | 7ca82171bdecd98be04213050841505dad116947 /games-rpg | |
parent | add licenses for arx fatalis (diff) | |
download | gentoo-2-c5d6bed9a18b7f9a47fecf6758324ba64418eafe.tar.gz gentoo-2-c5d6bed9a18b7f9a47fecf6758324ba64418eafe.tar.bz2 gentoo-2-c5d6bed9a18b7f9a47fecf6758324ba64418eafe.zip |
initial import
(Portage version: 2.2.0_alpha114/cvs/Linux x86_64)
Diffstat (limited to 'games-rpg')
-rw-r--r-- | games-rpg/arx-libertatis/ChangeLog | 11 | ||||
-rw-r--r-- | games-rpg/arx-libertatis/Manifest | 5 | ||||
-rw-r--r-- | games-rpg/arx-libertatis/arx-libertatis-1.0.2.ebuild | 88 | ||||
-rw-r--r-- | games-rpg/arx-libertatis/files/arx-libertatis-1.0.2-gentoo.patch | 74 | ||||
-rw-r--r-- | games-rpg/arx-libertatis/metadata.xml | 26 |
5 files changed, 204 insertions, 0 deletions
diff --git a/games-rpg/arx-libertatis/ChangeLog b/games-rpg/arx-libertatis/ChangeLog new file mode 100644 index 000000000000..376f08942ef3 --- /dev/null +++ b/games-rpg/arx-libertatis/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for games-rpg/arx-libertatis +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/arx-libertatis/ChangeLog,v 1.1 2012/06/29 21:47:41 hasufell Exp $ + +*arx-libertatis-1.0.2 (29 Jun 2012) + + 29 Jun 2012; Julian Ospald <hasufell@gentoo.org> + +arx-libertatis-1.0.2.ebuild, +files/arx-libertatis-1.0.2-gentoo.patch, + +metadata.xml: + initial import + diff --git a/games-rpg/arx-libertatis/Manifest b/games-rpg/arx-libertatis/Manifest new file mode 100644 index 000000000000..c110888a3eca --- /dev/null +++ b/games-rpg/arx-libertatis/Manifest @@ -0,0 +1,5 @@ +AUX arx-libertatis-1.0.2-gentoo.patch 2009 RMD160 0f134e5c9db796456380b850a75aef892b34537d SHA1 4d97655a5ace73df5e955d20367eb96967848aa6 SHA256 99ee2ac74a12adf7d614a1561e4eeced9adc5f6498c613e6e3cf6455913c333f +DIST arx-libertatis-1.0.2.tar.xz 912096 RMD160 dce30c0a172758ae27e68883f5556fe2492d0300 SHA1 7295564eb93a8282546d02f9f75b18edfc235d63 SHA256 cd40510563f93149f237df55d373900f85eb05c9cc5731efe4d173f314d4fadd +EBUILD arx-libertatis-1.0.2.ebuild 2013 RMD160 dd96e884172fb40946917f0d575d80dfd87fc320 SHA1 28ec6abc4286ddaa8c0ba882290a7e08723f56bb SHA256 52297a1c6bbcbc7377f58e0336a62e874ff2f02e88d7a1efb367da3398f1908f +MISC ChangeLog 322 RMD160 2198ed62cbb0f21dd2e6d196963f6409e37d03af SHA1 c417ef2df72fe0ebf112023fddda63ea1b6266e3 SHA256 b229a1104186bbdd02e83770b6e6c0397f60261e41b92c66c6c9c09580068a5f +MISC metadata.xml 952 RMD160 575c372defdae95897f8d47b4f9c83e3a4e4c5a5 SHA1 0958f2ac80a3484d85057647bc75574ac74554cb SHA256 b74747eda1686586d9c7fbeaf3f52102af43f468704707c5702670caa5e03aed diff --git a/games-rpg/arx-libertatis/arx-libertatis-1.0.2.ebuild b/games-rpg/arx-libertatis/arx-libertatis-1.0.2.ebuild new file mode 100644 index 000000000000..570d0d2bdf78 --- /dev/null +++ b/games-rpg/arx-libertatis/arx-libertatis-1.0.2.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/arx-libertatis/arx-libertatis-1.0.2.ebuild,v 1.1 2012/06/29 21:47:41 hasufell Exp $ + +EAPI=4 + +inherit eutils cmake-utils gnome2-utils games + +DESCRIPTION="Cross-platform port of Arx Fatalis, a first-person role-playing game" +HOMEPAGE="http://arx-libertatis.org/" +SRC_URI="mirror://github/arx/ArxLibertatis/${P}.tar.xz + mirror://sourceforge/arx/${P}/${P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cdinstall demo debug unity-build crash-reporter tools" + +COMMON_DEPEND=">=dev-libs/boost-1.39 + media-libs/devil[jpeg] + media-libs/freetype + media-libs/glew + media-libs/libsdl[opengl] + media-libs/openal + sys-libs/zlib + virtual/opengl + x11-libs/libX11 + crash-reporter? ( + x11-libs/qt-core[ssl] + x11-libs/qt-gui + )" +RDEPEND="${COMMON_DEPEND} + crash-reporter? ( sys-devel/gdb )" +DEPEND="${COMMON_DEPEND}" +PDEPEND="cdinstall? ( >=games-rpg/arx-fatalis-data-1.21 ) + demo? ( games-rpg/arx-fatalis-demo )" + +DOCS=( README.md AUTHORS CHANGELOG ) + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch +} + +src_configure() { + use debug && CMAKE_BUILD_TYPE=Debug + + # editor does not build + local mycmakeargs=( + $(cmake-utils_use unity-build UNITY_BUILD) + $(cmake-utils_use_build tools TOOLS) + $(cmake-utils_use_build crash-reporter CRASHREPORTER) + -DGAMESBINDIR="${GAMES_BINDIR}" + -DCMAKE_INSTALL_DATAROOTDIR="${GAMES_DATADIR_BASE}" + -DICONDIR=/usr/share/icons/hicolor/128x128/apps + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + einfo "This package only installs the game binary." + if ! use cdinstall || ! use demo ; then + elog "You need the demo or full game data." + elog "See http://wiki.arx-libertatis.org/Getting_the_game_data for more information" + elog "or enable cdinstall or demo useflag." + fi + + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-rpg/arx-libertatis/files/arx-libertatis-1.0.2-gentoo.patch b/games-rpg/arx-libertatis/files/arx-libertatis-1.0.2-gentoo.patch new file mode 100644 index 000000000000..c1da7f7136d1 --- /dev/null +++ b/games-rpg/arx-libertatis/files/arx-libertatis-1.0.2-gentoo.patch @@ -0,0 +1,74 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Wed Jun 27 22:04:32 UTC 2012 +Subject: build system + +respect flags + +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -365,21 +365,6 @@ + + endif() + +- # Warning level +- add_cxxflag("-Wall") +- add_cxxflag("-Wextra") +- add_cxxflag("-Wformat=2") +- add_cxxflag("-Wundef") +- add_cxxflag("-Wpointer-arith") +- add_cxxflag("-Wcast-qual") +- add_cxxflag("-Woverloaded-virtual") +- add_cxxflag("-Wlogical-op") +- +- add_cxxflag("-Wliteral-conversion") +- add_cxxflag("-Wshift-overflow") +- add_cxxflag("-Woverflow") +- add_cxxflag("-Wbool-conversions") +- + # TODO enable: + # add_cxxflag("-Wconversion") # very noisy + # add_cxxflag("-Wsign-conversion") # very noisy +@@ -391,27 +376,12 @@ + endif() + + if(CMAKE_BUILD_TYPE STREQUAL "Debug") +- +- #Debug + add_definitions(-D_DEBUG) +- +- check_compiler_flag(RESULT "-g3") +- if(NOT RESULT STREQUAL "") +- string(REGEX REPLACE "-g(|[0-9]|gdb)" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}") +- set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${RESULT}") +- endif() +- +- check_compiler_flag(RESULT "-O0") +- string(REGEX REPLACE "-O[0-9]" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}") +- set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${RESULT}") +- + elseif(CMAKE_BUILD_TYPE STREQUAL "Release") +- + if((NOT CMAKE_CXX_FLAGS MATCHES "-g(|[0-9]|gdb)") + AND (NOT CMAKE_CXX_FLAGS_RELEASE MATCHES "-g(|[0-9]|gdb)")) + add_cxxflag("-g2") + endif() +- + endif() + + if(DEBUG_EXTRA) +@@ -419,15 +389,7 @@ + add_cxxflag("-fbounds-checking") + add_cxxflag("-fcatch-undefined-behavior") + add_cxxflag("-Wstrict-aliasing=1") +- else() +- # -Wuninitialized causes too many false positives +- add_cxxflag("-Wno-uninitialized") +- # (clang only) Conflicts with using const variables for configuration. +- add_cxxflag("-Wno-constant-logical-operand") + endif() +- +- # Because we are lazy +- add_ldflag("-Wl,--as-needed") + + # Xcode does not support -isystem yet + if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") diff --git a/games-rpg/arx-libertatis/metadata.xml b/games-rpg/arx-libertatis/metadata.xml new file mode 100644 index 000000000000..d618b599beea --- /dev/null +++ b/games-rpg/arx-libertatis/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>hasufell@gentoo.org</email> + <name>Julian Ospald</name> + </maintainer> + <use> + <flag name='debug'>Enable asserts and debug logging.</flag> + <flag name='crash-reporter'>Build a <pkg>x11-libs/qt-gui</pkg>-based + tool that allows to submit crash information to the upstream + backtracker.</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> + <flag name='demo'>Install the Arx Fatalis demo data.</flag> + </use> + <upstream> + <doc lang="en">http://wiki.arx-libertatis.org/</doc> + <bugs-to>https://bugs.arx-libertatis.org/</bugs-to> + </upstream> +</pkgmetadata> + |