Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/xtrs/files/, app-emulation/xtrs/
Date: Thu, 06 Jul 2017 17:39:44
Message-Id: 1499362648.fd0d20bc091480525dc631c123e9f043dd090557.ulm@gentoo
1 commit: fd0d20bc091480525dc631c123e9f043dd090557
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 6 17:34:09 2017 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 6 17:37:28 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd0d20bc
7
8 app-emulation/xtrs: Fix CG 2 font.
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 app-emulation/xtrs/files/xtrs-4.9d-lcmod.patch | 68 ++++++++++++++++++++++
13 app-emulation/xtrs/xtrs-4.9d-r5.ebuild | 80 ++++++++++++++++++++++++++
14 2 files changed, 148 insertions(+)
15
16 diff --git a/app-emulation/xtrs/files/xtrs-4.9d-lcmod.patch b/app-emulation/xtrs/files/xtrs-4.9d-lcmod.patch
17 new file mode 100644
18 index 00000000000..4fde6ad7375
19 --- /dev/null
20 +++ b/app-emulation/xtrs/files/xtrs-4.9d-lcmod.patch
21 @@ -0,0 +1,68 @@
22 +Fix CG 2 font.
23 +
24 +--- xtrs-4.9d-orig/trs_chars.c
25 ++++ xtrs-4.9d/trs_chars.c
26 +@@ -304,3 +304,4 @@
27 + II ROM. All characters without descenders are moved up one row.
28 +- I'm not sure I got all the changes exactly right -- help?
29 ++ Backquote (position 0x60) and tilde (position 0x7e) have been
30 ++ replaced by Pound sign and Yen sign, respectively.
31 + */
32 +@@ -337,3 +338,3 @@
33 + { 0x00,0x04,0x08,0x1f,0x08,0x04,0x00,0x00,0x00,0x00,0x00,0x00 },
34 +- { 0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x00,0x00 },
35 ++ { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x00 },
36 + { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 },
37 +@@ -350,3 +351,3 @@
38 + { 0x00,0x04,0x04,0x1f,0x04,0x04,0x00,0x00,0x00,0x00,0x00,0x00 },
39 +- { 0x00,0x00,0x00,0x06,0x06,0x02,0x01,0x00,0x00,0x00,0x00,0x00 },
40 ++ { 0x00,0x00,0x00,0x00,0x06,0x06,0x02,0x01,0x00,0x00,0x00,0x00 },
41 + { 0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 },
42 +@@ -361,3 +362,3 @@
43 + { 0x0c,0x02,0x01,0x0f,0x11,0x11,0x0e,0x00,0x00,0x00,0x00,0x00 },
44 +- { 0x1f,0x10,0x08,0x04,0x02,0x01,0x01,0x00,0x00,0x00,0x00,0x00 },
45 ++ { 0x1f,0x10,0x08,0x04,0x02,0x02,0x02,0x00,0x00,0x00,0x00,0x00 },
46 + { 0x0e,0x11,0x11,0x0e,0x11,0x11,0x0e,0x00,0x00,0x00,0x00,0x00 },
47 +@@ -365,3 +366,3 @@
48 + { 0x00,0x06,0x06,0x00,0x06,0x06,0x00,0x00,0x00,0x00,0x00,0x00 },
49 +- { 0x06,0x06,0x00,0x06,0x06,0x02,0x01,0x00,0x00,0x00,0x00,0x00 },
50 ++ { 0x00,0x06,0x06,0x00,0x06,0x06,0x02,0x01,0x00,0x00,0x00,0x00 },
51 + { 0x08,0x04,0x02,0x01,0x02,0x04,0x08,0x00,0x00,0x00,0x00,0x00 },
52 +@@ -401,4 +402,4 @@
53 + { 0x00,0x04,0x08,0x1f,0x08,0x04,0x00,0x00,0x00,0x00,0x00,0x00 },
54 +- { 0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x00,0x00 },
55 +- { 0x0c,0x0c,0x04,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 },
56 ++ { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,0x00,0x00,0x00 },
57 ++ { 0x04,0x0a,0x02,0x07,0x02,0x12,0x0f,0x00,0x00,0x00,0x00,0x00 },
58 + { 0x00,0x00,0x0e,0x10,0x1e,0x11,0x1e,0x00,0x00,0x00,0x00,0x00 },
59 +@@ -409,7 +410,7 @@
60 + { 0x08,0x14,0x04,0x0e,0x04,0x04,0x04,0x00,0x00,0x00,0x00,0x00 },
61 +- { 0x00,0x00,0x16,0x19,0x19,0x16,0x10,0x0e,0x00,0x00,0x00,0x00 },
62 ++ { 0x00,0x00,0x0e,0x11,0x11,0x1e,0x10,0x0e,0x00,0x00,0x00,0x00 },
63 + { 0x01,0x01,0x0d,0x13,0x11,0x11,0x11,0x00,0x00,0x00,0x00,0x00 },
64 + { 0x04,0x00,0x06,0x04,0x04,0x04,0x0e,0x00,0x00,0x00,0x00,0x00 },
65 +- { 0x10,0x00,0x10,0x10,0x10,0x10,0x11,0x0e,0x00,0x00,0x00,0x00 },
66 +- { 0x01,0x01,0x09,0x05,0x03,0x05,0x09,0x00,0x00,0x00,0x00,0x00 },
67 ++ { 0x10,0x00,0x18,0x10,0x10,0x10,0x12,0x0c,0x00,0x00,0x00,0x00 },
68 ++ { 0x02,0x02,0x12,0x0a,0x06,0x0a,0x12,0x00,0x00,0x00,0x00,0x00 },
69 + { 0x06,0x04,0x04,0x04,0x04,0x04,0x0e,0x00,0x00,0x00,0x00,0x00 },
70 +@@ -422,3 +423,3 @@
71 + { 0x00,0x00,0x1e,0x01,0x0e,0x10,0x0f,0x00,0x00,0x00,0x00,0x00 },
72 +- { 0x04,0x04,0x1f,0x04,0x04,0x14,0x08,0x00,0x00,0x00,0x00,0x00 },
73 ++ { 0x04,0x04,0x0e,0x04,0x04,0x14,0x08,0x00,0x00,0x00,0x00,0x00 },
74 + { 0x00,0x00,0x11,0x11,0x11,0x19,0x16,0x00,0x00,0x00,0x00,0x00 },
75 +@@ -432,4 +433,4 @@
76 + { 0x02,0x04,0x04,0x08,0x04,0x04,0x02,0x00,0x00,0x00,0x00,0x00 },
77 +- { 0x02,0x15,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 },
78 +- { 0x0a,0x15,0x0a,0x15,0x0a,0x15,0x0a,0x00,0x00,0x00,0x00,0x00 },
79 ++ { 0x11,0x0a,0x04,0x1f,0x04,0x1f,0x04,0x00,0x00,0x00,0x00,0x00 },
80 ++ { 0x15,0x0a,0x15,0x0a,0x15,0x0a,0x15,0x0a,0x00,0x00,0x00,0x00 },
81 + },
82 +--- xtrs-4.9d-orig/xtrs.man
83 ++++ xtrs-4.9d/xtrs.man
84 +@@ -775,4 +775,3 @@
85 + set in the replacement character generator that was supplied with the
86 +-Radio Shack lower case modification. (It was reconstructed partly
87 +-from memory and may have some minor bit errors.) \fIstock\fP is the
88 ++Radio Shack lower case modification. \fIstock\fP is the
89 + character set in the stock character generator supplied with most
90
91 diff --git a/app-emulation/xtrs/xtrs-4.9d-r5.ebuild b/app-emulation/xtrs/xtrs-4.9d-r5.ebuild
92 new file mode 100644
93 index 00000000000..a61a8c7997e
94 --- /dev/null
95 +++ b/app-emulation/xtrs/xtrs-4.9d-r5.ebuild
96 @@ -0,0 +1,80 @@
97 +# Copyright 1999-2017 Gentoo Foundation
98 +# Distributed under the terms of the GNU General Public License v2
99 +
100 +EAPI=6
101 +
102 +inherit flag-o-matic toolchain-funcs readme.gentoo-r1
103 +
104 +DESCRIPTION="Radio Shack TRS-80 emulator"
105 +HOMEPAGE="http://www.tim-mann.org/xtrs.html"
106 +SRC_URI="http://www.tim-mann.org/trs80/${P}.tar.gz
107 + ls-dos? (
108 + http://www.tim-mann.org/trs80/ld4-631.zip
109 + https://dev.gentoo.org/~ulm/distfiles/ld4-631l.xd3
110 + )"
111 +
112 +LICENSE="xtrs ls-dos? ( freedist )"
113 +SLOT="0"
114 +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
115 +IUSE="ls-dos"
116 +RESTRICT="ls-dos? ( bindist )"
117 +
118 +RDEPEND="sys-libs/ncurses:0=
119 + sys-libs/readline:0=
120 + x11-libs/libX11"
121 +DEPEND="${RDEPEND}
122 + ls-dos? ( app-arch/unzip dev-util/xdelta:3 )"
123 +
124 +PATCHES=("${FILESDIR}"/${P}-lcmod.patch)
125 +
126 +src_prepare() {
127 + default
128 + sed -i -e 's/$(CC) -o/$(CC) $(LDFLAGS) -o/' Makefile || die
129 + if use ls-dos; then
130 + cd "${WORKDIR}" || die
131 + xdelta3 -d -s ld4-631.dsk "${DISTDIR}"/ld4-631l.xd3 out.dsk || die
132 + mv out.dsk ld4-631.dsk || die
133 + fi
134 +}
135 +
136 +src_compile() {
137 + case $(tc-endian) in
138 + little) ;;
139 + big) append-flags -Dbig_endian ;;
140 + *) die ;;
141 + esac
142 + emake CC="$(tc-getCC)" DEBUG="${CFLAGS}" LDFLAGS="${LDFLAGS}"
143 +}
144 +
145 +src_install() {
146 + dodir /usr/bin /usr/share/xtrs/disks /usr/share/man/man1
147 + emake PREFIX="${D}"/usr install
148 +
149 + insopts -m0444
150 + insinto /usr/share/xtrs/disks
151 + doins cpmutil.dsk utility.dsk
152 +
153 + if use ls-dos; then
154 + doins "${WORKDIR}"/ld4-631.dsk
155 + dosym disks/ld4-631.dsk /usr/share/xtrs/disk4p-0
156 + dosym disks/utility.dsk /usr/share/xtrs/disk4p-1
157 + fi
158 +
159 + dodoc ChangeLog README xtrsrom4p.README cpmutil.html dskspec.html
160 +
161 + DOC_CONTENTS="For copyright reasons, xtrs does not include actual ROM
162 + images. Because of this, unless you supply your own ROM, xtrs will
163 + not function in any mode except 'Model 4p' mode (a minimal free ROM
164 + is included for this), which can be run like this:
165 + \n\nxtrs -model 4p -diskdir /usr/share/xtrs
166 + \n\nIf you already own a copy of the ROM software (e.g., if you have
167 + a TRS-80 with this ROM), then you can make yourself a copy of this
168 + for use with xtrs, using utilities available on the web. To load
169 + your own ROM, specify the '-romfile' option, or the 'Xtrs.romfile'
170 + X resource. ROM files can be in Intel hex or binary format."
171 + readme.gentoo_create_doc
172 +}
173 +
174 +pkg_postinst() {
175 + readme.gentoo_print_elog
176 +}