diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-06-23 07:00:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-06-23 07:00:28 +0100 |
commit | e23cdda4dbb0c83b9e682ab5e916085a35203da5 (patch) | |
tree | 5a4ac448a3b288b731c24d947e0ce52df3cab07b /app-misc/kryoflux-dtc | |
parent | 8187a741807f3e9a9e26304973cf18087dcf2560 (diff) |
gentoo resync : 23.06.2018
Diffstat (limited to 'app-misc/kryoflux-dtc')
-rw-r--r-- | app-misc/kryoflux-dtc/Manifest | 4 | ||||
-rw-r--r-- | app-misc/kryoflux-dtc/kryoflux-dtc-2.6.ebuild | 104 | ||||
-rw-r--r-- | app-misc/kryoflux-dtc/metadata.xml | 17 |
3 files changed, 125 insertions, 0 deletions
diff --git a/app-misc/kryoflux-dtc/Manifest b/app-misc/kryoflux-dtc/Manifest new file mode 100644 index 000000000000..90e6f460c8f8 --- /dev/null +++ b/app-misc/kryoflux-dtc/Manifest @@ -0,0 +1,4 @@ +DIST kryoflux-ui.jar 2101377 BLAKE2B db9922b9d5787772849d1ef9edae52d64de066f643c471412ed9129307c4ee399ec3a18ebcacd7428ab15eabf5307e916b678831f2fa456cbd7073aa60bbb574 SHA512 66ba81ed1b2a97a0391e513c45b19436f17677e3dfe7c063749e41763658f99a5eb92e5b3312f4151f8fc51bd79502ac11ffd895966117e1d5a9849867aeb957 +DIST kryoflux_2.6_linux.tar.bz2 9177658 BLAKE2B 6eb0bc7a166950bfedb32da466c17125a8a7d64e4bc9aa6610c69dd0f98c2fb5187ad19dbaf191b33dcb5a786ec4a1fa9bce2464c3c04eb152e0b9ed7ae770f2 SHA512 9bf700e9c646bad135999eb1fed12c86ff6fbc11a0034b86af7541fb16a4905dd740c706ebb87bf5848f5d80f45699c350a56397df5b6850559c2576d18eef1b +EBUILD kryoflux-dtc-2.6.ebuild 2416 BLAKE2B f46de2423db72922873ea8f9c6dccc2736c3a2fcfb68dd5b611519b7689a3d22f9b4892c2ad5bd32d2d9ee1e93fc2302413400b69c89ec6df71ce6509d0d8215 SHA512 f0bf9fa0b0f9e915a136386585f5668082f0cda3dc7b76b7ba30c4976002fcc6c4fd61c56479bf8c104444d0377538c354479fbbbbf80eee41cc2a49413aa61f +MISC metadata.xml 582 BLAKE2B 6efbcc8d9b65499ea7025dcf9bbf1352a52abbe34a77d8ac59a8f022448ea82d12d84516104b7a719d4e9014a51460bcae29efce62a9a5e6bb41332286528dc1 SHA512 00f628fd32ab3a5568f9bbc841c38732b07d9db58ed2020703dfb0908aeaec2b07d8a6aa84e884442981126755c7d6f92cbef7238c38f2c3d6fc985a3721e9e7 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 000000000000..de512258d895 --- /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 000000000000..c95657a7f862 --- /dev/null +++ b/app-misc/kryoflux-dtc/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>ck+gentoo@bl4ckb0x.de</email> + <name>Conrad Kostecki</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <use> + <flag name="demos">Install example floppy game files.</flag> + <flag name="fast-firmware">Install fast firmware instead of slow firmware.</flag> + <flag name="gui">Install the Kryoflux GUI</flag> + </use> +</pkgmetadata> |