summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2012-05-21 21:49:31 +0000
committerJulian Ospald <hasufell@gentoo.org>2012-05-21 21:49:31 +0000
commitc773dccabf284803b46b6886562957ee2e3e0529 (patch)
tree18bb535237a4dcf4e3761ca5df610cec81c3409e /games-rpg/sumwars
parentVersion bump. (diff)
downloadhistorical-c773dccabf284803b46b6886562957ee2e3e0529.tar.gz
historical-c773dccabf284803b46b6886562957ee2e3e0529.tar.bz2
historical-c773dccabf284803b46b6886562957ee2e3e0529.zip
initial import with Michael Kunz wrt #383377
Package-Manager: portage-2.2.0_alpha107/cvs/Linux x86_64
Diffstat (limited to 'games-rpg/sumwars')
-rw-r--r--games-rpg/sumwars/ChangeLog10
-rw-r--r--games-rpg/sumwars/Manifest19
-rw-r--r--games-rpg/sumwars/files/sumwars-0.5.6-build.patch20
-rw-r--r--games-rpg/sumwars/metadata.xml25
-rw-r--r--games-rpg/sumwars/sumwars-0.5.6-r1.ebuild103
5 files changed, 177 insertions, 0 deletions
diff --git a/games-rpg/sumwars/ChangeLog b/games-rpg/sumwars/ChangeLog
new file mode 100644
index 000000000000..da4eecb87907
--- /dev/null
+++ b/games-rpg/sumwars/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-rpg/sumwars
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/sumwars/ChangeLog,v 1.1 2012/05/21 21:49:31 hasufell Exp $
+
+*sumwars-0.5.6-r1 (21 May 2012)
+
+ 21 May 2012; Julian Ospald <hasufell@gentoo.org> +sumwars-0.5.6-r1.ebuild,
+ +files/sumwars-0.5.6-build.patch, +metadata.xml:
+ initial import with Michael Kunz wrt #383377
+
diff --git a/games-rpg/sumwars/Manifest b/games-rpg/sumwars/Manifest
new file mode 100644
index 000000000000..427aac1896ea
--- /dev/null
+++ b/games-rpg/sumwars/Manifest
@@ -0,0 +1,19 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX sumwars-0.5.6-build.patch 830 RMD160 e8f4c9053bf7b122429808ff4c48e9fa775c6e55 SHA1 b2cd71df8e63e2c0aa31a5798a76d9ebc9ee7a20 SHA256 9898e23528ab37d7ac0365c4de16cd27c3d0a89f78274fcfa8ca0008b2147992
+DIST sumwars-0.5.6-src.tar.bz2 100407198 RMD160 ac7d2c08eb4d2f9f4d4b454cd1d8b38af9255148 SHA1 1acaab279f5d94fb6599f2c0f91c79a1bfab7c7e SHA256 d180ed30d7e78efef3d7169aea9abb3bb2a7df465de4487d7a99056a6b85810a
+EBUILD sumwars-0.5.6-r1.ebuild 2213 RMD160 faddc916ecaa10ea3e51f9e0af5a5fd5e83fec2c SHA1 2ec475b092ed5e82364c5a47b73b151164813cef SHA256 703360835c79b36195033d66ecf1115d92671a9cfe562e16a8d056416429f873
+MISC ChangeLog 418 RMD160 7df4b84a63fbfa9f99115cc8a008532e8362f882 SHA1 ec8cf68bff8a4c13681890e60d896080a2a69e4a SHA256 a86cf62461dd78ccd543b3f73e49f102c4078fd7ba1c19fd856191043bc237c4
+MISC metadata.xml 750 RMD160 af7aaa3d7e71de4c6ee76a051ca5530bd6296fe5 SHA1 66e55741650e63ad93855d840b79d03bcd6a2cb2 SHA256 69972409eb8a18f5ddf91f93d30619e8327667942e70c738c35731fc54a2df77
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQEcBAEBAgAGBQJPurfkAAoJEFpvPKfnPDWz5IsH/AhJx0XWGoCloB/TRHgg+644
+x33mPrr/bFpVVR/FxmFyy8K7VxpMpcWrDfwOMI0lD2FmSBa8ulRoGkvx/fj+0vYN
+GDXiQ2DuWC7FtcfVynBD6ZFmfqlqRlaI3Lc1PSq4p8Lg+gYqZAEHSqj0tcyGZ0PZ
+80pjljaLu5yRUWuT/DuueZXu4mO/EoOoSd4iIGYfoOwSSG+IW4cqu3iqDiUORLUu
+FaXwb0WfDrsBA1QaVsOYJSXuJQhIU6jbNYx62yD/v+3AWVqLiZxE6/GLop29O4mb
+d92wCPJpQ4hEKJuZ+UODDIv5Gz9fXoHDkJH/rfG562qmdDaiDigNqfK2cY+8m+Q=
+=h6CU
+-----END PGP SIGNATURE-----
diff --git a/games-rpg/sumwars/files/sumwars-0.5.6-build.patch b/games-rpg/sumwars/files/sumwars-0.5.6-build.patch
new file mode 100644
index 000000000000..2dbfc11e095c
--- /dev/null
+++ b/games-rpg/sumwars/files/sumwars-0.5.6-build.patch
@@ -0,0 +1,20 @@
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -496,7 +496,7 @@
+ # RENAME "sumwars.png")
+ #endif()
+
+-install(FILES "AUTHORS" "COPYING" "README" # we intentionally avoid installing "INSTALL" here
++install(FILES "AUTHORS" "README" # we intentionally avoid installing "INSTALL" here
+ DESTINATION "${SUMWARS_DOC_DIR}")
+
+ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/share/data"
+@@ -516,7 +516,7 @@
+ SEPARATE_ARGUMENTS(SUMWARS_LANGUAGES)
+ foreach(i ${SUMWARS_LANGUAGES})
+ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/share/translation/${i}"
+- DESTINATION "${SUMWARS_SHARE_DIR}"
++ DESTINATION "${SUMWARS_SHARE_DIR}/translation"
+ FILES_MATCHING PATTERN "*.mo"
+ PATTERN ".hg" EXCLUDE
+ PATTERN "xmlgettext" EXCLUDE) # both pattern excludes are there to prevent the directories from being created
diff --git a/games-rpg/sumwars/metadata.xml b/games-rpg/sumwars/metadata.xml
new file mode 100644
index 000000000000..8f973cab258b
--- /dev/null
+++ b/games-rpg/sumwars/metadata.xml
@@ -0,0 +1,25 @@
+<?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>
+ <description>Maintainer, assign bugs to him</description>
+ </maintainer>
+ <maintainer>
+ <email>Michael.Kunz@s2005.tu-chemnitz.de</email>
+ <name>Michael Kunz</name>
+ <description>Proxy maintainer. CC him on bugs</description>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+ <upstream>
+ <changelog>http://sumwars.org/mantis/changelog_page.php</changelog>
+ <bugs-to>https://sumwars.org/mantis/index.php</bugs-to>
+ </upstream>
+ <use>
+ <flag name="tools">Builds editor tools</flag>
+ </use>
+</pkgmetadata>
+
diff --git a/games-rpg/sumwars/sumwars-0.5.6-r1.ebuild b/games-rpg/sumwars/sumwars-0.5.6-r1.ebuild
new file mode 100644
index 000000000000..040fcbfd15cb
--- /dev/null
+++ b/games-rpg/sumwars/sumwars-0.5.6-r1.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/sumwars/sumwars-0.5.6-r1.ebuild,v 1.1 2012/05/21 21:49:31 hasufell Exp $
+
+EAPI=3
+
+inherit cmake-utils eutils gnome2-utils games
+
+DESCRIPTION="a multi-player, 3D action role-playing game"
+HOMEPAGE="http://sumwars.org"
+SRC_URI="mirror://sourceforge/sumwars/${P//_/-}-src.tar.bz2"
+
+LICENSE="GPL-3 CCPL-Attribution-ShareAlike-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+tools debug"
+
+LANGS="de en it pl pt ru uk"
+for L in ${LANGS} ; do
+ IUSE="${IUSE} linguas_${L}"
+done
+unset L
+
+DEPEND="
+ >=dev-games/cegui-0.7.6-r1[ogre]
+ !>=dev-games/cegui-0.8
+ >=dev-games/ogre-1.7.0[freeimage,opengl,-threads]
+ !>=dev-games/ogre-1.9
+ dev-games/ois
+ dev-games/physfs
+ =dev-lang/lua-5.1*
+ >=dev-libs/tinyxml-2.6.2-r2
+ media-libs/freealut
+ media-libs/openal
+ media-libs/libogg
+ media-libs/libvorbis
+ >=net-libs/enet-1.3.0
+ x11-libs/libXrandr
+ tools? ( dev-libs/poco )"
+
+S=${WORKDIR}/${PN}-${PV%_*}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build.patch
+}
+
+src_configure() {
+ use debug && CMAKE_BUILD_TYPE=Debug
+
+ local l langs
+ for l in ${LANGS}; do
+ if use linguas_${l}; then
+ langs="${langs} ${l}"
+ fi
+ done
+
+ [ -z "${langs}" ] && langs="en"
+
+ # configure sumwars with cmake
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX=""
+ -DSUMWARS_LANGUAGES="${langs}"
+ -DSUMWARS_NO_TINYXML=ON
+ -DSUMWARS_NO_ENET=ON
+ -DSUMWARS_DOC_DIR="/usr/share/doc/${PF}"
+ -DSUMWARS_EXECUTABLE_DIR="${GAMES_BINDIR}"
+ -DSUMWARS_SHARE_DIR="${GAMES_DATADIR}/${PN}"
+ -DSUMWARS_STANDALONE_MODE=OFF
+ -DSUMWARS_POST_BUILD_COPY=OFF
+ -DSUMWARS_PORTABLE_MODE=OFF
+ -DSUMWARS_RANDOM_REGIONS=ON
+ $(cmake-utils_use tools SUMWARS_BUILD_TOOLS)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ insinto /usr/share/icons/hicolor/128x128/apps
+ newins share/icon/SumWarsIcon_128x128.png ${PN}.png
+ make_desktop_entry ${PN} "Summoning Wars"
+ prepalldocs
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}