diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-02-29 18:01:47 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-02-29 18:01:47 +0000 |
commit | ceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (patch) | |
tree | 9f47ee47c31a0f13f9496879cd88a1042550aa81 /app-emulation/vice | |
parent | 53cba99042fa967e2a93da9f8db806fe2d035543 (diff) |
gentoo (leap year) resync : 29.02.2020
Diffstat (limited to 'app-emulation/vice')
-rw-r--r-- | app-emulation/vice/Manifest | 4 | ||||
-rw-r--r-- | app-emulation/vice/metadata.xml | 4 | ||||
-rw-r--r-- | app-emulation/vice/vice-3.4_p37498.ebuild | 175 |
3 files changed, 182 insertions, 1 deletions
diff --git a/app-emulation/vice/Manifest b/app-emulation/vice/Manifest index e68c4cf789bb..cfd4babc832f 100644 --- a/app-emulation/vice/Manifest +++ b/app-emulation/vice/Manifest @@ -1,5 +1,7 @@ AUX vice-2.4.27-autotools.patch 353 BLAKE2B 01b25d40ad4dd621e32896b0c7f30715fcf0ea7cce8bffdb742caf241ebb0ed7c7d0d40c2cea852640f8b0e4d84bac1d5a87653c9641a33acd8f177a39130c80 SHA512 10ba3f9f9c0e69f34ea3ab361b198826b7055586e2dade320a60c1a1e429797d2eaf1554b1e9fde63f8ddb23bd4a9b8fb24d3f9692433b6b6d043d09761924d3 AUX vice-3.1-ffmpeg4.patch 1971 BLAKE2B 6fcf4f8ddb3cb26727075483f8e17f8b07a22c081440356abdd733a91a41908a4d4344ad4aa2839bf79fc123a8e342d026a93e9d37bbef550ea3a6ee6dcf6741 SHA512 3240ab6287131813a56ac2c64613b5ea93560f0b0ed572b042aeed47594e7bb7c6b03e36edaee4efdc5350533dbde8adb10451658406ef9998c3c5742e08233c DIST vice-3.1.tar.gz 30714226 BLAKE2B 75c2cce5294dad5b954cd23b623b6b4610c8142a09aef05dbefed6b3e6b268077d375e644dde6a057682d41ab9cf15e93a9f4a9359bfa0d1567d6d1862053a0e SHA512 bc02a3597a17dadb37c487e6942192c0e9dc1a7d4e440fbf0dc8a165dbb2dee60ddf157697a020d2780ddef56a0a67802768d5c6d117b9cf5cdc124de45bc579 +DIST vice-emu-code-r37498-trunk-vice.zip 26810776 BLAKE2B 05baa0d123e9a0f1141ef68940455b5abfccde0204d0ffeb0a806212977be6f1f2c777267cad077272f4e09fa3c6adb9e95436adaaee5482b2ce918a3485caeb SHA512 5b4c31e51efc67ac08f6fe9361c42b80115b315fc24c128861341f2eea7567bdbb1761e52bc914df442ed5cc7f2ca7c6b0a2694441d63e63f9f693bcf72c70c0 EBUILD vice-3.1.ebuild 4061 BLAKE2B 043e0115b7e39e73da029034bf2cf5b851c4391850ecf7bdf17634629a1e6d65537775543457fc2b2e56e56ef0795c65791d8cf16af049cf58e8fe2153f0fbe8 SHA512 18571cc5a39baf5b1a224972adbfeb0ee8aec612c00eaf7c5cebfeabc606424ebdef21d75822a5f803b1c0ca353577596a3bcb3fa621570c7d97e1bbbb17a738 -MISC metadata.xml 646 BLAKE2B 94f3652c8e4217e34415b84f35b468febdefb688fe85b5b0b2ddafa0b3739bc36fbfaab12e4100df1cad3c5b4cd823b4af260811110da4410c09d32596ac7f43 SHA512 1d641f0e1ba5962aa7b9e230c20ade01595aed9f853be25ec4d5022aff22cbd75414a41fbf64427bf5a27485057ee3e767521561f396a5bf70ffa3e1da31739f +EBUILD vice-3.4_p37498.ebuild 4168 BLAKE2B 90677d8d5d2514b3bf6b11645b073aafe9c5cddc4f49383c811110a3a7eea77b320a491735b7c81ef0c20ccb96f3b03e2eb7892c1ba7ae443b186c5971bf3236 SHA512 7038709746e7ea2f09fc2ac59f7d31fb1d4f341cde464c61397ef617e3bd8d5ae4c3daeed652abfb253559019d3be2fd235079f8114b96a865bc1bcfda039697 +MISC metadata.xml 935 BLAKE2B 2be70fd66a8fad1d34e34e0c5c53cedae60d32ffdfe5fa9e715db1444994d1858af8f0fe5920a64b0088837b786a241842f9976d1385f8df6d8d6804e5c516cc SHA512 4911527e6659f4bb300931883552a2417e5e36555681a15fc97ac29a130ddff29b31e954922bf6b5f005d205141dfdc96e00030c2cb35258f5db2995136d01ad diff --git a/app-emulation/vice/metadata.xml b/app-emulation/vice/metadata.xml index ff9234728a4e..8ff137c8c207 100644 --- a/app-emulation/vice/metadata.xml +++ b/app-emulation/vice/metadata.xml @@ -8,6 +8,10 @@ <use> <flag name="ethernet">Enable ethernet emulation</flag> <flag name="fullscreen">Enable the ability to run fullscreen</flag> + <flag name="headless">Include the headless variant of the emulator</flag> + <flag name="mpg123">Enable mp3@64 cartridge support</flag> + <flag name="parport">Enable parallel port SID support</flag> + <flag name="pci">Enable PCI device discovery using <pkg>sys-apps/pciutils</pkg></flag> <flag name="sdlsound">Use <pkg>media-libs/libsdl</pkg> for sound support</flag> <flag name="vte">Enable support for <pkg>x11-libs/vte</pkg> in the GTK+ interface</flag> </use> diff --git a/app-emulation/vice/vice-3.4_p37498.ebuild b/app-emulation/vice/vice-3.4_p37498.ebuild new file mode 100644 index 000000000000..e23e6deb107f --- /dev/null +++ b/app-emulation/vice/vice-3.4_p37498.ebuild @@ -0,0 +1,175 @@ +# 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}" + +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 +} |