diff options
author | Julian Ospald <hasufell@gentoo.org> | 2012-07-31 09:10:33 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2012-07-31 09:10:33 +0000 |
commit | dcc292b40bd8c568690c5910260e297892cc886c (patch) | |
tree | 193a9c8dfc47ff8d58fa51cfa8e6cd048beaba73 /games-rpg | |
parent | Repeat failed Manifest commit (diff) | |
download | gentoo-2-dcc292b40bd8c568690c5910260e297892cc886c.tar.gz gentoo-2-dcc292b40bd8c568690c5910260e297892cc886c.tar.bz2 gentoo-2-dcc292b40bd8c568690c5910260e297892cc886c.zip |
version bump
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'games-rpg')
-rw-r--r-- | games-rpg/arx-libertatis/ChangeLog | 8 | ||||
-rw-r--r-- | games-rpg/arx-libertatis/arx-libertatis-1.0.3.ebuild | 93 | ||||
-rw-r--r-- | games-rpg/arx-libertatis/files/arx-libertatis-1.0.3-gentoo.patch | 74 |
3 files changed, 174 insertions, 1 deletions
diff --git a/games-rpg/arx-libertatis/ChangeLog b/games-rpg/arx-libertatis/ChangeLog index 87ce30d509de..e25a438cb8d8 100644 --- a/games-rpg/arx-libertatis/ChangeLog +++ b/games-rpg/arx-libertatis/ChangeLog @@ -1,6 +1,12 @@ # 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.6 2012/07/31 09:07:27 hasufell Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-rpg/arx-libertatis/ChangeLog,v 1.7 2012/07/31 09:10:33 hasufell Exp $ + +*arx-libertatis-1.0.3 (31 Jul 2012) + + 31 Jul 2012; Julian Ospald <hasufell@gentoo.org> + +arx-libertatis-1.0.3.ebuild, +files/arx-libertatis-1.0.3-gentoo.patch: + version bump 31 Jul 2012; Julian Ospald <hasufell@gentoo.org> arx-libertatis-1.0.2-r1.ebuild: diff --git a/games-rpg/arx-libertatis/arx-libertatis-1.0.3.ebuild b/games-rpg/arx-libertatis/arx-libertatis-1.0.3.ebuild new file mode 100644 index 000000000000..9df38dee499a --- /dev/null +++ b/games-rpg/arx-libertatis/arx-libertatis-1.0.3.ebuild @@ -0,0 +1,93 @@ +# 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.3.ebuild,v 1.1 2012/07/31 09:10:33 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://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:4[ssl] + x11-libs/qt-gui:4 + )" +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) + -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}" + -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 + dogamesbin "${FILESDIR}"/arx-data-copy + 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 + elog "You might want to enable cdinstall or demo useflag." + elog + elog "If you have already installed the game or use the STEAM version," + elog "run \"${GAMES_BINDIR}/arx-data-copy /path/to/installed-arx /usr/local/share/games/arx\"." + 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.3-gentoo.patch b/games-rpg/arx-libertatis/files/arx-libertatis-1.0.3-gentoo.patch new file mode 100644 index 000000000000..c1da7f7136d1 --- /dev/null +++ b/games-rpg/arx-libertatis/files/arx-libertatis-1.0.3-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") |