From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-924388-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 16A1D139085 for <garchives@archives.gentoo.org>; Thu, 19 Jan 2017 01:11:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 23BD4E0D26; Thu, 19 Jan 2017 01:11:14 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E3BEEE0D26 for <gentoo-commits@lists.gentoo.org>; Thu, 19 Jan 2017 01:11:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9A6D733BEFC for <gentoo-commits@lists.gentoo.org>; Thu, 19 Jan 2017 01:11:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 03298287D for <gentoo-commits@lists.gentoo.org>; Thu, 19 Jan 2017 01:11:11 +0000 (UTC) From: "Austin English" <wizardedit@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Austin English" <wizardedit@gentoo.org> Message-ID: <1484788243.aeb5bb41a2f58175517f818979dd1d6fe7f53ff2.wizardedit@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/vice/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/vice/vice-2.4.27-r3.ebuild X-VCS-Directories: app-emulation/vice/ X-VCS-Committer: wizardedit X-VCS-Committer-Name: Austin English X-VCS-Revision: aeb5bb41a2f58175517f818979dd1d6fe7f53ff2 X-VCS-Branch: master Date: Thu, 19 Jan 2017 01:11:11 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9ce22e63-a2cb-4e80-974f-2b2c52d3618b X-Archives-Hash: 9fd2e382fbf1b86e6abf217db5e332dc commit: aeb5bb41a2f58175517f818979dd1d6fe7f53ff2 Author: Austin English <wizardedit <AT> gentoo <DOT> org> AuthorDate: Tue Nov 15 19:48:47 2016 +0000 Commit: Austin English <wizardedit <AT> gentoo <DOT> org> CommitDate: Thu Jan 19 01:10:43 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aeb5bb41 app-emulation/vice: call xdg_environment_reset() in src_prepare() to avoid sandbox violations Gentoo-Bug: https://bugs.gentoo.org/599576 Package-Manager: portage-2.3.2 app-emulation/vice/vice-2.4.27-r3.ebuild | 179 +++++++++++++++++++++++++++++++ 1 file changed, 179 insertions(+) diff --git a/app-emulation/vice/vice-2.4.27-r3.ebuild b/app-emulation/vice/vice-2.4.27-r3.ebuild new file mode 100644 index 00000000..610845f --- /dev/null +++ b/app-emulation/vice/vice-2.4.27-r3.ebuild @@ -0,0 +1,179 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit autotools eutils toolchain-funcs flag-o-matic xdg-utils + +DESCRIPTION="The Versatile Commodore 8-bit Emulator" +HOMEPAGE="http://vice-emu.sourceforge.net/" +SRC_URI="mirror://sourceforge/vice-emu/releases/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="Xaw3d alsa ethernet ffmpeg fullscreen +gtk ipv6 lame nls oss png pulseaudio sdl +sdlsound threads vte zlib" + +# upstream says gtk3 and sdl2 shouldn't be exposed yet. +#REQUIRED_USE="?? ( gtk2 gtk3 sdl )" +REQUIRED_USE="?? ( gtk sdl )" + +GTK_COMMON=" + x11-libs/pango + x11-libs/cairo" +# gtk3? ( +# x11-libs/gtk+:3 +# vte? ( x11-libs/vte:2.90 ) +# ${GTK_COMMON} +# ) + +RDEPEND=" + virtual/jpeg:0 + virtual/opengl + media-libs/giflib + alsa? ( media-libs/alsa-lib ) + pulseaudio? ( media-sound/pulseaudio ) + sdlsound? ( media-libs/libsdl[sound] ) + ethernet? ( + >=net-libs/libpcap-0.9.8 + >=net-libs/libnet-1.1.2.1:1.1 + ) + ffmpeg? ( virtual/ffmpeg ) + lame? ( media-sound/lame ) + nls? ( virtual/libintl ) + png? ( media-libs/libpng:0 ) + zlib? ( sys-libs/zlib ) + sdl? ( + media-libs/libsdl[joystick,video] + ) + !sdl? ( + fullscreen? ( + x11-libs/libXrandr + x11-libs/libXxf86vm ) + x11-libs/libX11 + x11-libs/libXext + sys-libs/readline:0 + ) + gtk? ( + x11-libs/gtk+:2 + vte? ( x11-libs/vte:0 ) + x11-libs/gtkglext + ${GTK_COMMON} + ) + !sdl? ( !gtk? ( + x11-libs/libXmu + x11-libs/libXpm + x11-libs/libXt + x11-libs/libXv + Xaw3d? ( x11-libs/libXaw3d ) + !Xaw3d? ( x11-libs/libXaw ) + ) ) + " + +DEPEND="${RDEPEND} + virtual/pkgconfig + !sdl? ( + fullscreen? ( x11-proto/xf86vidmodeproto ) + !gtk? ( + x11-libs/libICE + x11-libs/libSM + ) + ) + x11-apps/bdftopcf + x11-apps/mkfontdir + x11-proto/xproto + x11-proto/xextproto + media-libs/fontconfig + x11-proto/videoproto + nls? ( sys-devel/gettext )" + +PATCH=( + "${FILESDIR}"/${P}-autotools.patch +) + #"${FILESDIR}"/vice_rath.txt + +src_prepare() { + # See https://bugs.gentoo.org/599576 + xdg_environment_reset + + default + sed -i \ + -e 's/building//' \ + doc/Makefile.am || die + sed -i \ + -e "/^docdir =/s:=.*:=/usr/share/doc/${PF}:" \ + doc/Makefile.am \ + doc/readmes/Makefile.am || die + sed -i \ + -e "/^docdir =/s:=.*:=/usr/share/doc/${PF}/html:" \ + doc/html/Makefile.am || die + sed -i \ + -e "s:/usr/local/lib/VICE:/usr/$(get_libdir)/${PN}:" \ + man/vice.1 \ + $(grep -rl --exclude="*texi" /usr/local/lib doc) || die + sed -i \ + -e "/VICEDIR=/s:=.*:=\"/usr/$(get_libdir)/${PN}\";:" \ + configure.ac || die + sed -i \ + -e "s:\(#define LIBDIR \).*:\1\"/usr/$(get_libdir)/${PN}\":" \ + -e "s:\(#define DOCDIR \).*:\1\"/usr/share/doc/${PF}\":" \ + src/arch/unix/archdep.h \ + src/arch/sdl/archdep_unix.h || die + rm -rf src/lib/{libffmpeg,liblame} || die + sed -i \ + -e '/SUBDIRS/s/libffmpeg//;' \ + -e '/SUBDIRS/s/liblame//;' \ + src/lib/Makefile.am || die + AT_NO_RECURSIVE=1 eautoreconf +} + +src_configure() { + local gui_arg snd_arg + + snd_arg+=" $(use_with alsa)" + snd_arg+=" $(use_with oss)" + snd_arg+=" $(use_with pulseaudio pulse)" + snd_arg+=" $(use_with sdlsound)" + + gui_arg+=" $(use_enable sdl sdlui)" + # The gtk UI code has raw calls to XOpenDisplay and + # is missing -lX11 if vte doesn't pull it in. + #if use gtk2 || use gtk3 ; then + if use gtk ; then + use vte || append-libs -lX11 + fi + gui_arg+=" $(use_enable gtk gnomeui)" + #gui_arg+=" $(use_enable gtk3 gnomeui3)" + gui_arg+=" $(use_enable Xaw3d xaw3d)" + + # --with-readline is forced to avoid using the embedded copy + # don't try to actually run fc-cache (bug #280976) + FCCACHE=/bin/true \ + PKG_CONFIG=$(tc-getPKG_CONFIG) \ + econf \ + --enable-parsid \ + --with-resid \ + --with-readline \ + --without-arts \ + --without-midas \ + $(use_enable ethernet) \ + $(use_enable ffmpeg) \ + $(use_enable ffmpeg external-ffmpeg) \ + $(use_enable fullscreen) \ + $(use_enable ipv6) \ + $(use_enable lame) \ + $(use_enable nls) \ + $(use_enable vte) \ + $(use_with png) \ + $(use_with threads uithreads) \ + $(use_with zlib) \ + ${gui_arg} \ + ${snd_arg} \ + --disable-option-checking + # --disable-option-checking has to be last +} + +src_install() { + DOCS="FEEDBACK" + default +}