diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-03-10 02:45:31 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-03-10 02:45:31 +0000 |
commit | 6d618209be80ee4c2eaa6bf328bc05c366ebf661 (patch) | |
tree | c12e8bfb137624bd9fcc053db72a35c7d17b9a53 /games-strategy | |
parent | initial import wrt #159251 (diff) | |
download | historical-6d618209be80ee4c2eaa6bf328bc05c366ebf661.tar.gz historical-6d618209be80ee4c2eaa6bf328bc05c366ebf661.tar.bz2 historical-6d618209be80ee4c2eaa6bf328bc05c366ebf661.zip |
initial import wrt #159251
Package-Manager: portage-2.2.0_alpha166/cvs/Linux x86_64
Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'games-strategy')
-rw-r--r-- | games-strategy/freesynd/Manifest | 18 | ||||
-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 |
4 files changed, 137 insertions, 2 deletions
diff --git a/games-strategy/freesynd/Manifest b/games-strategy/freesynd/Manifest index 08ed69429c1f..4e2f914837bf 100644 --- a/games-strategy/freesynd/Manifest +++ b/games-strategy/freesynd/Manifest @@ -1,5 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + 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 +EBUILD freesynd-0.7.ebuild 1790 SHA256 4e258145f6a4d739b7f07cd9bc20ef36c2f72cead1427434457ec19bf059202a SHA512 3c0537e519c56713365d8590271eb1db7372aa4801775274be3041ad47072470adde02cd081cdd4fab9cb021d97178f1c3a2c3655389e675106f743a8ec9278d WHIRLPOOL a806099dbb04c67d4c6c00eec2a884aa17eee7373768a1ba1ea7683807f4057ce4cc37282441da4dcc8a9af51868249738246f851fe34dcbc53dac80aee0c9a5 +MISC ChangeLog 403 SHA256 8cfed6380cb5abf39894be7a42fab3df4dfb982376ba34748c134ec2fda670ae SHA512 8d30e8fa3688c59550db5d87add7513c778b78c5ed7c77b8121a2584d1bd688a90119834f68eb0c8a9094f81a70167b8cc4699f8239bc93a91fc6035c5411715 WHIRLPOOL 3a833ec594be30d0535861f6a2a2099b55a455695f466b263b8b8caabb3d727e039bad5c3d1950c336603fd939914088082c40d81b9a119df0ccb72b44b11a6c MISC metadata.xml 325 SHA256 4f936fc1540bd47b60399bccc7a4b1cd3f5f21068eb7ce7ac5ec2b62dbbd9fa3 SHA512 f87f03fe324ffd5245bf8f3d6efe0e8d0a0ee2de4133b907568beab1da41dd434785bccbbcfb0ad708b5ac924dc176af63e390dbe9426b2f4321dfff1d8c396c WHIRLPOOL bf835fbab3f99d95fcd87d53b3dd93a563486f882cfcafbc46a5f843748d0b226fa27725e5ae081cbe5014ad94d1a762ad7d808760280db8443235961af44193 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQEcBAEBCAAGBQJRO/PLAAoJEFpvPKfnPDWzEtMIAI9280T3IQfTWg1xZ/nh78Sf +MzUVs4i8CBuOVDlf1VOO5wLgzbtbH/GPnOF3cV8g8zznG+RWkOXEESOIuBka3mcS +XH6nBqNBo02mpNrpE9YzFAOty7YUO7jH5bYVBq+4xeyrfRHEZyY9OjZ0U+HnRFF8 +owXawAztx62E80fAkAXKACIjjMTsLvwpRHXhKLv8ig/5M18h1jfs4rpOrrK7wIJ6 +zpDXoVlrhvwG8znwU9u0EfjX4ag8QLliXbQCjeOEysqgxggEi3M9Asmqj6DTQcLb +rk8cgVyCqkCHCLXD6kpkM3xwi1P90Hdn6P4hZifSG2lLh7BBh1o3xxwct77Mt+4= +=n2Ie +-----END PGP SIGNATURE----- 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> + |