stepmania 2nd initial import
authorJoshua Charles Campbell <warpzero@gentoo.org>
Mon, 8 Nov 2004 04:58:58 +0000 (04:58 +0000)
committerJoshua Charles Campbell <warpzero@gentoo.org>
Mon, 8 Nov 2004 04:58:58 +0000 (04:58 +0000)
games-arcade/stepmania/ChangeLog [new file with mode: 0644]
games-arcade/stepmania/Manifest [new file with mode: 0644]
games-arcade/stepmania/files/digest-stepmania-3.9_rc2 [new file with mode: 0644]
games-arcade/stepmania/files/stepmania-3.9-rc2a-gentoo.patch [new file with mode: 0644]
games-arcade/stepmania/metadata.xml [new file with mode: 0644]
games-arcade/stepmania/stepmania-3.9_rc2.ebuild [new file with mode: 0644]

diff --git a/games-arcade/stepmania/ChangeLog b/games-arcade/stepmania/ChangeLog
new file mode 100644 (file)
index 0000000..874234c
--- /dev/null
@@ -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 (file)
index 0000000..86b3267
--- /dev/null
@@ -0,0 +1,5 @@
+MD5 a4ba22a34215acbfc402e74b8373a999 stepmania-3.9_rc2.ebuild 1943
+MD5 cb4cdb2d8be7f6c99723c4a1e2fd8603 ChangeLog 438
+MD5 f3ebb905cea252821e25daaddca4b456 metadata.xml 331
+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 (file)
index 0000000..d047ad8
--- /dev/null
@@ -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 (file)
index 0000000..d02a084
--- /dev/null
@@ -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 (file)
index 0000000..f667601
--- /dev/null
@@ -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 (file)
index 0000000..07b2348
--- /dev/null
@@ -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
+}