From d1d32d72608c064264b0eca42ff63eba1904955a Mon Sep 17 00:00:00 2001 From: geos_one Date: Sun, 7 Nov 2010 18:47:50 +0000 Subject: [PATCH] add vice git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2694 6952d904-891a-0410-993b-d76249ca496b --- app-emulation/vice/ChangeLog | 278 +++++++++++++++++++ app-emulation/vice/Manifest | 5 + app-emulation/vice/files/vice-2.2-xshm.patch | 49 ++++ app-emulation/vice/metadata.xml | 10 + app-emulation/vice/vice-2.2-r1.ebuild | 116 ++++++++ 5 files changed, 458 insertions(+) create mode 100644 app-emulation/vice/ChangeLog create mode 100644 app-emulation/vice/Manifest create mode 100644 app-emulation/vice/files/vice-2.2-xshm.patch create mode 100644 app-emulation/vice/metadata.xml create mode 100644 app-emulation/vice/vice-2.2-r1.ebuild diff --git a/app-emulation/vice/ChangeLog b/app-emulation/vice/ChangeLog new file mode 100644 index 00000000..51035826 --- /dev/null +++ b/app-emulation/vice/ChangeLog @@ -0,0 +1,278 @@ +# ChangeLog for app-emulation/vice +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vice/ChangeLog,v 1.72 2010/04/11 17:04:29 phajdan.jr Exp $ + + 11 Apr 2010; Pawel Hajdan jr vice-2.2.ebuild: + x86 stable wrt bug #302506 + + 08 Apr 2010; Michael Sterrett vice-2.2.ebuild: + patch location for files - sed patch from Marcin Deranek via bug #313741 + + 24 Mar 2010; Samuli Suominen + files/vice-2.2-xshm.patch: + Use upstream patch instead. + + 23 Mar 2010; Samuli Suominen vice-2.2.ebuild, + +files/vice-2.2-xshm.patch: + Fix bug 292508 in a different way since upstream mentioned wanting + configure.in check. + +*vice-2.2 (23 Mar 2010) + + 23 Mar 2010; Michael Sterrett +vice-2.2.ebuild, + metadata.xml: + version bump (bug #299870) with additions from groepaz@gmx.net via bug + #258674 + + 08 Mar 2010; Samuli Suominen vice-2.1.ebuild: + Don't check for obsolete png_check_sig function (because vice will + silently start using it's bundled copy). Required for libpng14. + + 22 Jan 2010; Samuli Suominen vice-2.1.ebuild: + Require SLOT="0" of media-libs/jpeg for headers. + + 12 Nov 2009; Alfredo Tupone vice-2.1.ebuild, + +files/vice-2.1-xshm.patch: + Fix X_ShmAttach not declared. Bug #292508 by Cedric Godin + + 02 Nov 2009; Samuli Suominen vice-1.22.ebuild, + vice-2.1.ebuild: + Remove obsolete aRts support. + + 24 Aug 2009; Michael Sterrett vice-2.1.ebuild: + don't try to actually run fc-cache (bug #280976) + + 11 May 2009; Samuli Suominen vice-2.1.ebuild, + +files/vice-2.1-gcc44.patch: + Fix compile with GCC 4.4 wrt #269311, thanks to Martin Väth. + +*vice-2.1 (25 Jan 2009) + + 25 Jan 2009; Michael Sterrett +vice-2.1.ebuild: + version bump + +*vice-2.0 (11 Aug 2008) + + 11 Aug 2008; Michael Sterrett + +files/vice-2.0-gnome-palemu.patch, + +files/vice-2.0-gtk-bigendian-fix.patch, +vice-2.0.ebuild: + version bump - bug #234043 with patches and ebuild submitted by Karl Aloritias + + 28 Jul 2008; Doug Goldstein metadata.xml: + add GLEP 56 USE flag desc from use.local.desc + + 07 Nov 2007; Michael Sterrett vice-1.22.ebuild: + remove ffmpeg support for now (bug #187699) + + 30 Oct 2007; Michael Sterrett + -files/vice-1.21-fullscreen.patch, -files/vice-1.21-uicolor.patch, + -vice-1.20.ebuild, -vice-1.21-r1.ebuild: + clean out old, broken releases + + 30 Oct 2007; nixnut vice-1.22.ebuild: + Stable on ppc wrt bug 196608 + + 29 Oct 2007; Ferris McCormick vice-1.22.ebuild: + Sparc stable --- Bug #196608 --- developer request. + + 24 Oct 2007; Markus Meier vice-1.22.ebuild: + x86 stable, bug #196608 + + 21 Oct 2007; Michael Sterrett vice-1.22.ebuild: + dep on x11-libs/libXrandr as well (bug #196564) + +*vice-1.22 (15 Oct 2007) + + 15 Oct 2007; Michael Sterrett +vice-1.22.ebuild: + version bump (bug #195970) + +*vice-1.21-r1 (16 Jun 2007) + + 16 Jun 2007; Tristan Heaven + +files/vice-1.21-fullscreen.patch, +vice-1.21-r1.ebuild: + Patch from David Leverton for bug #179315 + + 21 May 2007; Tristan Heaven vice-1.21.ebuild: + Add resid USE flag, bug #177102 + + 03 May 2007; Mike Frysinger vice-1.21.ebuild: + Tweak @SYNC@ fix some more #176522. + + 03 May 2007; Jeroen Roovers +vice-1.20.ebuild, + vice-1.21.ebuild: + Bring back 1.20 for sparc, rekeyword 1.21 as ~sparc (bug #176256). + + 26 Apr 2007; Tristan Heaven vice-1.21.ebuild: + Fix build failure when SYNC is set, bug #176155 + +*vice-1.21 (26 Apr 2007) + + 26 Apr 2007; Tristan Heaven + +files/vice-1.21-uicolor.patch, +vice-1.21.ebuild: + Version bump + + 24 Apr 2007; Gustavo Zacarias vice-1.20.ebuild: + Stable on sparc + + 13 Mar 2007; Raúl Porcel vice-1.20.ebuild: + x86 stable + + 21 Feb 2007; Piotr Jaroszyński ChangeLog: + Transition to Manifest2. + + 18 Nov 2006; Saleem Abdulrasool vice-1.20.ebuild: + add back gnome useflag errornously dropped on 1.20 + + 17 Nov 2006; Saleem Abdulrasool + vice-1.17.ebuild, vice-1.19.ebuild, vice-1.20.ebuild: + Dropping gnome useflag for gnome-1.x removal + + 26 Oct 2006; Tristan Heaven vice-1.20.ebuild: + Add x11-apps/bdftopcf and x11-apps/mkfontdir to DEPEND, bug #152715 + +*vice-1.20 (12 Oct 2006) + + 12 Oct 2006; Tristan Heaven +vice-1.20.ebuild: + Version bump, bug #150767 + + 16 Sep 2006; Tobias Scherbaum vice-1.19.ebuild: + ppc stable + + 30 Aug 2006; Gustavo Zacarias vice-1.19.ebuild: + Stable on sparc + + 25 Mar 2006; +files/vice-1.19-64bitfix.patch, + vice-1.19.ebuild: + Fixing bug #116678 ffmpeg on amd64. Thanks to Andreas Arens + + 17 Mar 2006; Gustavo Zacarias vice-1.19.ebuild: + Keyworded ~sparc wrt #126147 + + 25 Jan 2006; Chris Gianelloni vice-1.17.ebuild, + vice-1.19.ebuild: + General *DEPEND cleanup. + + 25 Jan 2006; Chris Gianelloni vice-1.17.ebuild, + vice-1.19.ebuild: + Added modular X dependencies and closing bug #120225. + +*vice-1.19 (17 Jan 2006) + + 17 Jan 2006; Hanno Boeck +vice-1.19.ebuild: + Version bump. + +*vice-1.18 (25 Dec 2005) + + 25 Dec 2005; Michael Sterrett +vice-1.18.ebuild: + version bump (bug #116657) + + 13 Nov 2005; Michael Hanselmann vice-1.17.ebuild: + Stable on ppc. + + 12 Nov 2005; Michael Sterrett vice-1.17.ebuild: + stable for x86 + + 20 Oct 2005; Michael Sterrett + -files/vice_gcc4_patch.gz, -vice-1.16.ebuild: + clean old version + + 17 Oct 2005; Hanno Boeck vice-1.17.ebuild: + Added all USE-flags to IUSE and added missing ffmpeg-dep. + +*vice-1.17 (11 Oct 2005) + + 11 Oct 2005; Michael Sterrett +vice-1.17.ebuild: + version bump + + 15 Aug 2005; Michael Sterrett vice-1.14-r1.ebuild, + vice-1.16.ebuild: + disabled gnome support since it doesn't work. see bug #101901 and discussion. + + 04 May 2005; Hanno Boeck +files/vice_gcc4_patch.gz, + vice-1.16.ebuild: + GCC 4 fix (from Debian, already applied by upstream devs). + + 24 Apr 2005; Michael Hanselmann vice-1.14-r1.ebuild: + Stable on ppc. + + 14 Feb 2005; Michael Sterrett vice-1.16.ebuild: + disabled ffmpeg support since ffmpeg isn't slotted and later versions aren't + compatible with the vice code (bug #81795) + +*vice-1.16 (12 Feb 2005) + + 12 Feb 2005; Michael Sterrett +vice-1.16.ebuild: + version bump (bug #67601) - use flag diff from Christian Harms + + 22 Jan 2005; Chris Gianelloni vice-1.14-r1.ebuild: + Changed use_with gnome to use_enable gnome and closing bug #77836. + + 02 Aug 2004; David Holm vice-1.14-r1.ebuild: + Added to ~ppc. + + 14 Jun 2004; Michael Sterrett vice-1.14.ebuild: + removed older ebuild + +*vice-1.14-r1 (14 Jun 2004) + + 14 Jun 2004; Michael Sterrett vice-1.14-r1.ebuild, + files/1.14-console-security.patch: + add patch to fix bug #53903 "monitor memory dump format string vulnerability" + Patch from upstream. + + 14 Apr 2004; Chris Gianelloni vice-1.14.ebuild: + Adding inherit eutils per discussion amongst games developers. + + 12 Apr 2004; Chris Gianelloni vice-1.14.ebuild: + Removing redundant inherit eutils. + + 29 Mar 2004; Michael Sterrett metadata.xml: + add metadata file + + 29 Mar 2004; Michael Sterrett + files/1.12-po-Makefile.patch, files/1.13-po-Makefile.patch: + remove unused patches + + 29 Mar 2004; Michael Sterrett vice-1.12-r1.ebuild, + vice-1.13.ebuild: + remove older ebuilds + +*vice-1.14 (07 Feb 2004) + + 07 Feb 2004; Mike Frysinger : + Version bump #40434 by Chris Aniszczyk. + +*vice-1.13 (03 Oct 2003) + + 03 Nov 2003; Michael Sterrett vice-1.13.ebuild: + DESTDIR fix for bug 32544; add prepgamesdirs + + 03 Oct 2003; Michael Sterrett vice-1.13.ebuild, + files/1.13-po-Makefile.patch: + version bump + +*vice-1.12-r1 (13 Jul 2003) + + 13 Jul 2003; Mike Frysinger : + Fixed up nls support #24041, added optional arts support and added games.eclass support. + +*vice-1.12 (24 Jun 2003) + + 24 Jun 2003; Hanno Boeck vice-1.12.ebuild: + Version bump. + +*vice-1.11 (23 Mar 2003) + + 23 Mar 2003; Hanno Boeck vice-1.11.ebuild: + New version. + +*vice-1.10 (08 Nov 2002) + + 08 Nov 2002; Hanno Boeck vice-1.10.ebuild : + New version. + Also fixed dependencies (no need to depend on full gnome). + +*vice-1.9 (03 Aug 2002) + + 03 Aug 2002; Daniel Ahlberg vice-1.9.ebuild : + Initial import. Ebuild submitted by Matt Matthews . diff --git a/app-emulation/vice/Manifest b/app-emulation/vice/Manifest new file mode 100644 index 00000000..01fb79c5 --- /dev/null +++ b/app-emulation/vice/Manifest @@ -0,0 +1,5 @@ +AUX vice-2.2-xshm.patch 1691 RMD160 b5a99eb56e6f89404da4ac7fb72c123beb500a52 SHA1 731b29e46f30411d532cf57ea674b48acfe7cb7e SHA256 58d6aeaebec1fe4a52a434b8f6874b67aa7ebea40339796f1b164726a864e27a +DIST vice-2.2.tar.gz 9597027 RMD160 d3fb33deb776ffcae297df413849437fb4e49840 SHA1 88ec1f4fefc708957b242805a28ca9b26a3e2738 SHA256 5d581bf817c97f1887651f92e73dd1f5e3c14627fa86fc70732491be7cba1551 +EBUILD vice-2.2-r1.ebuild 3008 RMD160 83760698a9dcf62a6ad8aef3021217551be69f4d SHA1 ee770850992c0c90f20d5c807250f79cddfae0ca SHA256 ad9435a28184a572200a018847df456db58dbcdd1ca04e20ff3c622dfe8f3e51 +MISC ChangeLog 9418 RMD160 62367ce1afa895d3724ffbdccd6b8aaf48f38cc6 SHA1 e65ad2712b3fd962a76e7d2f279d502fc8133806 SHA256 8c56dba0e5b91ccfa7dfd061229731bcdc7eac1d6342986eef57eaeddb8400f7 +MISC metadata.xml 355 RMD160 2be86be120d60193f7debc4eac5b87274ea71d0e SHA1 47edf967eca28ee36ba41788a9f2f55330b6a1b4 SHA256 74dd1a42d4949ea4d7e8f1267fb2b6d0f63b8cee0f1aa2cb9278f674192edb1f diff --git a/app-emulation/vice/files/vice-2.2-xshm.patch b/app-emulation/vice/files/vice-2.2-xshm.patch new file mode 100644 index 00000000..e0bc3960 --- /dev/null +++ b/app-emulation/vice/files/vice-2.2-xshm.patch @@ -0,0 +1,49 @@ +Patch from upstream trunk for xextproto >= 7.0.99.1 compability. + +--- configure.in ++++ configure.in +@@ -2192,6 +2192,11 @@ + [ X_LIBS="-lXext $X_LIBS"; + LINK_X_LIBS="-lXext $LINK_X_LIBS"],,$X_LIBS) + ++ PKG_CHECK_MODULES(XEXT, [xextproto >= 7.0.99.1], ++ HAVE_XEXTPROTO_71="yes"; AC_DEFINE(HAVE_XEXTPROTO_71, 1, [xextproto 7.1 available]), ++ HAVE_XEXTPROTO_71="no") ++ AM_CONDITIONAL(HAVE_XEXTPROTO_71, [ test "$HAVE_XEXTPROTO_71" = "yes" ]) ++ + AC_MSG_CHECKING(for X11/extensions/Xvlib.h) + AC_TRY_LINK([#include + #include ], +@@ -2391,6 +2396,11 @@ + AC_DEFINE(HAS_TRANSLATION,,[Enable internationalization support]) + fi + ++dnl Handle the xextproto conditinal for the systems that don't use it ++if test x"$is_unix_x11" != "xyes" -o x"$enable_sdlui" = "xyes" -o x"$enable_gnomeui" = "xyes"; then ++ AM_CONDITIONAL(HAVE_XEXTPROTO_71, false) ++fi ++ + dnl CBM4Linux/OpenCBM + AC_MSG_CHECKING([for OpenCBM support]) + if test x"$enable_realdevice" != "xno"; then +--- src/arch/unix/x11/xaw/x11video.c ++++ src/arch/unix/x11/xaw/x11video.c +@@ -56,6 +56,7 @@ + #include "vice.h" + + #include ++#include + #include + #include + #include +@@ -95,6 +96,10 @@ + #endif + + #ifdef USE_MITSHM ++#ifdef HAVE_XEXTPROTO_71 ++#include ++#include ++#endif + extern int shmhandler(Display* display, XErrorEvent* err); + extern int mitshm_failed; /* will be set to true if XShmAttach() failed */ + extern int shmmajor; /* major number of MITSHM error codes */ diff --git a/app-emulation/vice/metadata.xml b/app-emulation/vice/metadata.xml new file mode 100644 index 00000000..84683fd4 --- /dev/null +++ b/app-emulation/vice/metadata.xml @@ -0,0 +1,10 @@ + + + +games + + Enable ethernet emulation + Enable extra monitor features + Enable support for the X xrandr extension + + diff --git a/app-emulation/vice/vice-2.2-r1.ebuild b/app-emulation/vice/vice-2.2-r1.ebuild new file mode 100644 index 00000000..2d6f37fa --- /dev/null +++ b/app-emulation/vice/vice-2.2-r1.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vice/vice-2.2.ebuild,v 1.4 2010/04/11 17:04:29 phajdan.jr Exp $ + +EAPI=2 +inherit autotools eutils games + +DESCRIPTION="The Versatile Commodore 8-bit Emulator" +HOMEPAGE="http://vice-emu.sourceforge.net/" +SRC_URI="http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc x86" +IUSE="Xaw3d alsa gnome nls png readline sdl ipv6 memmap ethernet oss zlib X gif jpeg xv dga xrandr ffmpeg lame pulseaudio" + +RDEPEND=" + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXpm + x11-libs/libICE + x11-libs/libSM + x11-libs/libXt + x11-libs/libXxf86vm + x11-apps/xset + app-emulation/opencbm + Xaw3d? ( x11-libs/Xaw3d ) + !Xaw3d? ( !gnome? ( x11-libs/libXaw ) ) + alsa? ( media-libs/alsa-lib ) + gnome? ( + x11-libs/gtk+:2 + dev-libs/atk + x11-libs/pango + ) + lame? ( media-sound/lame ) + ffmpeg? ( >=media-video/ffmpeg-0.5_p20373 ) + ethernet? ( + >=net-libs/libpcap-0.9.8 + >=net-libs/libnet-1.1.2.1 + ) + nls? ( virtual/libintl ) + png? ( media-libs/libpng ) + readline? ( sys-libs/readline ) + sdl? ( media-libs/libsdl ) + gif? ( media-libs/giflib ) + jpeg? ( media-libs/jpeg:0 ) + xv? ( x11-libs/libXv ) + dga? ( x11-libs/libXxf86dga ) + xrandr? ( x11-libs/libXrandr )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + x11-apps/bdftopcf + x11-apps/mkfontdir + x11-proto/xproto + x11-proto/xf86vidmodeproto + x11-proto/xextproto + dga? ( x11-proto/xf86dgaproto ) + xv? ( x11-proto/videoproto ) + nls? ( sys-devel/gettext )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-xshm.patch + sed -i \ + -e "s:/usr/local/lib/VICE:${GAMES_DATADIR}/${PN}:" \ + man/vice.1 \ + $(grep -rl /usr/local/lib doc) \ + || die "sed failed" + sed -i \ + -e 's:png_check_sig:png_sig_cmp:g' \ + -e "/VICEDIR=/s:=.*:=\"${GAMES_DATADIR}/${PN}\";:" \ + configure.in \ + || die "sed failed" + sed -i \ + -e "s:\(#define LIBDIR \).*:\1\"${GAMES_DATADIR}/${PN}\":" \ + -e "s:\(#define DOCDIR \).*:\1\"/usr/share/doc/${PF}\":" \ + src/arch/unix/archdep.h \ + src/arch/sdl/archdep_unix.h + AT_NO_RECURSIVE=1 eautoreconf +} + +src_configure() { + # don't try to actually run fc-cache (bug #280976) + FCCACHE=/bin/true \ + PKG_CONFIG=pkg-config \ + egamesconf \ + --disable-dependency-tracking \ + --enable-fullscreen \ + --enable-parsid \ + --enable-realdevice \ + --with-resid \ + --without-arts \ + --without-esd \ + --without-midas \ + $(use_enable ffmpeg) \ + $(use_enable lame) \ + $(use_enable gnome gnomeui) \ + $(use_enable nls) \ + $(use_with Xaw3d xaw3d) \ + $(use_with alsa) \ + $(use_with pulseaudio pulse) \ + $(use_with png) \ + $(use_with readline) \ + $(use_with sdl sdlsound) \ + $(use_enable ipv6) \ + $(use_enable oss) \ + $(use_enable memmap) \ + $(use_enable ethernet) \ + $(use_with zlib) \ + $(use_with X x) +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS ChangeLog FEEDBACK README + prepgamesdirs +}