From 03617de53c60d511577d5f5a63043fc0f405f897 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Mon, 25 Jul 2022 21:09:38 -0400 Subject: app-emulation/vice: EAPI7->8 Been meaning to clean this up after realizing could use QA_ for --disable-static. Also update jpeg/pulseaudio deps while revbumping. Trivial so straight-to-stable'ing. Signed-off-by: Ionen Wolkens --- app-emulation/vice/vice-3.6.1-r1.ebuild | 193 ++++++++++++++++++++++++++++++++ app-emulation/vice/vice-3.6.1.ebuild | 193 -------------------------------- 2 files changed, 193 insertions(+), 193 deletions(-) create mode 100644 app-emulation/vice/vice-3.6.1-r1.ebuild delete mode 100644 app-emulation/vice/vice-3.6.1.ebuild (limited to 'app-emulation') diff --git a/app-emulation/vice/vice-3.6.1-r1.ebuild b/app-emulation/vice/vice-3.6.1-r1.ebuild new file mode 100644 index 000000000000..3c1ee81f612c --- /dev/null +++ b/app-emulation/vice/vice-3.6.1-r1.ebuild @@ -0,0 +1,193 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multibuild toolchain-funcs 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 cpuhistory debug doc ethernet ffmpeg flac gif +gtk headless jpeg + lame mpg123 ogg openmp oss parport pci png portaudio pulseaudio sdl zlib" +REQUIRED_USE=" + || ( gtk headless sdl ) + gtk? ( zlib )" + +# ffmpeg/lame are loaded by dlopen(), keeping := to rebuild with same headers +# see bug #834359 for the ffmpeg upper bound +RDEPEND=" + virtual/libintl + alsa? ( media-libs/alsa-lib ) + ethernet? ( + net-libs/libpcap + sys-libs/libcap + ) + ffmpeg? ( 1 )) && + xform="/^x/s/\$/.${MULTIBUILD_VARIANT}/" + + vice-multi_enable() { + if [[ ${MULTIBUILD_VARIANT} == ${1} ]]; then + echo --enable-${2} + else + echo --disable-${2} + fi + } + + local econfargs=( + --program-transform-name="${xform}" + $(vice-multi_enable gtk desktop-files) + $(vice-multi_enable gtk native-gtk3ui) + $(vice-multi_enable headless headlessui) + $(vice-multi_enable sdl sdlui2) + $(usex debug $(vice-multi_enable gtk debug-gtk3ui) --disable-debug-gtk3ui) + $(use_enable cpuhistory) + $(use_enable debug) + $(use_enable doc pdf-docs) + $(use_enable ethernet) + $(use_enable ffmpeg external-ffmpeg) + $(use_enable lame) + $(use_enable openmp) + $(use_enable parport libieee1284) + $(use_enable portaudio) + $(use_with alsa) + $(use_with flac) + $(use_with gif) + $(use_with jpeg) + $(use_with mpg123) + $(use_with ogg vorbis) + $(use_with oss) + $(use_with png) + $(use_with pulseaudio pulse) + $(use_with zlib) + $(usex alsa --enable-midi $(use_enable oss midi)) + $(usev !pci ac_cv_header_pci_pci_h=no) + --disable-arch + --disable-sdlui + ac_cv_lib_ungif_EGifPutLine=no # ensure use giflib, not ungif + + # $(use_with curl libcurl) # new in 3.6 but is a unused placeholder + # --enable-io-simulation # likewise + ) + + econf "${econfargs[@]}" +} + +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 + + vice-install_extras() { + docinto html + dodoc doc/html/*.{html,css} + dodoc -r doc/html/images + + insinto /usr/share/vim/vimfiles/ftdetect + doins doc/vim/ftdetect/*.vim + + insinto /usr/share/vim/vimfiles/syntax + doins doc/vim/syntax/*.vim + } + multibuild_for_best_variant run_in_build_dir vice-install_extras +} diff --git a/app-emulation/vice/vice-3.6.1.ebuild b/app-emulation/vice/vice-3.6.1.ebuild deleted file mode 100644 index dcefe70a8de1..000000000000 --- a/app-emulation/vice/vice-3.6.1.ebuild +++ /dev/null @@ -1,193 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# --enable-static-lame triggers bug #814380 with EAPI-8, could work -# around but staying EAPI-7 for now unless there's some urgency -EAPI=7 - -inherit multibuild toolchain-funcs 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 cpuhistory debug doc ethernet ffmpeg flac gif +gtk headless jpeg - lame mpg123 ogg openmp oss parport pci png portaudio pulseaudio sdl zlib" -REQUIRED_USE=" - || ( gtk headless sdl ) - gtk? ( zlib )" - -# ffmpeg/lame are loaded by dlopen(), keeping := to rebuild with same headers -# see bug #834359 for the ffmpeg upper bound -RDEPEND=" - virtual/libintl - alsa? ( media-libs/alsa-lib ) - ethernet? ( - net-libs/libpcap - sys-libs/libcap - ) - ffmpeg? ( 1 )) && - xform="/^x/s/\$/.${MULTIBUILD_VARIANT}/" - - vice-multi_enable() { - if [[ ${MULTIBUILD_VARIANT} == ${1} ]]; then - echo --enable-${2} - else - echo --disable-${2} - fi - } - - local econfargs=( - --program-transform-name="${xform}" - $(vice-multi_enable gtk desktop-files) - $(vice-multi_enable gtk native-gtk3ui) - $(vice-multi_enable headless headlessui) - $(vice-multi_enable sdl sdlui2) - $(usex debug $(vice-multi_enable gtk debug-gtk3ui) --disable-debug-gtk3ui) - $(use_enable cpuhistory) - $(use_enable debug) - $(use_enable doc pdf-docs) - $(use_enable ethernet) - $(use_enable ffmpeg external-ffmpeg) - $(use_enable lame) - $(use_enable openmp) - $(use_enable parport libieee1284) - $(use_enable portaudio) - $(use_with alsa) - $(use_with flac) - $(use_with gif) - $(use_with jpeg) - $(use_with mpg123) - $(use_with ogg vorbis) - $(use_with oss) - $(use_with png) - $(use_with pulseaudio pulse) - $(use_with zlib) - $(usex alsa --enable-midi $(use_enable oss midi)) - $(usex pci '' ac_cv_header_pci_pci_h=no) - --disable-arch - --disable-sdlui - ac_cv_lib_ungif_EGifPutLine=no # ensure use giflib, not ungif - - # $(use_with curl libcurl) # new in 3.6 but is a unused placeholder - # --enable-io-simulation # likewise - ) - - econf "${econfargs[@]}" -} - -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 - - vice-install_extras() { - docinto html - dodoc doc/html/*.{html,css} - dodoc -r doc/html/images - - insinto /usr/share/vim/vimfiles/ftdetect - doins doc/vim/ftdetect/*.vim - - insinto /usr/share/vim/vimfiles/syntax - doins doc/vim/syntax/*.vim - } - multibuild_for_best_variant run_in_build_dir vice-install_extras -} -- cgit v1.2.3-65-gdbad