diff options
author | David Bitseff (useer) <dbitsef@zipcon.net> | 2008-11-24 22:30:44 +0000 |
---|---|---|
committer | David Bitseff (useer) <dbitsef@zipcon.net> | 2008-11-24 22:30:44 +0000 |
commit | 4d960598d325efb657946765ab377232ca01bb1d (patch) | |
tree | 415a5bb88bf28a187063e2dd8feeb0974ac73d26 /games-board | |
parent | dev-ruby/feed2imap: New ebuild for package feed2imap. Bug 105122. (diff) | |
download | sunrise-reviewed-4d960598d325efb657946765ab377232ca01bb1d.tar.gz sunrise-reviewed-4d960598d325efb657946765ab377232ca01bb1d.tar.bz2 sunrise-reviewed-4d960598d325efb657946765ab377232ca01bb1d.zip |
games-board/dreamchess: New Ebuild for bug 194737. Thanks to Paul Bredbury, Chi-Thanh, Christian Ruppert, Tiziano Mueller, scarabeus, and Ken69267
svn path=/sunrise/; revision=7401
Diffstat (limited to 'games-board')
-rw-r--r-- | games-board/dreamchess/ChangeLog | 10 | ||||
-rw-r--r-- | games-board/dreamchess/Manifest | 6 | ||||
-rw-r--r-- | games-board/dreamchess/dreamchess-0.2.0.ebuild | 52 | ||||
-rw-r--r-- | games-board/dreamchess/files/dreamchess-0.2.0-configure.ac.patch | 34 | ||||
-rw-r--r-- | games-board/dreamchess/metadata.xml | 9 |
5 files changed, 111 insertions, 0 deletions
diff --git a/games-board/dreamchess/ChangeLog b/games-board/dreamchess/ChangeLog new file mode 100644 index 000000000..841eb6038 --- /dev/null +++ b/games-board/dreamchess/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for games-board/dreamchess +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 24 Nov 2008; David Bitseff (useer) <dbitsef@zipcon.net> + +dreamchess-0.2.0.ebuild, +files/dreamchess-0.2.0-configure.ac.patch, + +metadata.xml: + New Ebuild for bug 194737. Thanks to Paul Bredbury, Chi-Thanh, Christian + Ruppert, Tiziano Mueller, scarabeus, and Ken69267 + diff --git a/games-board/dreamchess/Manifest b/games-board/dreamchess/Manifest new file mode 100644 index 000000000..aa78f6e2d --- /dev/null +++ b/games-board/dreamchess/Manifest @@ -0,0 +1,6 @@ +AUX dreamchess-0.2.0-configure.ac.patch 1079 RMD160 142a56a6efbcaa6443fb59dab00947494dae90fd SHA1 08f22648ae14c4e20f81af228728068c13b14cc2 SHA256 a121de9551fd5e65dcca91558babda4513ae299e96a285f819d4541de5f17fab +DIST dreamchess-0.2.0.tar.gz 5458328 RMD160 d3ee004589da020daac9fa8195d252b82851f696 SHA1 0e27c9d7cb20104367edc5aabe3076b70d989374 SHA256 7615699995a635c3dff6c952aa0d32723c415c8bb42448b4269d3daa199d8059 +DIST dreamchess-music-1.0.run.tar 74229760 RMD160 b9a7238e6e0cb962ccf83c166271aa571a96365b SHA1 9a2f720eff17f03cea31d75786e0f7cd61282c05 SHA256 d0472c94e40e8c2570eef83a3f36b61db60d45d79d4fb752bda4a23e76008cdd +EBUILD dreamchess-0.2.0.ebuild 1191 RMD160 8b3ceaf2c519c977fe51d4e9a24f9d59b0d9c4a0 SHA1 e2cb0a95af705f35e6a96bfba5d3c21d40a0361a SHA256 4008865a2586bf9f7ed72fba1ec78cbc1b097574349ae881ae57e6a0506f5922 +MISC ChangeLog 398 RMD160 0f335b3b2eb70548824a55de7d0c533d42d6d048 SHA1 60c053a9aa0a291dd74db62181c40ac5dd25eb4d SHA256 5b73aa2d799b6f207706ed480f73bccd5e76882a6c26a9f36f53ac1c9df93989 +MISC metadata.xml 329 RMD160 6b3bb9da93d1487f44469f832d99997ed77c1fd5 SHA1 20002618797ba5917e5317208d311a8516704870 SHA256 7137285b39abaebc5575918f60fbcd8429a2eb8e5de97e0ab255fac2b466fa80 diff --git a/games-board/dreamchess/dreamchess-0.2.0.ebuild b/games-board/dreamchess/dreamchess-0.2.0.ebuild new file mode 100644 index 000000000..d14176670 --- /dev/null +++ b/games-board/dreamchess/dreamchess-0.2.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils autotools games + +MY_MUSIC="${PN}-music-1.0.run" + +DESCRIPTION="3D OpenGL moderately-strong chess engine" +HOMEPAGE="http://www.dreamchess.org/" +SRC_URI="mirror://berlios/${PN}/${P}.tar.gz + sound? ( music? ( mirror://berlios/${PN}/${MY_MUSIC}.tar ) )" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="music sound" + +RDEPEND="virtual/opengl + media-libs/libsdl + media-libs/sdl-image + sound? ( media-libs/sdl-mixer ) + dev-libs/mini-xml" +DEPEND="${RDEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-configure.ac.patch" + eautoreconf + if use music ; then + if use sound ; then + "${WORKDIR}/${MY_MUSIC}" --tar xf + else + ewarn "You need to enable the sound use flag to play music." + fi + fi +} + +src_compile() { + egamesconf $( use_with sound mixer-sdl ) + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install" + dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed" + newicon data/icon.png ${PN}.png || die "newicon failed" + make_desktop_entry ${PN} "DreamChess" ${PN}.png + prepgamesdirs +} + diff --git a/games-board/dreamchess/files/dreamchess-0.2.0-configure.ac.patch b/games-board/dreamchess/files/dreamchess-0.2.0-configure.ac.patch new file mode 100644 index 000000000..1ce853fab --- /dev/null +++ b/games-board/dreamchess/files/dreamchess-0.2.0-configure.ac.patch @@ -0,0 +1,34 @@ +--- configure.ac.orig 2008-11-24 02:18:59.638261052 -0800 ++++ configure.ac 2008-11-24 02:19:06.316011020 -0800 +@@ -52,6 +52,7 @@ + dnl Check for SDL + AC_ARG_WITH([sdl], [ --without-sdl do not use SDL]) + AC_ARG_WITH([gl], [ --without-gl do not use GL]) ++AC_ARG_WITH([mixer-sdl], [ --without-mixer-sdl do not use SDL_Mixer]) + AC_ARG_ENABLE([linked-engine], [ --enable-linked-engine statically link with `dreamer' engine], [enable_linked_engine=yes]) + + AC_DEFUN([AC_CHECK_SDL_HEADER], +@@ -191,6 +192,7 @@ + with_ui_sdl="no" + fi + ++if test x"$with_mixer_sdl" = xyes; then + AC_CHECK_SDL_HEADER([SDL_mixer.h], [have_sdl_mixer_h="yes"], + [have_sdl_mixer_h="no"] + ) +@@ -205,6 +207,7 @@ + x"$have_sdl" = xyes -a \ + x"$have_sdl_mixer" = xyes; then supported_mixer_sdl="yes" + else supported_mixer_sdl="no" ++ AC_MSG_ERROR([SDL_Mixer was not found, please check your SDL installation.]) + fi + + if test x"$supported_mixer_sdl" = xno; then +@@ -214,6 +217,7 @@ + else + with_mixer_sdl="yes" + fi ++fi + + AC_DEFUN([AC_PRINT_LIB], + if test x"$2" = xyes; then diff --git a/games-board/dreamchess/metadata.xml b/games-board/dreamchess/metadata.xml new file mode 100644 index 000000000..1c5cafb21 --- /dev/null +++ b/games-board/dreamchess/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>maintainer-wanted</herd> + <use> + <flag name='music'>Install the music pack</flag> + <flag name='sound'>Enable support for <pkg>media-libs/sdl-mixer</pkg> to get sound</flag> + </use> +</pkgmetadata> |