From ccaccfe4f1da8c11d9fa110f6e4eb847358769d7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 18 Jun 2024 00:10:02 +0100 Subject: gentoo auto-resync : 18:06:2024 - 00:10:02 --- app-misc/kryoflux-dtc/Manifest | 2 + app-misc/kryoflux-dtc/kryoflux-dtc-3.50_p2.ebuild | 118 ++++++++++++++++++++++ 2 files changed, 120 insertions(+) create mode 100644 app-misc/kryoflux-dtc/kryoflux-dtc-3.50_p2.ebuild (limited to 'app-misc/kryoflux-dtc') diff --git a/app-misc/kryoflux-dtc/Manifest b/app-misc/kryoflux-dtc/Manifest index 17ce4873c52c..eca451f30764 100644 --- a/app-misc/kryoflux-dtc/Manifest +++ b/app-misc/kryoflux-dtc/Manifest @@ -1,6 +1,8 @@ DIST kryoflux_2.6_linux.tar.bz2 9177658 BLAKE2B 6eb0bc7a166950bfedb32da466c17125a8a7d64e4bc9aa6610c69dd0f98c2fb5187ad19dbaf191b33dcb5a786ec4a1fa9bce2464c3c04eb152e0b9ed7ae770f2 SHA512 9bf700e9c646bad135999eb1fed12c86ff6fbc11a0034b86af7541fb16a4905dd740c706ebb87bf5848f5d80f45699c350a56397df5b6850559c2576d18eef1b DIST kryoflux_3.00_linux.tgz 13921877 BLAKE2B aceb934ec7b0b9d5d1d96555dceeeaa5eb11af67b1aae91888376a2c7615d4ed135167d4c3ea0ae3851a378e5fd5934aacd557a57e28e824c9131efcb87bc59e SHA512 0f4e805373c769bc81659ff93d6f8001103a6a192ca30c73b84cde231d52aa51950860fb9e11c156800d40ebbcd7cc33253f0fcbd436e8668731836f9689c013 DIST kryoflux_3.00_windows.zip 18211783 BLAKE2B e50cfc196d37216a7c929c4aa915b5cfeb7f38805076aed4e1bbc9dbfcc946fce18db0a2e2020d77cf581e2df174f2e3b6eb2b3d9060795501b1769d258ad05d SHA512 afa42fd3460d796dd3694059a86484ea94ab3084c52dc18d6f14e5b790d66e0f13514fbe2efc5c32abd3e471cdb0ac10cc3f7bafcdfb41371a6caddda83e2a00 +DIST kryoflux_3.50_linux_2.tar.gz 15309688 BLAKE2B adc315fb29c35b7e16f07ebf9bbd7f8939d92fd5db875f8bd3ed77b8a6d69a895c4be5c94eda571844a01e06f3c594c11a7f08632a259abb7192daffa66bad09 SHA512 91d821fab98a7582d299c9783076e438921621193d87712d676472f588a43a0d6394187f203a939619c8336c45650ec6e9f9f5f45dc4255d56c16f512af98352 EBUILD kryoflux-dtc-2.6-r3.ebuild 2582 BLAKE2B 1c2e93de9e4d0c9875f7790d439b6548958ceea5a6f6b09f429a9a6f5935fb2c83212db4ae70c01cf387fbef44c05267749d71f435f45ac93efe3867b736a39f SHA512 1ada41066276011c96dd2e4c239ce2c845c063338bb8a02897b8211af2cc5b5bf540c69fc2015e799c5821f796c9a1407503001e71944961c64b941472a6b6fe EBUILD kryoflux-dtc-3.00.ebuild 2511 BLAKE2B ec86e4696301b5484796ffba9c9b69b13208f2115366145bee9b2b1e6b0325a7bda5ec0b6204cf5c5d87f0caace131a9c753fa8a047ef1c530beeae68358afb0 SHA512 3ed9b1a78a8009390645f872551213aeb8626482b949d6b4bde01105f0f47e61d9fff0e0ad1c704b2f179bc212ea11af2c3ade9cc138d20176f8d052c6bbbdc7 +EBUILD kryoflux-dtc-3.50_p2.ebuild 2731 BLAKE2B 38f8e2afefabc296926f6a37466856c891c2b46ad1632dcd8b6ba0a8873c59d5114805a0af292a38f936260c48946b14b7f887c57147e2abf8cadf3330cf0768 SHA512 92146760357e5b7451ca7a67e3ea800237531f22f8eb77915894ef5da1f2d641fce4a3de98c5c479c83c5595bac5ba77e6165589aaa84844cc7a20ce202b0331 MISC metadata.xml 413 BLAKE2B 1cb4e2bd2cc707542fde7a9c04ec455a349eb521f26bc2704a873578ff574dfaf8f74721c86ad9cfdd174b218ef31836098f889c0f8fc5c43ba9be75279740ee SHA512 f16d5eb1ae4f08cbf0876dd461bdbe8bae6d804790589b293f5998cfc7dd630e7e9e8b17183cdd658b47ae8fd8a37a76b750f868245007817209cb3a7590e2e2 diff --git a/app-misc/kryoflux-dtc/kryoflux-dtc-3.50_p2.ebuild b/app-misc/kryoflux-dtc/kryoflux-dtc-3.50_p2.ebuild new file mode 100644 index 000000000000..17c802cd9e81 --- /dev/null +++ b/app-misc/kryoflux-dtc/kryoflux-dtc-3.50_p2.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PV="$(ver_cut 1-2)" +MY_PV_DTC="3.5.0" +MY_P="kryoflux_${MY_PV}_linux_$(ver_cut 4)" +MY_P_DTC="${PN}-${MY_PV_DTC}-Linux" + +inherit desktop udev wrapper xdg-utils + +DESCRIPTION="KryoFlux Host Software" +HOMEPAGE="https://www.kryoflux.com" +SRC_URI="https://www.kryoflux.com/download/${MY_P}.tar.gz" +S="${WORKDIR}/Linux_Release${MY_PV}" + +LICENSE="SPS" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm64" +IUSE="demos doc gui" + +RDEPEND=" + dev-libs/libfmt + virtual/libusb:1 + gui? ( virtual/jre ) +" + +BDEPEND="app-arch/unzip" + +DOCS=( "RELEASE.txt" ) +RESTRICT="bindist mirror" +QA_PREBUILT=" + usr/lib64/libCAPSImage.so.5.2 + usr/bin/kryoflux-dtc +" + +src_unpack() { + unpack ${A} + unpack Linux_Release${MY_PV}/dtc/$(usex amd64 x86_64 aarch64)/${MY_P_DTC}.tar.gz + use gui && unpack Linux_Release${MY_PV}/dtc/kryoflux-ui.jar +} + +src_prepare() { + default + + # Remove whitespace for demo files + pushd testimages + mv "G64 (C64)" g64_demo || die + mv "IPF (Amiga, Atari ST)" ipf_demo || die + popd +} + +src_install() { + newbin ../${MY_P_DTC}/bin/dtc kryoflux-dtc + + # We need to use bundled libs instead of 'dev-libs/spsdeclib', + # as source code is currently not released. + # See https://forum.kryoflux.com/viewtopic.php\?p\=17105 + dolib.so ../${MY_P_DTC}/lib/libCAPSImage.so.5.2 + + insinto /lib/firmware + doins ../${MY_P_DTC}/share/dtc/firmware_kf_usb_rosalie.bin + + cat <<-EOF > "${T}"/80-kryoflux.rules || die + ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="03eb", ATTR{idProduct}=="6124", GROUP="floppy", MODE="0660" + EOF + udev_dorules "${T}"/80-kryoflux.rules + + if use gui; then + insinto /usr/share/kryoflux-ui + doins dtc/kryoflux-ui.jar + + dosym ../../bin/kryoflux-dtc /usr/share/kryoflux-ui/dtc + make_wrapper kryoflux-ui "java -jar kryoflux-ui.jar" /usr/share/kryoflux-ui + + newicon ../images/disk.png kryoflux-ui.png + make_desktop_entry "kryoflux-ui" "KryoFlux UI" kryoflux-ui Development + dodoc dtc/kryoflux-ui_README.txt + fi + + if use demos; then + pushd testimages + dodoc -r g64_demo ipf_demo + docompress -x /usr/share/doc/${PF}/g64_demo/BBSB/*.g64 + docompress -x /usr/share/doc/${PF}/g64_demo/DOTC/*.g64 + docompress -x /usr/share/doc/${PF}/ipf_demo/*.ipf + popd + fi + + if use doc; then + dodoc -r docs schematics + docompress -x /usr/share/doc/${PF}/{docs,schematics}/*.pdf + fi + + einstalldocs +} + +pkg_postinst() { + elog "If you want to access your Kryoflux without root access," + elog "please add yourself to the floppy group." + + udev_reload + + if use gui; then + xdg_desktop_database_update + xdg_mimeinfo_database_update + fi +} + +pkg_postrm() { + udev_reload + + if use gui; then + xdg_desktop_database_update + xdg_mimeinfo_database_update + fi +} -- cgit v1.2.3