diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-03-10 02:45:28 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-03-10 02:45:28 +0000 |
commit | ec6abf499ba2361c7d1bca421c89e644725597c2 (patch) | |
tree | 294e0e4ededc91eeb464a9c5539ac8a32ee71a77 /games-strategy | |
parent | version bump (diff) | |
download | gentoo-2-ec6abf499ba2361c7d1bca421c89e644725597c2.tar.gz gentoo-2-ec6abf499ba2361c7d1bca421c89e644725597c2.tar.bz2 gentoo-2-ec6abf499ba2361c7d1bca421c89e644725597c2.zip |
initial import wrt #159251
(Portage version: 2.2.0_alpha166/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-strategy')
-rw-r--r-- | games-strategy/freesynd/ChangeLog | 10 | ||||
-rw-r--r-- | games-strategy/freesynd/Manifest | 5 | ||||
-rw-r--r-- | games-strategy/freesynd/files/freesynd-0.7-cmake.patch | 28 | ||||
-rw-r--r-- | games-strategy/freesynd/freesynd-0.7.ebuild | 80 | ||||
-rw-r--r-- | games-strategy/freesynd/metadata.xml | 13 |
5 files changed, 136 insertions, 0 deletions
diff --git a/games-strategy/freesynd/ChangeLog b/games-strategy/freesynd/ChangeLog new file mode 100644 index 000000000000..827014c577d2 --- /dev/null +++ b/games-strategy/freesynd/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for games-strategy/freesynd +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freesynd/ChangeLog,v 1.1 2013/03/10 02:45:28 hasufell Exp $ + +*freesynd-0.7 (10 Mar 2013) + + 10 Mar 2013; Julian Ospald <hasufell@gentoo.org> +freesynd-0.7.ebuild, + +files/freesynd-0.7-cmake.patch, +metadata.xml: + initial import wrt #159251 + diff --git a/games-strategy/freesynd/Manifest b/games-strategy/freesynd/Manifest new file mode 100644 index 000000000000..08ed69429c1f --- /dev/null +++ b/games-strategy/freesynd/Manifest @@ -0,0 +1,5 @@ +AUX freesynd-0.7-cmake.patch 927 SHA256 bd1c184dd9b6f6f067b88641f12da51e883f2483296f26bf7c2ca93813423181 SHA512 20d74e9aac808a4ae4153db13842d650127572a2b80efa3eab35b8c486c1a135c268639ca6e237e048522936cc46d81d94ebaf51999331949f8a177501a8b299 WHIRLPOOL 2200240895a93be67fe3414408b83372488af8c20e15b4693b0e7bfd66e8744fef46cd8156a38bc5e85e6e4bfb21dc2b2ce7b242f16fbb1f6145fb7174c2ba17 +DIST freesynd-0.7.tar.gz 2567796 SHA256 7b21d55cd9f8b1113c578814081a35f66b403799024395ab9ec928fdaffbd216 SHA512 3a5c50770aeec2cebb80a1234368e9f2c8c7e5e5a1c32e57d7943341c18d0544ff3818580e3f10b70f95a36769ed735ccaa943d00ef9c1e58fae292b67648843 WHIRLPOOL 1c0f29fc7db1abdb9bfe6cf98afce48a10e8756193867725c1d4c15980cc42cce8789554ce4aa346295e7c410cd0c35059bc67bc7bfc535bddf76346c265cee8 +EBUILD freesynd-0.7.ebuild 1683 SHA256 9aba8ec29368e0fcdf805cbe33abd169f92c2b16933bcd6a63acf40b7d36fb9f SHA512 3f86a80cd30a40fc5de1391b3fa82ce44718f894738e94a03401538a49c4906acdfbb2245f3d8bd34e3abf9329b1a43cb7447ca2db046474117c5006fb6dbee1 WHIRLPOOL ec55f9322e62b54c2a8a0e9bc726471009b35e28df24b0a36eb747f5f38f7e499328e201789abcd128bed59d964660cb932cf881705372028aabcc77661703a2 +MISC ChangeLog 306 SHA256 dec3d8f3e720e2b71dd4004cf6423c1b7ccf763428895ec394b06f85f1048819 SHA512 449537cfc3d96afb48055903df2125cfc0ad4ca703b927299a81d58128946229aa7c9911c12a5ad8f82508310b83bb9274f6a0004e9c49789aa49b29028e15dc WHIRLPOOL 666f77c661624f6918aadd7ee9d28dfc3afdc5a156e0b14ba2fcbe2d4297e377e62d69d6e3ba5b081ded98dc7fdbc91669d77b910287f3d2eea3c8170a99cdb5 +MISC metadata.xml 325 SHA256 4f936fc1540bd47b60399bccc7a4b1cd3f5f21068eb7ce7ac5ec2b62dbbd9fa3 SHA512 f87f03fe324ffd5245bf8f3d6efe0e8d0a0ee2de4133b907568beab1da41dd434785bccbbcfb0ad708b5ac924dc176af63e390dbe9426b2f4321dfff1d8c396c WHIRLPOOL bf835fbab3f99d95fcd87d53b3dd93a563486f882cfcafbc46a5f843748d0b226fa27725e5ae081cbe5014ad94d1a762ad7d808760280db8443235961af44193 diff --git a/games-strategy/freesynd/files/freesynd-0.7-cmake.patch b/games-strategy/freesynd/files/freesynd-0.7-cmake.patch new file mode 100644 index 000000000000..fa89fe3ef2f0 --- /dev/null +++ b/games-strategy/freesynd/files/freesynd-0.7-cmake.patch @@ -0,0 +1,28 @@ +--- freesynd-0.7/CMakeLists.txt ++++ freesynd-0.7/CMakeLists.txt +@@ -29,6 +29,13 @@ + set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_C_FLAGS}") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXX_FLAGS}") + ++option(BUILD_DEV_TOOLS "Build development tools") ++option(WITH_DEBUG "Enable debug definitions") ++ ++if(WITH_DEBUG) ++ add_definitions (-D_DEBUG) ++endif() ++ + # Set standard definitions for all platforms. + add_definitions (-DSYSTEM_SDL) + add_definitions (-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\") +@@ -54,10 +61,7 @@ + message (FATAL_ERROR "Unable to locate PNG") + endif () + +-if (NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "debug") +- set (BUILD_DEV_TOOLS TRUE) +-else () +- set (BUILD_DEV_TOOLS FALSE) ++if (CMAKE_BUILD_TYPE AND NOT CMAKE_BUILD_TYPE STREQUAL "debug") + # We only define an install target if we're doing a release build. + # Furthermore, on Mac, the data folder is a part of the app bundle. + if (NOT APPLE) diff --git a/games-strategy/freesynd/freesynd-0.7.ebuild b/games-strategy/freesynd/freesynd-0.7.ebuild new file mode 100644 index 000000000000..25c32c367123 --- /dev/null +++ b/games-strategy/freesynd/freesynd-0.7.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freesynd/freesynd-0.7.ebuild,v 1.1 2013/03/10 02:45:28 hasufell Exp $ + +EAPI=5 + +inherit eutils cmake-utils gnome2-utils games + +DESCRIPTION="A cross-platform reimplementation of engine for the classic Bullfrog game, Syndicate" +HOMEPAGE="http://freesynd.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug devtools" + +RDEPEND="media-libs/libogg + media-libs/libpng:0 + media-libs/libsdl[X,audio,video] + media-libs/libvorbis + media-libs/sdl-mixer[mp3,vorbis] + media-libs/sdl-image[png]" +DEPEND="${RDEPEND}" + +CMAKE_IN_SOURCE_BUILD=1 + +src_prepare() { + epatch "${FILESDIR}"/${P}-cmake.patch + + sed \ + -e "s:#freesynd_data_dir = /usr/share/freesynd/data:freesynd_data_dir = ${GAMES_DATADIR}/${PN}/data:" \ + -i ${PN}.ini || die +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_with debug DEBUG) + $(cmake-utils_use_build devtools DEV_TOOLS) + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + dogamesbin src/${PN} + use devtools && newgamesbin src/dump ${PN}-dump + insinto "${GAMES_DATADIR}"/${PN} + doins -r data + newicon -s 128 icon/sword.png ${PN}.png + make_desktop_entry ${PN} + dodoc NEWS README INSTALL AUTHORS + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + elog "You have to set \"data_dir = /my/path/to/synd-data\"" + elog "in \"~/.${PN}/${PN}.ini\"." + + if use debug ; then + ewarn "Debug build is not meant for regular playing," + ewarn "game speed is higher." + fi + + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/freesynd/metadata.xml b/games-strategy/freesynd/metadata.xml new file mode 100644 index 000000000000..663c79181f4c --- /dev/null +++ b/games-strategy/freesynd/metadata.xml @@ -0,0 +1,13 @@ +<?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="devtools">Build development tools</flag> + </use> +</pkgmetadata> + |