summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Charles Campbell <warpzero@gentoo.org>2004-11-08 04:58:58 +0000
committerJoshua Charles Campbell <warpzero@gentoo.org>2004-11-08 04:58:58 +0000
commit052e8123f107ab901dad185820fee98b88c8682f (patch)
treecc472e447ce4388ec4a84f3d14958468a1cbf787 /games-arcade/stepmania
parentremoved a few patches that are no longer used (diff)
downloadgentoo-2-052e8123f107ab901dad185820fee98b88c8682f.tar.gz
gentoo-2-052e8123f107ab901dad185820fee98b88c8682f.tar.bz2
gentoo-2-052e8123f107ab901dad185820fee98b88c8682f.zip
stepmania 2nd initial import
Diffstat (limited to 'games-arcade/stepmania')
-rw-r--r--games-arcade/stepmania/ChangeLog9
-rw-r--r--games-arcade/stepmania/Manifest3
-rw-r--r--games-arcade/stepmania/files/digest-stepmania-3.9_rc22
-rw-r--r--games-arcade/stepmania/files/stepmania-3.9-rc2a-gentoo.patch21
-rw-r--r--games-arcade/stepmania/metadata.xml10
-rw-r--r--games-arcade/stepmania/stepmania-3.9_rc2.ebuild79
6 files changed, 124 insertions, 0 deletions
diff --git a/games-arcade/stepmania/ChangeLog b/games-arcade/stepmania/ChangeLog
new file mode 100644
index 000000000000..874234ccdb5c
--- /dev/null
+++ b/games-arcade/stepmania/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for games-arcade/stepmania
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/stepmania/ChangeLog,v 1.1 2004/11/08 04:58:58 warpzero Exp $
+
+*stepmania-rc2 (07 Nov 2004)
+
+ 07 Nov 2004; Joshua Charles Campbell warpzero@gentoo.org stepmania-3.9-rc2a-gentoo.patch, stepmania-3.9_rc2.ebuild :
+ Initial import. Ebuild submitted by Sean Burke sburke@onewest.net
+
diff --git a/games-arcade/stepmania/Manifest b/games-arcade/stepmania/Manifest
new file mode 100644
index 000000000000..97c231f45fb2
--- /dev/null
+++ b/games-arcade/stepmania/Manifest
@@ -0,0 +1,3 @@
+MD5 6d348dadb92c486b74fda21370fa2650 stepmania-3.9_rc2.ebuild 1841
+MD5 c677a89ef81e3059eb5cf189c563b5ac files/stepmania-3.9-rc2a-gentoo.patch 987
+MD5 1f6776bc0e064c03ef664e7484d15f81 files/digest-stepmania-3.9_rc2 153
diff --git a/games-arcade/stepmania/files/digest-stepmania-3.9_rc2 b/games-arcade/stepmania/files/digest-stepmania-3.9_rc2
new file mode 100644
index 000000000000..d047ad8906ff
--- /dev/null
+++ b/games-arcade/stepmania/files/digest-stepmania-3.9_rc2
@@ -0,0 +1,2 @@
+MD5 f3415ab0a87d28c33e11591d1a53d598 StepMania-3.9-rc2a-src.tar.gz 3083935
+MD5 faa9ee2d6f640e1e5e8762b65fe577ef StepMania-3.9-rc2a-linux.tar.gz 10214799
diff --git a/games-arcade/stepmania/files/stepmania-3.9-rc2a-gentoo.patch b/games-arcade/stepmania/files/stepmania-3.9-rc2a-gentoo.patch
new file mode 100644
index 000000000000..d02a084f0d1d
--- /dev/null
+++ b/games-arcade/stepmania/files/stepmania-3.9-rc2a-gentoo.patch
@@ -0,0 +1,21 @@
+--- StepMania-3.9-rc2a-src/src/RageFileManager.cpp 2004-05-23 16:33:12.000000000 -0600
++++ StepMania-3.9-rc2a-src/src/RageFileManager.cpp 2004-06-15 00:59:00.913075920 -0600
+@@ -151,7 +151,7 @@
+ * scores. It would need to handle permissions properly. */
+ /* RageFileManager::Mount( "dir", "/var/lib/games/stepmania", "Data/Profiles" ); */
+
+- // CString Home = getenv( "HOME" ) + "/" + PRODUCT_NAME;
++ CString Home = ssprintf( "%s/%s", getenv( "HOME" ), PACKAGE );
+
+ /*
+ * Next: path to write general mutable user data. If the above path fails (eg.
+@@ -178,7 +178,8 @@
+ if( Root == "" )
+ RageException::Throw( "Couldn't find \"Songs\"" );
+
+- RageFileManager::Mount( "dir", Root, "" );
++ RageFileManager::Mount( "dir", Home, "" );
++ RageFileManager::Mount( "dir", "/usr/share/games/stepmania", "" );
+ #elif defined(_WINDOWS)
+ /* All Windows data goes in the directory one level above the executable. */
+ CHECKPOINT_M( ssprintf( "DOE \"%s\"", DirOfExecutable.c_str()) );
diff --git a/games-arcade/stepmania/metadata.xml b/games-arcade/stepmania/metadata.xml
new file mode 100644
index 000000000000..f66760193d4c
--- /dev/null
+++ b/games-arcade/stepmania/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<maintainer>
+ <email>warpzero@gentoo.org</email>
+ <description>Sole maintainer</description>
+</maintainer>
+<longdescription>DDR Arcade Game simulator.</longdescription>
+</pkgmetadata>
diff --git a/games-arcade/stepmania/stepmania-3.9_rc2.ebuild b/games-arcade/stepmania/stepmania-3.9_rc2.ebuild
new file mode 100644
index 000000000000..07b2348c6b67
--- /dev/null
+++ b/games-arcade/stepmania/stepmania-3.9_rc2.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/stepmania/stepmania-3.9_rc2.ebuild,v 1.1 2004/11/08 04:58:58 warpzero Exp $
+
+inherit eutils games
+
+IUSE="debug gtk jpeg mad mpeg oggvorbis"
+
+MY_PV="${PV/_/-}a"
+S="${WORKDIR}/StepMania-${MY_PV}-src"
+SMDATA="${WORKDIR}/StepMania-${MY_PV}"
+DESCRIPTION="An advanced DDR simulator"
+HOMEPAGE="http://www.stepmania.com/stepmania/"
+SRC_URI="mirror://sourceforge/stepmania/StepMania-${MY_PV}-src.tar.gz
+ mirror://sourceforge/stepmania/StepMania-${MY_PV}-linux.tar.gz"
+
+SLOT="0"
+LICENSE="MIT"
+KEYWORDS="-x86"
+
+DEPEND="gtk? ( >=x11-libs/gtk+-2.0 )
+ mad? ( media-libs/libmad )
+ >=dev-lang/lua-5.0
+ media-libs/libsdl
+ jpeg? ( media-libs/jpeg )
+ media-libs/libpng
+ sys-libs/zlib
+ mpeg? ( media-video/ffmpeg )
+ oggvorbis? ( media-libs/libvorbis )
+ virtual/opengl"
+
+pkg_setup() {
+ games_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/stepmania-${MY_PV}-gentoo.patch
+ cd ${S}
+}
+
+src_compile() {
+ local myconf
+ use debug && myconf="${myconf} --with-debug"
+ use jpeg || myconf="${myconf} --without-jpeg"
+ use oggvorbis || myconf="${myconf} --without-vorbis"
+ use mad || myconf="${myconf} --without-mp3"
+ use gtk || myconf="${myconf} --disable-gtk2"
+
+ econf ${myconf} || die "Configure failed"
+
+ emake || die "Make failed"
+}
+
+src_install() {
+ local dir=${GAMES_DATADIR}/${PN}
+
+ dodir ${dir}
+ exeinto ${dir}
+ doexe src/stepmania || die "Install failed"
+ if use gtk; then
+ doexe src/GtkModule.so || die "Install failed"
+ fi
+
+ insinto ${dir}
+
+ cd ${SMDATA}
+ doins Copying.txt NEWS README-FIRST.html || die "Install failed"
+ cp -r Announcers BGAnimations CDTitles Characters Courses Data Docs \
+ NoteSkins RandomMovies Songs Themes Visualizations ${D}/${dir} || die "Install failed"
+
+ games_make_wrapper stepmania ${dir}/stepmania ${dir}
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+}