From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 7E1F4138350 for ; Sun, 5 Apr 2020 22:06:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB259E0B66; Sun, 5 Apr 2020 22:05:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A03CCE0B66 for ; Sun, 5 Apr 2020 22:05:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 875B134E835 for ; Sun, 5 Apr 2020 22:05:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4545818E for ; Sun, 5 Apr 2020 22:05:57 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1586124295.64eba6176be0318351a64c50fa588d957948bf13.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/vice/, app-emulation/vice/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/vice/Manifest app-emulation/vice/files/vice-pkg-config.patch app-emulation/vice/vice-3.4_p37605.ebuild X-VCS-Directories: app-emulation/vice/ app-emulation/vice/files/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 64eba6176be0318351a64c50fa588d957948bf13 X-VCS-Branch: master Date: Sun, 5 Apr 2020 22:05:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 776c162a-94da-4905-893c-425dffc1ddf7 X-Archives-Hash: 96586f383a4c98ebece527469b7627e6 commit: 64eba6176be0318351a64c50fa588d957948bf13 Author: James Le Cuirot gentoo org> AuthorDate: Sun Apr 5 21:46:14 2020 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sun Apr 5 22:04:55 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64eba617 app-emulation/vice: Bump 3.4 to rev 37605, add SDL2 pkg-config patch This includes GCC 10 fixes. Closes: https://bugs.gentoo.org/710990 Package-Manager: Portage-2.3.96, Repoman-2.3.20 Signed-off-by: James Le Cuirot gentoo.org> app-emulation/vice/Manifest | 1 + app-emulation/vice/files/vice-pkg-config.patch | 29 ++++ app-emulation/vice/vice-3.4_p37605.ebuild | 179 +++++++++++++++++++++++++ 3 files changed, 209 insertions(+) diff --git a/app-emulation/vice/Manifest b/app-emulation/vice/Manifest index fbe27e05301..5aaf0e57602 100644 --- a/app-emulation/vice/Manifest +++ b/app-emulation/vice/Manifest @@ -1,2 +1,3 @@ DIST vice-3.1.tar.gz 30714226 BLAKE2B 75c2cce5294dad5b954cd23b623b6b4610c8142a09aef05dbefed6b3e6b268077d375e644dde6a057682d41ab9cf15e93a9f4a9359bfa0d1567d6d1862053a0e SHA512 bc02a3597a17dadb37c487e6942192c0e9dc1a7d4e440fbf0dc8a165dbb2dee60ddf157697a020d2780ddef56a0a67802768d5c6d117b9cf5cdc124de45bc579 DIST vice-emu-code-r37498-trunk-vice.zip 26810776 BLAKE2B 05baa0d123e9a0f1141ef68940455b5abfccde0204d0ffeb0a806212977be6f1f2c777267cad077272f4e09fa3c6adb9e95436adaaee5482b2ce918a3485caeb SHA512 5b4c31e51efc67ac08f6fe9361c42b80115b315fc24c128861341f2eea7567bdbb1761e52bc914df442ed5cc7f2ca7c6b0a2694441d63e63f9f693bcf72c70c0 +DIST vice-emu-code-r37605-trunk-vice.zip 26854864 BLAKE2B 771728b69cb38492d086d199fcb56d19f14738bc6b5c3f0b1c9c6ffb07db0d2c2a3d631ed9f32a2abf0159d4e3e0d144c04e6ba13c22ce619ea1090f89b7b5cc SHA512 975c342d5ee7f72cc775bee711fed77fb6ce00bc15eef13403b9f3a457ac589d0089bcdf452507605bbf11d8806fceec94729becf1ef3fe66f6074854684d998 diff --git a/app-emulation/vice/files/vice-pkg-config.patch b/app-emulation/vice/files/vice-pkg-config.patch new file mode 100644 index 00000000000..d29eff252fb --- /dev/null +++ b/app-emulation/vice/files/vice-pkg-config.patch @@ -0,0 +1,29 @@ +https://sourceforge.net/p/vice-emu/patches/218/ + +Index: configure.proto +=================================================================== +--- a/configure.proto (revision 37525) ++++ b/configure.proto (working copy) +@@ -1275,6 +1275,14 @@ + fi + + if test x"$found_sdl2" != "xyes"; then ++ PKG_CHECK_MODULES(SDL2, sdl2, [ ++ use_sdl_prefix=no ++ use_sdl2_prefix=no ++ found_sdl2=yes ++ VICE_CFLAGS="$VICE_CFLAGS $SDL2_CFLAGS" ++ VICE_CXXFLAGS="$VICE_CXXFLAGS $SDL2_CFLAGS" ++ LIBS="$LIBS $SDL2_LIBS" ++ ], [ + dnl Check for sdl2-config + if test x"$sdl2_config" != "xno"; then + user_CFLAGS="$CFLAGS" +@@ -1311,6 +1319,7 @@ + CFLAGS="$user_CFLAGS" + CXXFLAGS="$user_CXXFLAGS" + fi ++ ]) + fi + + dnl fail if SDL2 ui was requested, otherwise restore flags and continue diff --git a/app-emulation/vice/vice-3.4_p37605.ebuild b/app-emulation/vice/vice-3.4_p37605.ebuild new file mode 100644 index 00000000000..46da7890406 --- /dev/null +++ b/app-emulation/vice/vice-3.4_p37605.ebuild @@ -0,0 +1,179 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools multibuild + +MY_P="vice-emu-code-r${PV##*_p}-trunk-vice" + +DESCRIPTION="The Versatile Commodore Emulator" +HOMEPAGE="http://vice-emu.sourceforge.net/" +#SRC_URI="mirror://sourceforge/vice-emu/releases/${P}.tar.gz" +SRC_URI="https://sourceforge.net/code-snapshots/svn/v/vi/vice-emu/code/${MY_P}.zip" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="alsa debug doc ethernet ffmpeg flac gif +gtk headless ipv6 jpeg lame libav mpg123 ogg oss +opengl parport pci png portaudio pulseaudio sdl zlib" +REQUIRED_USE="|| ( gtk headless sdl ) gtk? ( zlib )" + +RDEPEND=" + sys-libs/readline:0= + virtual/libintl + alsa? ( media-libs/alsa-lib ) + ethernet? ( + >=net-libs/libpcap-0.9.8 + >=net-libs/libnet-1.1.2.1:1.1 + ) + ffmpeg? ( + libav? ( media-video/libav:= ) + !libav? ( media-video/ffmpeg:= ) + ) + flac? ( media-libs/flac ) + gif? ( media-libs/giflib:= ) + gtk? ( + dev-libs/glib:2 + media-libs/fontconfig:1.0 + x11-libs/gtk+:3 + opengl? ( + media-libs/glew:0= + virtual/opengl + ) + ) + jpeg? ( virtual/jpeg ) + lame? ( media-sound/lame ) + mpg123? ( media-sound/mpg123 ) + ogg? ( + media-libs/libogg + media-libs/libvorbis + ) + parport? ( sys-libs/libieee1284 ) + pci? ( sys-apps/pciutils ) + png? ( media-libs/libpng:0= ) + portaudio? ( media-libs/portaudio ) + pulseaudio? ( media-sound/pulseaudio ) + sdl? ( media-libs/libsdl2[video] ) + zlib? ( sys-libs/zlib ) +" + +DEPEND=" + ${RDEPEND} + x11-base/xorg-proto +" + +BDEPEND=" + app-arch/unzip + dev-embedded/xa + dev-lang/perl + sys-apps/texinfo + sys-devel/flex + sys-devel/gettext + virtual/pkgconfig + virtual/yacc + doc? ( virtual/texi2dvi ) +" + +S="${WORKDIR}/${MY_P}" +ECONF_SOURCE="${S}" + +PATCHES=( + "${FILESDIR}"/vice-pkg-config.patch +) + +src_prepare() { + default + + # Delete some bundled libraries. + rm -r src/lib/lib{ffmpeg,lame,x264} || die + + sed "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g" < configure.proto > configure.ac || die + + local DIR + for DIR in src/resid src/resid-dtv .; do + pushd "${DIR}" || die + AT_NO_RECURSIVE=1 eautoreconf + popd || die + done + + # Strip the predefined C(XX)FLAGS. + sed -i -r 's:(VICE_C(XX)?FLAGS=)"[^$]+":\1:' configure || die +} + +src_configure() { + MULTIBUILD_VARIANTS=( + $(usev gtk) + $(usev headless) + $(usev sdl) + ) + + multibuild_foreach_variant run_in_build_dir multibuild_src_configure +} + +multibuild_enable() { + if [[ ${MULTIBUILD_VARIANT} == $1 ]]; then + printf -- "--enable-%s\n" "$2" + else + printf -- "--disable-%s\n" "$2" + fi +} + +multibuild_src_configure() { + # Some dependencies lack configure options so prevent them becoming + # automagic by using configure cache variables. + use flac || export ac_cv_header_FLAC_stream_decoder_h=no + use mpg123 || export ac_cv_header_mpg123_h=no + use ogg || export ac_cv_header_vorbis_vorbisfile_h=no + use pci || export ac_cv_header_pci_pci_h=no + + # Ensure we use giflib, not ungif. + export ac_cv_lib_ungif_EGifPutLine=no + + # Append ".variant" to x* programs if building multiple variants. + if [[ ${#MULTIBUILD_VARIANTS[@]} -gt 1 ]]; then + xform="/^x/s/\$/.${MULTIBUILD_VARIANT}/" + else + unset xform + fi + + econf \ + --program-transform-name="${xform}" \ + --disable-sdlui \ + $(multibuild_enable sdl sdlui2) \ + $(multibuild_enable gtk native-gtk3ui) \ + $(use_enable debug debug-gtk3ui) \ + $(multibuild_enable headless headlessui) \ + $(use_enable opengl hwscale) \ + --disable-shared-ffmpeg \ + --disable-static-ffmpeg \ + $(use_enable ffmpeg external-ffmpeg) \ + $(use_enable ethernet) \ + $(use_enable ipv6) \ + $(use_enable parport libieee1284) \ + $(use_enable portaudio) \ + $(use_enable lame) \ + $(use_enable debug) \ + --disable-arch \ + $(use_enable doc pdf-docs) \ + --enable-html-docs \ + $(use_with pulseaudio pulse) \ + $(use_with alsa) \ + $(use_with oss) \ + $(use_with jpeg) \ + $(use_with png) \ + $(use_with gif) \ + $(use_with zlib) +} + +src_compile() { + multibuild_foreach_variant run_in_build_dir emake +} + +src_install() { + multibuild_foreach_variant run_in_build_dir default + dodoc FEEDBACK + + # Delete the bundled fonts. These could be packaged separately but + # they're only for the HTML documentation. + rm -r "${ED}"/usr/share/doc/${PF}/html/fonts/ || die +}