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 92809138334 for ; Fri, 22 Jun 2018 18:49:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2DAEDE087B; Fri, 22 Jun 2018 18:49:35 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 DCFA6E087B for ; Fri, 22 Jun 2018 18:49:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 7A730335CA0 for ; Fri, 22 Jun 2018 18:49:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 797FC2E8 for ; Fri, 22 Jun 2018 18:49:31 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1529693308.c819a508ae5b25cb0745ceccea8e4e0c1a362d21.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/kryoflux-dtc/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/kryoflux-dtc/Manifest app-misc/kryoflux-dtc/kryoflux-dtc-2.6.ebuild app-misc/kryoflux-dtc/metadata.xml X-VCS-Directories: app-misc/kryoflux-dtc/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c819a508ae5b25cb0745ceccea8e4e0c1a362d21 X-VCS-Branch: master Date: Fri, 22 Jun 2018 18:49:31 +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-Archives-Salt: 97397600-3b16-48f5-8d56-77f26573c79b X-Archives-Hash: a6146b3f73cc1c7b455095674b9d8fe0 commit: c819a508ae5b25cb0745ceccea8e4e0c1a362d21 Author: Conrad Kostecki kostecki com> AuthorDate: Fri Jun 22 18:38:00 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jun 22 18:48:28 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c819a508 app-misc/kryoflux-dtc: New package Closes: https://bugs.gentoo.org/651482 Package-Manager: Portage-2.3.40, Repoman-2.3.9 app-misc/kryoflux-dtc/Manifest | 2 + app-misc/kryoflux-dtc/kryoflux-dtc-2.6.ebuild | 104 ++++++++++++++++++++++++++ app-misc/kryoflux-dtc/metadata.xml | 17 +++++ 3 files changed, 123 insertions(+) diff --git a/app-misc/kryoflux-dtc/Manifest b/app-misc/kryoflux-dtc/Manifest new file mode 100644 index 00000000000..e6d215853fe --- /dev/null +++ b/app-misc/kryoflux-dtc/Manifest @@ -0,0 +1,2 @@ +DIST kryoflux-ui.jar 2101377 BLAKE2B db9922b9d5787772849d1ef9edae52d64de066f643c471412ed9129307c4ee399ec3a18ebcacd7428ab15eabf5307e916b678831f2fa456cbd7073aa60bbb574 SHA512 66ba81ed1b2a97a0391e513c45b19436f17677e3dfe7c063749e41763658f99a5eb92e5b3312f4151f8fc51bd79502ac11ffd895966117e1d5a9849867aeb957 +DIST kryoflux_2.6_linux.tar.bz2 9177658 BLAKE2B 6eb0bc7a166950bfedb32da466c17125a8a7d64e4bc9aa6610c69dd0f98c2fb5187ad19dbaf191b33dcb5a786ec4a1fa9bce2464c3c04eb152e0b9ed7ae770f2 SHA512 9bf700e9c646bad135999eb1fed12c86ff6fbc11a0034b86af7541fb16a4905dd740c706ebb87bf5848f5d80f45699c350a56397df5b6850559c2576d18eef1b diff --git a/app-misc/kryoflux-dtc/kryoflux-dtc-2.6.ebuild b/app-misc/kryoflux-dtc/kryoflux-dtc-2.6.ebuild new file mode 100644 index 00000000000..de512258d89 --- /dev/null +++ b/app-misc/kryoflux-dtc/kryoflux-dtc-2.6.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_P="kryoflux_${PV}_linux" + +inherit desktop eutils udev xdg-utils + +DESCRIPTION="KryoFlux Host Software" +HOMEPAGE="https://www.kryoflux.com" +SRC_URI="https://www.kryoflux.com/download/${MY_P}.tar.bz2 + gui? ( https://www.kryoflux.com/kryoflux-ui.jar )" + +KEYWORDS="-* ~amd64 ~x86" +LICENSE="SPS" +SLOT="0" +IUSE="demos doc fast-firmware gui static" + +RDEPEND="dev-libs/spsdeclib + virtual/libusb:1 + virtual/udev + gui? ( virtual/jre )" + +DEPEND="app-arch/unzip" + +RESTRICT="bindist mirror strip" + +S="${WORKDIR}/${MY_P}" + +QA_PREBUILT="/usr/bin/kryoflux-dtc" + +src_unpack() { + unpack ${MY_P}.tar.bz2 + + if use gui; then + # Updated *.jar for compatibility with >= Java 9 + cp "${DISTDIR}"/kryoflux-ui.jar "${S}" || die + + # Extract kryoflux-ui.jar to get a logo for the meny entry + unpack kryoflux-ui.jar + fi +} + +src_install() { + newbin dtc/$(usex amd64 x86_64 i686)/$(usex static static dynamic)/dtc kryoflux-dtc + + 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 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 "${WORKDIR}"/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 fast-firmware; then + insinto /lib/firmware + doins dtc/firmware_fast/firmware_kf_usb_rosalie.bin + + dodoc dtc/firmware_fast/firmware_fast_README.txt + else + insinto /lib/firmware + doins dtc/firmware_kf_usb_rosalie.bin + fi + + if use demos; then + dodoc -r g64_demo ipf_demo + fi + + if use doc; then + dodoc -r docs schematics + fi + + local DOCS=( "DONATIONS.txt" "RELEASE.txt" "README.linux" ) + einstalldocs +} + +pkg_postinst() { + elog "If you want to access your Kryoflux without root access," + elog "please add yourself to the floppy group." + + if use fast-firmware; then + elog "" + elog "You have enabled the fast firmware. Please keep in mind," + elog "that this firmware can cause trouble with older floppy drives." + fi + + if use gui; then + xdg_desktop_database_update + xdg_mimeinfo_database_update + fi +} diff --git a/app-misc/kryoflux-dtc/metadata.xml b/app-misc/kryoflux-dtc/metadata.xml new file mode 100644 index 00000000000..c95657a7f86 --- /dev/null +++ b/app-misc/kryoflux-dtc/metadata.xml @@ -0,0 +1,17 @@ + + + + + ck+gentoo@bl4ckb0x.de + Conrad Kostecki + + + proxy-maint@gentoo.org + Proxy Maintainers + + + Install example floppy game files. + Install fast firmware instead of slow firmware. + Install the Kryoflux GUI + +