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 9AE1C1382C5 for ; Thu, 7 Jan 2021 16:28:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E16A1E07AE; Thu, 7 Jan 2021 16:28:38 +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 A8E25E07AE for ; Thu, 7 Jan 2021 16:28:38 +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 6BCD33413F8 for ; Thu, 7 Jan 2021 16:28:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DB9054B for ; Thu, 7 Jan 2021 16:28:35 +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: <1610036886.901063aa932d2d1cb1ed9215b30d782b093f4478.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/vice/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/vice/Manifest app-emulation/vice/vice-3.5.ebuild X-VCS-Directories: app-emulation/vice/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 901063aa932d2d1cb1ed9215b30d782b093f4478 X-VCS-Branch: master Date: Thu, 7 Jan 2021 16:28:35 +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: 000c73a8-7122-4521-ae59-bb36e83a23d0 X-Archives-Hash: a77d957dd125c2c85b0acd391b6bfd4f commit: 901063aa932d2d1cb1ed9215b30d782b093f4478 Author: James Le Cuirot gentoo org> AuthorDate: Thu Jan 7 16:28:06 2021 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Thu Jan 7 16:28:06 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=901063aa app-emulation/vice: Version bump to 3.5 This fixes building against musl. Closes: https://bugs.gentoo.org/761529 Closes: https://bugs.gentoo.org/764218 Package-Manager: Portage-3.0.12, Repoman-3.0.1 Signed-off-by: James Le Cuirot gentoo.org> app-emulation/vice/Manifest | 1 + app-emulation/vice/vice-3.5.ebuild | 166 +++++++++++++++++++++++++++++++++++++ 2 files changed, 167 insertions(+) diff --git a/app-emulation/vice/Manifest b/app-emulation/vice/Manifest index 793bfbd5c65..6d59125ff4d 100644 --- a/app-emulation/vice/Manifest +++ b/app-emulation/vice/Manifest @@ -1 +1,2 @@ +DIST vice-3.5.tar.gz 22557578 BLAKE2B 5573951052c2c7b2beb4dd194ad8612c53e484e47a4d935e0dbc880f2f06611252add3631f99c9656f2c941088d0147b0783020ffcc5a29505bab75ef8dc128e SHA512 02f364c1645138cacb461346d44de8f524fb2aba7d980181caf039c46ca9d30db98466e5b0e56e6a41417cd7bbd63d73bf6eb110af1271e23732e320dd1fab70 DIST vice-emu-code-r38553-trunk-vice.zip 27146846 BLAKE2B 5139e4b1e9269c3885313889dffc055298c52152da77e5a824270feb0af6ba61a1726160a6d259e9f8840fefe486cc184f5bfda3ba1797e0359159ccf1e9824f SHA512 c4d3f132bae2980163e74695126e979bd68dddecb17c2eea8227edbb675985d1f04ade665b946a5e3c707bc17e260efb61f57aa141b6ef712385d4d85a68ef86 diff --git a/app-emulation/vice/vice-3.5.ebuild b/app-emulation/vice/vice-3.5.ebuild new file mode 100644 index 00000000000..8bbf1366c06 --- /dev/null +++ b/app-emulation/vice/vice-3.5.ebuild @@ -0,0 +1,166 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multibuild xdg + +DESCRIPTION="The Versatile Commodore Emulator" +HOMEPAGE="https://vice-emu.sourceforge.io/" +SRC_URI="mirror://sourceforge/vice-emu/releases/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="alsa debug doc ethernet ffmpeg flac gif +gtk headless ipv6 jpeg lame mpg123 ogg oss 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? ( media-video/ffmpeg:= ) + flac? ( media-libs/flac ) + gif? ( media-libs/giflib:= ) + gtk? ( + dev-libs/glib:2 + media-libs/fontconfig:1.0 + media-libs/glew:0= + x11-libs/cairo + x11-libs/gtk+:3 + x11-libs/pango + 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 + app-text/dos2unix + dev-embedded/xa + dev-lang/perl + sys-apps/texinfo + sys-devel/flex + sys-devel/gettext + virtual/pkgconfig + virtual/yacc + doc? ( virtual/texi2dvi ) + gtk? ( x11-misc/xdg-utils ) +" + +ECONF_SOURCE="${S}" + +src_prepare() { + default + + # Delete some bundled libraries. + rm -r src/lib/lib{ffmpeg,lame,x264} || die + + # 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 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-arch \ + $(use_enable debug) \ + $(use_enable debug debug-gtk3ui) \ + $(use_enable ffmpeg external-ffmpeg) \ + $(multibuild_enable headless headlessui) \ + --enable-html-docs \ + $(use_enable ethernet) \ + $(use_enable ipv6) \ + $(use_enable lame) \ + $(use_enable parport libieee1284) \ + $(multibuild_enable gtk native-gtk3ui) \ + $(use_enable doc pdf-docs) \ + $(use_enable portaudio) \ + --disable-sdlui \ + $(multibuild_enable sdl sdlui2) \ + --disable-shared-ffmpeg \ + --disable-static-ffmpeg \ + $(multibuild_enable gtk desktop-files) \ + $(use_with alsa) \ + $(use_with gif) \ + $(use_with jpeg) \ + $(use_with oss) \ + $(use_with png) \ + $(use_with pulseaudio pulse) \ + $(use_with zlib) \ + $(use_with mpg123) \ + $(use_with ogg vorbis) \ + $(use_with flac) +} + +src_compile() { + multibuild_foreach_variant run_in_build_dir emake +} + +src_install() { + # Get xdg-desktop-menu to play nicely while doing the install. + dodir /etc/xdg/menus /usr/share/{applications,desktop-directories} + XDG_UTILS_INSTALL_MODE=system \ + XDG_DATA_DIRS="${ED}"/usr/share \ + XDG_CONFIG_DIRS="${ED}"/etc/xdg \ + multibuild_foreach_variant run_in_build_dir default + rm -f "${ED}"/usr/share/applications/*.cache || die + + # 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 +}