diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-emulation/xtrs | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-emulation/xtrs')
-rw-r--r-- | app-emulation/xtrs/Manifest | 7 | ||||
-rw-r--r-- | app-emulation/xtrs/files/xtrs-4.9d-lcmod.patch | 68 | ||||
-rw-r--r-- | app-emulation/xtrs/metadata.xml | 23 | ||||
-rw-r--r-- | app-emulation/xtrs/xtrs-4.9d-r4.ebuild | 78 | ||||
-rw-r--r-- | app-emulation/xtrs/xtrs-4.9d-r5.ebuild | 80 |
5 files changed, 256 insertions, 0 deletions
diff --git a/app-emulation/xtrs/Manifest b/app-emulation/xtrs/Manifest new file mode 100644 index 000000000000..e56d6533c085 --- /dev/null +++ b/app-emulation/xtrs/Manifest @@ -0,0 +1,7 @@ +AUX xtrs-4.9d-lcmod.patch 3717 BLAKE2B 1172d6bd65ab10f983cd7793157a45505e16d6300e3d2a7253beb2a9983887ea3ef7a97bc05327ed18f54c2016e64461da5d1887ebd5d0952800ed6510a3d246 SHA512 5ea5381333562328ad9c47931c10ea1596eb9e4812f73db9c986baa61df8020332a2ee5925c3ec6e03598a7a581ae741ae5740f5aaee3da5aa38b48c0062f0dc +DIST ld4-631.zip 106955 BLAKE2B 1c0e04186f14fcc840568521b09c7b55318a87dc49e394d516aa742fe7e5c499ac79771782f9b7ee687cdf55df159cef09897d19976879d4c60fff2a33f7f7c6 SHA512 8c6a24bc0af9326b5b935d7cdb1932b4cb714ab336167fed36f4f6d976cd80fe1d4d6a76e6374366fdc3fce623b2bdd6f9059a964bd6d29f59d6a052a1924c4a +DIST ld4-631l.xd3 692 BLAKE2B 7870135e999cd358d7a3e5c254908757fa059a61654403ba146b8b866bda450b53fd1821dd3e3f8fc5c0acd17d0935d83b5df814c8e12eb5748bfcdf5688c509 SHA512 401d36fdfbceaf90673c5e9f821d26aa0a58b901d7e950d34361e5cde3252a070ff902019fcc1eb820fb1b2d3277e4c1da57ccc442ee407b0be4e5ca26dc2d13 +DIST xtrs-4.9d.tar.gz 455355 BLAKE2B b7ffda48f9a9bb534e33711b85c02734b7d3f8cee8d3cf2c2bc0a801954dcc1851b12451da03a14a7196368a9066cbaea953e871e8b68b4951f7439412e9e34e SHA512 5d6a2e1d4c2f2df63eaec8d015ea9e485615d82b7923af5c03c394862a31b1e6be2329aca18c0fa0c7d6b984164bb9b4d18f94a3d8cd140a683c5197ddff2249 +EBUILD xtrs-4.9d-r4.ebuild 2237 BLAKE2B c0e06cb12250c6a796f2b831a84d003174d93c000874581c09e713e420497dff83675fd70270c9fad616d18362f45d7d13b22cb243cc49ea02dfb8bf4390bbb5 SHA512 f32d06b4349a53ecd99ae920f5c315f23c072b0b5b1def63c3a406ad9509fa0c130461398b55b02630d319ea7d24f3f57f341cc3d7f9c5f820c70eaee5fc660c +EBUILD xtrs-4.9d-r5.ebuild 2278 BLAKE2B 7d97182ea47117b04890077ee159522fad3230c2312ffd492bbef08a84ea2022e34b2288d6f4cb523ed2b3f6aaac62fdb36d375734fd18c7e3565bc65f9b0918 SHA512 fa2dab0f5c2583f341cfe947ff24845f72a589dd35359c9c61c04640c701941e7ec5dd7cc890325ec8c269903e0e46ee11e9ac63826abdfabeee49659d5114b0 +MISC metadata.xml 1106 BLAKE2B c19193deafa9ffc2b7e00df6386b1633b9180bad0ac7a6884822d38d8539f3734375a3ba5ce74c5cef895bb41d54c0b252971bd8dd03da7faa79c327c1db1b22 SHA512 fc12b813ea60239dbf8a94d98263cd77d4e35051fc7f9772547c0f52e37c02ed466f72eb5f63070d67bc86a6c546cfab4b2b01e4f994a91ae4e88569cb1beacd diff --git a/app-emulation/xtrs/files/xtrs-4.9d-lcmod.patch b/app-emulation/xtrs/files/xtrs-4.9d-lcmod.patch new file mode 100644 index 000000000000..4fde6ad73757 --- /dev/null +++ b/app-emulation/xtrs/files/xtrs-4.9d-lcmod.patch @@ -0,0 +1,68 @@ +Fix CG 2 font. + +--- xtrs-4.9d-orig/trs_chars.c ++++ xtrs-4.9d/trs_chars.c +@@ -304,3 +304,4 @@ + II ROM. All characters without descenders are moved up one row. +- I'm not sure I got all the changes exactly right -- help? ++ Backquote (position 0x60) and tilde (position 0x7e) have been ++ replaced by Pound sign and Yen sign, respectively. + */ +@@ -337,3 +338,3 @@ + { 0x00,0x04,0x08,0x1f,0x08,0x04,0x00,0x00,0x00,0x00,0x00,0x00 }, +- { 0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x00,0x00 }, ++ { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x00 }, + { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, +@@ -350,3 +351,3 @@ + { 0x00,0x04,0x04,0x1f,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00 }, +- { 0x00,0x00,0x00,0x06,0x06,0x02,0x01,0x00,0x00,0x00,0x00,0x00 }, ++ { 0x00,0x00,0x00,0x00,0x06,0x06,0x02,0x01,0x00,0x00,0x00,0x00 }, + { 0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, +@@ -361,3 +362,3 @@ + { 0x0c,0x02,0x01,0x0f,0x11,0x11,0x0e,0x00,0x00,0x00,0x00,0x00 }, +- { 0x1f,0x10,0x08,0x04,0x02,0x01,0x01,0x00,0x00,0x00,0x00,0x00 }, ++ { 0x1f,0x10,0x08,0x04,0x02,0x02,0x02,0x00,0x00,0x00,0x00,0x00 }, + { 0x0e,0x11,0x11,0x0e,0x11,0x11,0x0e,0x00,0x00,0x00,0x00,0x00 }, +@@ -365,3 +366,3 @@ + { 0x00,0x06,0x06,0x00,0x06,0x06,0x00,0x00,0x00,0x00,0x00,0x00 }, +- { 0x06,0x06,0x00,0x06,0x06,0x02,0x01,0x00,0x00,0x00,0x00,0x00 }, ++ { 0x00,0x06,0x06,0x00,0x06,0x06,0x02,0x01,0x00,0x00,0x00,0x00 }, + { 0x08,0x04,0x02,0x01,0x02,0x04,0x08,0x00,0x00,0x00,0x00,0x00 }, +@@ -401,4 +402,4 @@ + { 0x00,0x04,0x08,0x1f,0x08,0x04,0x00,0x00,0x00,0x00,0x00,0x00 }, +- { 0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x00,0x00 }, +- { 0x0c,0x0c,0x04,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, ++ { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x00 }, ++ { 0x04,0x0a,0x02,0x07,0x02,0x12,0x0f,0x00,0x00,0x00,0x00,0x00 }, + { 0x00,0x00,0x0e,0x10,0x1e,0x11,0x1e,0x00,0x00,0x00,0x00,0x00 }, +@@ -409,7 +410,7 @@ + { 0x08,0x14,0x04,0x0e,0x04,0x04,0x04,0x00,0x00,0x00,0x00,0x00 }, +- { 0x00,0x00,0x16,0x19,0x19,0x16,0x10,0x0e,0x00,0x00,0x00,0x00 }, ++ { 0x00,0x00,0x0e,0x11,0x11,0x1e,0x10,0x0e,0x00,0x00,0x00,0x00 }, + { 0x01,0x01,0x0d,0x13,0x11,0x11,0x11,0x00,0x00,0x00,0x00,0x00 }, + { 0x04,0x00,0x06,0x04,0x04,0x04,0x0e,0x00,0x00,0x00,0x00,0x00 }, +- { 0x10,0x00,0x10,0x10,0x10,0x10,0x11,0x0e,0x00,0x00,0x00,0x00 }, +- { 0x01,0x01,0x09,0x05,0x03,0x05,0x09,0x00,0x00,0x00,0x00,0x00 }, ++ { 0x10,0x00,0x18,0x10,0x10,0x10,0x12,0x0c,0x00,0x00,0x00,0x00 }, ++ { 0x02,0x02,0x12,0x0a,0x06,0x0a,0x12,0x00,0x00,0x00,0x00,0x00 }, + { 0x06,0x04,0x04,0x04,0x04,0x04,0x0e,0x00,0x00,0x00,0x00,0x00 }, +@@ -422,3 +423,3 @@ + { 0x00,0x00,0x1e,0x01,0x0e,0x10,0x0f,0x00,0x00,0x00,0x00,0x00 }, +- { 0x04,0x04,0x1f,0x04,0x04,0x14,0x08,0x00,0x00,0x00,0x00,0x00 }, ++ { 0x04,0x04,0x0e,0x04,0x04,0x14,0x08,0x00,0x00,0x00,0x00,0x00 }, + { 0x00,0x00,0x11,0x11,0x11,0x19,0x16,0x00,0x00,0x00,0x00,0x00 }, +@@ -432,4 +433,4 @@ + { 0x02,0x04,0x04,0x08,0x04,0x04,0x02,0x00,0x00,0x00,0x00,0x00 }, +- { 0x02,0x15,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, +- { 0x0a,0x15,0x0a,0x15,0x0a,0x15,0x0a,0x00,0x00,0x00,0x00,0x00 }, ++ { 0x11,0x0a,0x04,0x1f,0x04,0x1f,0x04,0x00,0x00,0x00,0x00,0x00 }, ++ { 0x15,0x0a,0x15,0x0a,0x15,0x0a,0x15,0x0a,0x00,0x00,0x00,0x00 }, + }, +--- xtrs-4.9d-orig/xtrs.man ++++ xtrs-4.9d/xtrs.man +@@ -775,4 +775,3 @@ + set in the replacement character generator that was supplied with the +-Radio Shack lower case modification. (It was reconstructed partly +-from memory and may have some minor bit errors.) \fIstock\fP is the ++Radio Shack lower case modification. \fIstock\fP is the + character set in the stock character generator supplied with most diff --git a/app-emulation/xtrs/metadata.xml b/app-emulation/xtrs/metadata.xml new file mode 100644 index 000000000000..c7db543a8141 --- /dev/null +++ b/app-emulation/xtrs/metadata.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>ulm@gentoo.org</email> +</maintainer> +<longdescription> + xtrs is a Radio Shack TRS-80 Model I/III/4/4P emulator for Unix and the + X Window System. It includes lower case, the real time clock, hi-res + graphics, serial port, parallel printer, mouse, cassette, sound and music + output, 5" and 8" floppy disk drives in single and double density, and + even hard disk drives. The emulated floppy and hard disk file formats + are compatible with the popular MSDOS-based emulators by Jeff Vavasour, + Matthew Reed, and David Keil, and (if you choose a capable enough file + format), all features of the original TRS-80 floppy disk controller are + emulated. Under Linux, physical floppy disk drives are also supported. + Physical cassettes can be read and written too. The user interface is a + bit spartan, but it gets the job done. +</longdescription> +<use> + <flag name="ls-dos">Install LS-DOS disk images for Model 4P</flag> +</use> +</pkgmetadata> diff --git a/app-emulation/xtrs/xtrs-4.9d-r4.ebuild b/app-emulation/xtrs/xtrs-4.9d-r4.ebuild new file mode 100644 index 000000000000..e8b9d7590219 --- /dev/null +++ b/app-emulation/xtrs/xtrs-4.9d-r4.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic toolchain-funcs readme.gentoo-r1 + +DESCRIPTION="Radio Shack TRS-80 emulator" +HOMEPAGE="http://www.tim-mann.org/xtrs.html" +SRC_URI="http://www.tim-mann.org/trs80/${P}.tar.gz + ls-dos? ( + http://www.tim-mann.org/trs80/ld4-631.zip + https://dev.gentoo.org/~ulm/distfiles/ld4-631l.xd3 + )" + +LICENSE="xtrs ls-dos? ( freedist )" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="ls-dos" +RESTRICT="ls-dos? ( bindist )" + +RDEPEND="sys-libs/ncurses:0= + sys-libs/readline:0= + x11-libs/libX11" +DEPEND="${RDEPEND} + ls-dos? ( app-arch/unzip dev-util/xdelta:3 )" + +src_prepare() { + sed -i -e 's/$(CC) -o/$(CC) $(LDFLAGS) -o/' Makefile || die + eapply_user + if use ls-dos; then + cd "${WORKDIR}" || die + xdelta3 -d -s ld4-631.dsk "${DISTDIR}"/ld4-631l.xd3 out.dsk || die + mv out.dsk ld4-631.dsk || die + fi +} + +src_compile() { + case $(tc-endian) in + little) ;; + big) append-flags -Dbig_endian ;; + *) die ;; + esac + emake CC="$(tc-getCC)" DEBUG="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} + +src_install() { + dodir /usr/bin /usr/share/xtrs/disks /usr/share/man/man1 + emake PREFIX="${D}"/usr install + + insopts -m0444 + insinto /usr/share/xtrs/disks + doins cpmutil.dsk utility.dsk + + if use ls-dos; then + doins "${WORKDIR}"/ld4-631.dsk + dosym disks/ld4-631.dsk /usr/share/xtrs/disk4p-0 + dosym disks/utility.dsk /usr/share/xtrs/disk4p-1 + fi + + dodoc ChangeLog README xtrsrom4p.README cpmutil.html dskspec.html + + DOC_CONTENTS="For copyright reasons, xtrs does not include actual ROM + images. Because of this, unless you supply your own ROM, xtrs will + not function in any mode except 'Model 4p' mode (a minimal free ROM + is included for this), which can be run like this: + \n\nxtrs -model 4p -diskdir /usr/share/xtrs + \n\nIf you already own a copy of the ROM software (e.g., if you have + a TRS-80 with this ROM), then you can make yourself a copy of this + for use with xtrs, using utilities available on the web. To load + your own ROM, specify the '-romfile' option, or the 'Xtrs.romfile' + X resource. ROM files can be in Intel hex or binary format." + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} diff --git a/app-emulation/xtrs/xtrs-4.9d-r5.ebuild b/app-emulation/xtrs/xtrs-4.9d-r5.ebuild new file mode 100644 index 000000000000..a61a8c7997e0 --- /dev/null +++ b/app-emulation/xtrs/xtrs-4.9d-r5.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic toolchain-funcs readme.gentoo-r1 + +DESCRIPTION="Radio Shack TRS-80 emulator" +HOMEPAGE="http://www.tim-mann.org/xtrs.html" +SRC_URI="http://www.tim-mann.org/trs80/${P}.tar.gz + ls-dos? ( + http://www.tim-mann.org/trs80/ld4-631.zip + https://dev.gentoo.org/~ulm/distfiles/ld4-631l.xd3 + )" + +LICENSE="xtrs ls-dos? ( freedist )" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" +IUSE="ls-dos" +RESTRICT="ls-dos? ( bindist )" + +RDEPEND="sys-libs/ncurses:0= + sys-libs/readline:0= + x11-libs/libX11" +DEPEND="${RDEPEND} + ls-dos? ( app-arch/unzip dev-util/xdelta:3 )" + +PATCHES=("${FILESDIR}"/${P}-lcmod.patch) + +src_prepare() { + default + sed -i -e 's/$(CC) -o/$(CC) $(LDFLAGS) -o/' Makefile || die + if use ls-dos; then + cd "${WORKDIR}" || die + xdelta3 -d -s ld4-631.dsk "${DISTDIR}"/ld4-631l.xd3 out.dsk || die + mv out.dsk ld4-631.dsk || die + fi +} + +src_compile() { + case $(tc-endian) in + little) ;; + big) append-flags -Dbig_endian ;; + *) die ;; + esac + emake CC="$(tc-getCC)" DEBUG="${CFLAGS}" LDFLAGS="${LDFLAGS}" +} + +src_install() { + dodir /usr/bin /usr/share/xtrs/disks /usr/share/man/man1 + emake PREFIX="${D}"/usr install + + insopts -m0444 + insinto /usr/share/xtrs/disks + doins cpmutil.dsk utility.dsk + + if use ls-dos; then + doins "${WORKDIR}"/ld4-631.dsk + dosym disks/ld4-631.dsk /usr/share/xtrs/disk4p-0 + dosym disks/utility.dsk /usr/share/xtrs/disk4p-1 + fi + + dodoc ChangeLog README xtrsrom4p.README cpmutil.html dskspec.html + + DOC_CONTENTS="For copyright reasons, xtrs does not include actual ROM + images. Because of this, unless you supply your own ROM, xtrs will + not function in any mode except 'Model 4p' mode (a minimal free ROM + is included for this), which can be run like this: + \n\nxtrs -model 4p -diskdir /usr/share/xtrs + \n\nIf you already own a copy of the ROM software (e.g., if you have + a TRS-80 with this ROM), then you can make yourself a copy of this + for use with xtrs, using utilities available on the web. To load + your own ROM, specify the '-romfile' option, or the 'Xtrs.romfile' + X resource. ROM files can be in Intel hex or binary format." + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} |