diff options
author | Julian Ospald <hasufell@gentoo.org> | 2012-05-21 21:49:31 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2012-05-21 21:49:31 +0000 |
commit | 3402f5c841deed043cd178b3186890d2747936ce (patch) | |
tree | 26cadab98267948eacc0628079863b1158c62892 /games-rpg/sumwars | |
parent | Version bump. (diff) | |
download | gentoo-2-3402f5c841deed043cd178b3186890d2747936ce.tar.gz gentoo-2-3402f5c841deed043cd178b3186890d2747936ce.tar.bz2 gentoo-2-3402f5c841deed043cd178b3186890d2747936ce.zip |
initial import with Michael Kunz wrt #383377
(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)
Diffstat (limited to 'games-rpg/sumwars')
-rw-r--r-- | games-rpg/sumwars/ChangeLog | 10 | ||||
-rw-r--r-- | games-rpg/sumwars/Manifest | 5 | ||||
-rw-r--r-- | games-rpg/sumwars/files/sumwars-0.5.6-build.patch | 20 | ||||
-rw-r--r-- | games-rpg/sumwars/metadata.xml | 25 | ||||
-rw-r--r-- | games-rpg/sumwars/sumwars-0.5.6-r1.ebuild | 103 |
5 files changed, 163 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..eed6d9c7c8c3 --- /dev/null +++ b/games-rpg/sumwars/Manifest @@ -0,0 +1,5 @@ +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 2108 RMD160 1b894979f3e734b15234864aca90667251a85744 SHA1 4d4be02a521be2d2d76f339e325de8b48a89eb18 SHA256 7b8c5b02a1e39da5b24e6a953950d9faa5456ec560864893dbce7f38d4719bfe +MISC ChangeLog 327 RMD160 09a66d109df892bc675dcea0e5423ac1bd8cb24b SHA1 59f7f73a13113892e39f3b3e12b82f499caeaced SHA256 6816b888e9df3ba39fa657ca61594137ad4b470e6d3a3bda1113e037214b364e +MISC metadata.xml 750 RMD160 af7aaa3d7e71de4c6ee76a051ca5530bd6296fe5 SHA1 66e55741650e63ad93855d840b79d03bcd6a2cb2 SHA256 69972409eb8a18f5ddf91f93d30619e8327667942e70c738c35731fc54a2df77 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 +} |