summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Sachau <tommy@gentoo.org>2008-08-08 18:38:04 +0000
committerThomas Sachau <tommy@gentoo.org>2008-08-08 18:38:04 +0000
commitb0c6622c97cc1a737df79ee2fe4ab4b455a4abc4 (patch)
tree72bd766cdc8f36bada6e3bfac5e4df06478a2dca /games-arcade/tuxanci
parentgames-emulation/gr-lida: Simplify (diff)
downloadsunrise-b0c6622c97cc1a737df79ee2fe4ab4b455a4abc4.tar.gz
sunrise-b0c6622c97cc1a737df79ee2fe4ab4b455a4abc4.tar.bz2
sunrise-b0c6622c97cc1a737df79ee2fe4ab4b455a4abc4.zip
games-arcade/tuxanci: Update ebuild (new version + new build system)
svn path=/sunrise/; revision=6718
Diffstat (limited to 'games-arcade/tuxanci')
-rw-r--r--games-arcade/tuxanci/ChangeLog4
-rw-r--r--games-arcade/tuxanci/Manifest6
-rw-r--r--games-arcade/tuxanci/tuxanci-0.18_rc2.ebuild47
-rw-r--r--games-arcade/tuxanci/tuxanci-0.20.ebuild69
4 files changed, 76 insertions, 50 deletions
diff --git a/games-arcade/tuxanci/ChangeLog b/games-arcade/tuxanci/ChangeLog
index 62223e3e2..9917eb72d 100644
--- a/games-arcade/tuxanci/ChangeLog
+++ b/games-arcade/tuxanci/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 08 Aug 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org>
+ -tuxanci-0.18_rc2.ebuild, +tuxanci-0.20.ebuild:
+ Update ebuild (new version + new build system)
+
29 Jun 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org>
tuxanci-0.18_rc2.ebuild:
Add IUSE
diff --git a/games-arcade/tuxanci/Manifest b/games-arcade/tuxanci/Manifest
index c6fa1eda7..4912391d3 100644
--- a/games-arcade/tuxanci/Manifest
+++ b/games-arcade/tuxanci/Manifest
@@ -1,4 +1,4 @@
-DIST tuxanci-0.18rc2.tar.bz2 3146646 RMD160 293fe151d77ff1a2b3311db63c949e7b8c9fdd28 SHA1 30048db90522791fc1d2cebebf1dd640fb159932 SHA256 4fdd63119219c6656108d760855b2abfd167c05b17e5c6b3cfbeaf6742a95d1a
-EBUILD tuxanci-0.18_rc2.ebuild 1096 RMD160 f6c73d4d59c5115cab295d1001a22d4e45f48d50 SHA1 8dd8459acb8a88e918d1d917866c37ca29043278 SHA256 55df81a04f13312328c5c0a1e75b36f43e1c833839d91befd2b04e5d7c0d89a0
-MISC ChangeLog 998 RMD160 2b9daa5c1ee9a711a94e2e35d5fba50b75435fc0 SHA1 12b0d848320a1001cdbfff2a207365254b76ae15 SHA256 bcc8da15b6c7bcdf1cb818056b8c9d896d94f054ec42f26374846bf688b66dec
+DIST tuxanci-0.20-src.tar.bz2 1544 RMD160 2d49133f447eb1bc9fb7dc8cc6afc8638a5cd094 SHA1 b281fc5c23c22a6aa747d1e81bf6c0321e223161 SHA256 08f72b82739931fc6d124e6ec3de035567818bfe90f0a08adceafafbb63fd545
+EBUILD tuxanci-0.20.ebuild 1788 RMD160 aa8d318b311ef70f0d56a8b98a5a5b15aad9edf4 SHA1 5abbae2f1cdc33931e447c971fa4101235461f4d SHA256 426720c6c39bca25116cfe2b4743df0a9aedace1f211e8f1e69309b9f3908639
+MISC ChangeLog 1157 RMD160 9bf71efd1f532a8b4e265cefcf1d9fb8d6c8009b SHA1 948625e98afab1ea04410cf9ce7933cb6c007d2d SHA256 3afb239d050f1515eb358b3a74bfd6fbcf0a475d9caac350804e70ab3d5067d7
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/games-arcade/tuxanci/tuxanci-0.18_rc2.ebuild b/games-arcade/tuxanci/tuxanci-0.18_rc2.ebuild
deleted file mode 100644
index a9d319259..000000000
--- a/games-arcade/tuxanci/tuxanci-0.18_rc2.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit eutils games
-
-MY_P=${P/_/}
-
-DESCRIPTION="First Cushion Shooter! A remake of well-known Czech game Bulanci."
-HOMEPAGE="http://tuxanci.tuxportal.cz"
-SRC_URI="http://tuxanci.tuxportal.cz/releases/${MY_P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~x86-fbsd"
-IUSE=""
-
-DEPEND=">=media-libs/libsdl-1.2.7
- media-libs/sdl-ttf
- media-libs/sdl-image
- media-libs/sdl-mixer
- media-libs/sdl-net"
-
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${MY_P}"
-GAMES_USE_SDL="noaudio"
-
-pkg_setup() {
- games_pkg_setup
-
- if ! built_with_use media-libs/sdl-image png ; then
- eerror "media-libs/sdl-image is missing png support."
- die "Recompile media-libs/sdl-image with USE=\"png\""
- fi
-
- if ! built_with_use media-libs/sdl-mixer vorbis ; then
- eerror "media-libs/sdl-mixer is missing vorbis support."
- die "Recompile media-libs/sdl-mixer with USE=\"vorbis\""
- fi
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "Installation failed."
- dodoc README ChangeLog
- prepgamesdirs
-}
diff --git a/games-arcade/tuxanci/tuxanci-0.20.ebuild b/games-arcade/tuxanci/tuxanci-0.20.ebuild
new file mode 100644
index 000000000..c49a6dd49
--- /dev/null
+++ b/games-arcade/tuxanci/tuxanci-0.20.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit games cmake-utils
+
+DESCRIPTION="Tuxanci is first cushion shooter based on well-known Czech game Bulanci."
+HOMEPAGE="http://www.tuxanci.org/"
+SRC_URI="http://download.${PN}.org/${PV}/${P}-src.tar.bz2"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE="alsa dedicated"
+# alsa is used only when building client
+
+DEPEND="!dedicated? (
+ >=media-libs/libsdl-1.2.10
+ >=media-libs/sdl-ttf-2.0.7
+ >=media-libs/sdl-image-1.2.6-r1
+ alsa? (
+ >=media-libs/sdl-mixer-1.2.7
+ )
+ )"
+
+S="${WORKDIR}/pkgs/${P}-src/"
+
+pkg_setup() {
+ games_pkg_setup
+
+ if ! built_with_use media-libs/sdl-image png ; then
+ eerror "media-libs/sdl-image is missing png support."
+ die "Recompile media-libs/sdl-image with USE=\"png\""
+ fi
+
+ if ! built_with_use media-libs/sdl-mixer vorbis ; then
+ eerror "media-libs/sdl-mixer is missing vorbis support."
+ die "Recompile media-libs/sdl-mixer with USE=\"vorbis\""
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # setting proper prefix
+ sed -i \
+ -e "s:PATH_DIR\tPREFIX:PATH_DIR:" src/base/path.h \
+ || die "sed config.h failed!"
+ sed -i \
+ -e "s:share/tuxanci:"${GAMES_DATADIR}"/"${PN}":" src/base/path.h \
+ || die "sed config.h failed!"
+ sed -i \
+ -e "s:CMAKE_INSTALL_DATADIR share/:CMAKE_INSTALL_DATADIR /usr/share/games/:" CMakeLists.txt \
+ || die "sed CMakeLists.txt failed!"
+}
+
+src_compile() {
+ local mycmakeargs
+ use alsa || mycmakeargs="${mycmakeargs} -DNO_Audio=1"
+ use dedicated && mycmakeargs="${mycmakeargs} -DServer=1"
+ mycmakeargs="${mycmakeargs} -DPREFIX=\\\"/usr/games\\\" -DCMAKE_INSTALL_PREFIX:PATH=/usr/games"
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ prepgamesdirs
+}
+