make wrapper honor games eclass; version bump (bug #70323); tidy ebuilds and old...
authorMichael Sterrett <mr_bones_@gentoo.org>
Sun, 12 Dec 2004 06:49:55 +0000 (06:49 +0000)
committerMichael Sterrett <mr_bones_@gentoo.org>
Sun, 12 Dec 2004 06:49:55 +0000 (06:49 +0000)
games-emulation/virtualjaguar/ChangeLog
games-emulation/virtualjaguar/Manifest
games-emulation/virtualjaguar/files/1.0.7-cdintf_linux.patch [new file with mode: 0644]
games-emulation/virtualjaguar/files/digest-virtualjaguar-1.0.5 [deleted file]
games-emulation/virtualjaguar/files/digest-virtualjaguar-1.0.7 [new file with mode: 0644]
games-emulation/virtualjaguar/files/virtualjaguar
games-emulation/virtualjaguar/virtualjaguar-1.0.5.ebuild [deleted file]
games-emulation/virtualjaguar/virtualjaguar-1.0.6.ebuild
games-emulation/virtualjaguar/virtualjaguar-1.0.7.ebuild [new file with mode: 0644]

index d48713505e6df45e60c4a95a51a2192fc3421192..4febbcdf2cb3a2a81291876c8228ad6dc8473c29 100644 (file)
@@ -1,6 +1,14 @@
 # ChangeLog for games-emulation/virtualjaguar
 # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/virtualjaguar/ChangeLog,v 1.5 2004/06/24 22:37:01 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/virtualjaguar/ChangeLog,v 1.6 2004/12/12 06:49:55 mr_bones_ Exp $
+
+*virtualjaguar-1.0.7 (11 Dec 2004)
+
+  11 Dec 2004; Michael Sterrett <mr_bones_@gentoo.org> files/virtualjaguar,
+  -virtualjaguar-1.0.5.ebuild, virtualjaguar-1.0.6.ebuild,
+  +virtualjaguar-1.0.7.ebuild:
+  make wrapper honor games eclass; version bump (bug #70323); tidy ebuilds and
+  old versions
 
   02 Mar 2004; David Holm <dholm@gentoo.org> virtualjaguar-1.0.6.ebuild:
   Added to ~ppc.
index 8416b184664ca5caf99ea9156718cd12a4e2e87f..453b02d699490dcaf59965a01ea0943c135a3b19 100644 (file)
@@ -1,8 +1,9 @@
-MD5 063defb74c6f44911469c909cca1d686 virtualjaguar-1.0.6.ebuild 1261
-MD5 68a40406a92c78a96e6028f1436b4a81 virtualjaguar-1.0.5.ebuild 1238
-MD5 9966bdfa71b432abacc5ccdb790005b9 ChangeLog 884
+MD5 50d846a18eb2a75eaa5e23c4fe623943 ChangeLog 1182
 MD5 7a689486cd6c3a2e1f3d389286d81ec9 metadata.xml 418
-MD5 537c716601ef69dc13d9285e99d0f339 files/digest-virtualjaguar-1.0.5 72
-MD5 8c33120cd4e2306208ebe81ada04636d files/digest-virtualjaguar-1.0.6 76
+MD5 d50be4e286145336e2a87afb3d383c71 virtualjaguar-1.0.6.ebuild 1430
+MD5 efedccbffe24b2f7426571acd729edad virtualjaguar-1.0.7.ebuild 1786
 MD5 8425919508218348801f7b6be2262dcd files/gcc331.patch 1930
-MD5 9041bc767f021b4d3df1c02a71b7fae0 files/virtualjaguar 742
+MD5 32f53c4a21b92b69625a0eb7ab422232 files/digest-virtualjaguar-1.0.7 76
+MD5 8c33120cd4e2306208ebe81ada04636d files/digest-virtualjaguar-1.0.6 76
+MD5 5ccdb9c0633456a7cf88bc96c3771049 files/virtualjaguar 796
+MD5 5bb4379fd2d5b043a8d43660102606ad files/1.0.7-cdintf_linux.patch 236
diff --git a/games-emulation/virtualjaguar/files/1.0.7-cdintf_linux.patch b/games-emulation/virtualjaguar/files/1.0.7-cdintf_linux.patch
new file mode 100644 (file)
index 0000000..b98f5e1
--- /dev/null
@@ -0,0 +1,9 @@
+--- src/cdintf_linux.cpp       2004-10-06 21:44:14.000000000 -0400
++++ src/cdintf_linux.cpp.fix   2004-11-06 23:09:53.217375640 -0500
+@@ -217,5 +217,5 @@
+ {\r
+       WriteLog("CDINTF: GetTrackInfo unimplemented!\n");\r
+       return 0xFF;\r
+-\r
++}\r
+ #endif\r
diff --git a/games-emulation/virtualjaguar/files/digest-virtualjaguar-1.0.5 b/games-emulation/virtualjaguar/files/digest-virtualjaguar-1.0.5
deleted file mode 100644 (file)
index d76035a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-MD5 83b1f1078c8993ead3d81e6ccf7a0316 virtualjaguar-1.0.5-src.tbz 164876
diff --git a/games-emulation/virtualjaguar/files/digest-virtualjaguar-1.0.7 b/games-emulation/virtualjaguar/files/digest-virtualjaguar-1.0.7
new file mode 100644 (file)
index 0000000..8d42067
--- /dev/null
@@ -0,0 +1 @@
+MD5 9c19203f3532f1ab2bc5eb4db072e43d virtualjaguar-1.0.7-src.tar.bz2 255401
index 006935bacd31267afac698c5bcf02c585c288844..9d0243be08181c65e06e4c423cde0bd254b2b900 100644 (file)
@@ -3,7 +3,7 @@
 # Script for launching virtualjaguar 
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/virtualjaguar/files/virtualjaguar,v 1.3 2004/07/14 22:14:43 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/virtualjaguar/files/virtualjaguar,v 1.4 2004/12/12 06:49:55 mr_bones_ Exp $
 
 source /sbin/functions.sh
 
@@ -17,6 +17,10 @@ if [ ! -d ~/.vj/eeproms ] ; then
     mkdir -p ~/.vj/eeproms
 fi
 
+if [ ! -d ~/.vj/ROMs ] ; then
+    mkdir -p ~/.vj/ROMs
+fi
+
 cd ~/.vj
 
 # check for bios
@@ -29,4 +33,4 @@ if [ -z "`cd ./bios && ls`" ] ; then
 fi
 
 # execute program (with args)
-exec /usr/games/bin/vj "$@"
+exec GENTOODIR/vj "$@"
diff --git a/games-emulation/virtualjaguar/virtualjaguar-1.0.5.ebuild b/games-emulation/virtualjaguar/virtualjaguar-1.0.5.ebuild
deleted file mode 100644 (file)
index cd29c5b..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/virtualjaguar/virtualjaguar-1.0.5.ebuild,v 1.4 2004/06/24 22:37:01 agriffis Exp $
-
-inherit games
-
-S="${WORKDIR}/${P}-src"
-DESCRIPTION="an Atari Jaguar emulator"
-HOMEPAGE="http://www.icculus.org/virtualjaguar/"
-SRC_URI="http://www.icculus.org/virtualjaguar/tarballs/${P}-src.tbz"
-
-LICENSE="GPL-2"
-KEYWORDS="x86"
-SLOT="0"
-IUSE=""
-
-RDEPEND=">=media-libs/libsdl-1.2.5
-       >=sys-libs/zlib-1.1.4"
-DEPEND="${RDEPEND}
-       >=sys-apps/sed-4"
-
-src_unpack() {
-       bzip2 -dc ${DISTDIR}/${A} | tar -xf -
-       cd ${S}
-
-       sed -i \
-               -e "s:-O3:${CFLAGS}:" Makefile.unix || \
-                       die "sed Makefile.unix failed"
-}
-
-src_compile() {
-       emake -j1 -f Makefile.unix
-}
-
-src_install() {
-       dogamesbin vj
-       dogamesbin ${FILESDIR}/virtualjaguar
-       dodoc INSTALL docs/{README,TODO,WHATSNEW}
-       prepgamesdirs
-}
-
-pkg_postinst() {
-       games_pkg_postinst
-       einfo "Please run virtualjaguar to create the necessary directories"
-       einfo "in your home directory.  After that you man place ROM files"
-       einfo "in ~/.vj and they will be detected when you run virtualjaguar."
-       einfo "You may then select which ROM to run from inside the emulator."
-}
index bd6cc96f8a35d55329f17dd6fde5a78b908c1921..aa42e7c4db4644241aaadaff3666902511f7ee4c 100644 (file)
@@ -1,10 +1,9 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/virtualjaguar/virtualjaguar-1.0.6.ebuild,v 1.5 2004/06/24 22:37:01 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/virtualjaguar/virtualjaguar-1.0.6.ebuild,v 1.6 2004/12/12 06:49:55 mr_bones_ Exp $
 
 inherit eutils games
 
-S="${WORKDIR}/${P}-src"
 DESCRIPTION="an Atari Jaguar emulator"
 HOMEPAGE="http://www.icculus.org/virtualjaguar/"
 SRC_URI="http://www.icculus.org/virtualjaguar/tarballs/${P}-src.tar.bz2"
@@ -19,14 +18,22 @@ RDEPEND=">=media-libs/libsdl-1.2.5
 DEPEND="${RDEPEND}
        >=sys-apps/sed-4"
 
+S="${WORKDIR}/${P}-src"
+
 src_unpack() {
        unpack ${A}
-       cd ${S}
+       cd "${S}"
+
+       sed -i \
+               -e "s:-O3:${CFLAGS}:" Makefile.unix \
+               || die "sed Makefile.unix failed"
+       epatch "${FILESDIR}/gcc331.patch"
+       cp "${FILESDIR}/virtualjaguar" "${T}" || die "cp failed"
 
        sed -i \
-               -e "s:-O3:${CFLAGS}:" Makefile.unix || \
-                       die "sed Makefile.unix failed"
-       epatch ${FILESDIR}/gcc331.patch
+               -e "s:GENTOODIR:${GAMES_BINDIR}:" \
+               "${T}/virtualjaguar" \
+               || die "sed failed"
 }
 
 src_compile() {
@@ -34,8 +41,7 @@ src_compile() {
 }
 
 src_install() {
-       dogamesbin vj
-       dogamesbin ${FILESDIR}/virtualjaguar
+       dogamesbin vj "${T}/virtualjaguar" || die "dogamesbin failed"
        dodoc INSTALL docs/{README,TODO,WHATSNEW}
        prepgamesdirs
 }
diff --git a/games-emulation/virtualjaguar/virtualjaguar-1.0.7.ebuild b/games-emulation/virtualjaguar/virtualjaguar-1.0.7.ebuild
new file mode 100644 (file)
index 0000000..20796ce
--- /dev/null
@@ -0,0 +1,66 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/virtualjaguar/virtualjaguar-1.0.7.ebuild,v 1.1 2004/12/12 06:49:55 mr_bones_ Exp $
+
+inherit eutils toolchain-funcs games
+
+DESCRIPTION="an Atari Jaguar emulator"
+HOMEPAGE="http://www.icculus.org/virtualjaguar/"
+SRC_URI="http://www.icculus.org/virtualjaguar/tarballs/${P}-src.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ~ppc"
+IUSE=""
+
+DEPEND="virtual/opengl
+       >=media-libs/libsdl-1.2.5
+       >=sys-libs/zlib-1.1.4"
+
+S="${WORKDIR}/${P}-src"
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+       sed -i \
+               -e '/^CC/d' \
+               -e "/^LD\b/s:=.*:=$(tc-getCXX):" \
+               -e 's:-O2:$(ECFLAGS):' Makefile \
+               || die "sed Makefile failed"
+       mkdir obj || die "mkdir failed" # silly makefile
+
+       epatch "${FILESDIR}/${PV}-cdintf_linux.patch"
+
+       cp "${FILESDIR}/virtualjaguar" "${T}" || die "cp failed"
+
+       sed -i \
+               -e "s:GENTOODIR:${GAMES_BINDIR}:" \
+               "${T}/virtualjaguar" \
+               || die "sed failed"
+}
+
+src_compile() {
+       export ECFLAGS="${CFLAGS}" \
+               SYSTYPE=__GCCUNIX__ \
+               GLLIB=-lGL \
+               SDLLIBTYPE=--libs
+       emake obj/m68kops.h || die # silly makefile
+       emake || die "emake failed"
+}
+
+src_install() {
+       dogamesbin vj "${T}/virtualjaguar" || die "dogamebin failed"
+       dodoc INSTALL docs/{README,TODO,WHATSNEW}
+       prepgamesdirs
+}
+
+pkg_postinst() {
+       games_pkg_postinst
+       einfo "Please run ${PN} to create the necessary directories"
+       einfo "in your home directory.  After that you may place ROM files"
+       einfo "in ~/.vj/ROMs and they will be detected when you run virtualjaguar."
+       einfo "You may then select which ROM to run from inside the emulator."
+       echo
+       einfo "If you have previously run a version of ${PV} please note that"
+       einfo "the location of the ROMs has changed."
+}