commit:     b05bb67dfbb9671da49a7ff6c3bfc945212430db
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 12 22:30:03 2014 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Apr 12 22:30:03 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=dev/ulm.git;a=commit;h=b05bb67d

Add missing dependency on app-arch/unzip. Fix LS-DOS date bug.

---
 app-emulation/xtrs/ChangeLog            |  6 +++
 app-emulation/xtrs/xtrs-4.9d-r51.ebuild | 69 +++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)

diff --git a/app-emulation/xtrs/ChangeLog b/app-emulation/xtrs/ChangeLog
index ca941ba..2264cc2 100644
--- a/app-emulation/xtrs/ChangeLog
+++ b/app-emulation/xtrs/ChangeLog
@@ -2,6 +2,12 @@
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*xtrs-4.9d-r51 (12 Apr 2014)
+
+  12 Apr 2014; Ulrich Müller <[email protected]> xtrs-4.9d-r50.ebuild,
+  +xtrs-4.9d-r51.ebuild:
+  Add missing dependency on app-arch/unzip. Fix LS-DOS date bug.
+
   12 Apr 2014; Ulrich Müller <[email protected]> xtrs-4.9d-r50.ebuild,
   metadata.xml:
   Rename ldos USE flag to ls-dos.

diff --git a/app-emulation/xtrs/xtrs-4.9d-r51.ebuild 
b/app-emulation/xtrs/xtrs-4.9d-r51.ebuild
new file mode 100644
index 0000000..8f3e0e4
--- /dev/null
+++ b/app-emulation/xtrs/xtrs-4.9d-r51.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils flag-o-matic toolchain-funcs readme.gentoo
+
+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
+               http://dev.gentoo.org/~ulm/distfiles/ld4-631-1l.xdelta
+       )"
+
+LICENSE="xtrs ls-dos? ( freedist )"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
+IUSE="ls-dos"
+
+RDEPEND="sys-libs/ncurses
+       sys-libs/readline
+       >=x11-libs/libX11-1.0.0"
+DEPEND="${RDEPEND}
+       ls-dos? ( app-arch/unzip dev-util/xdelta )"
+
+src_prepare() {
+       sed -i -e 's/$(CC) -o/$(CC) $(LDFLAGS) -o/' Makefile || die
+       epatch "${FILESDIR}/${P}-ulm.patch"
+       if use ls-dos; then
+               xdelta3 -dfs "${WORKDIR}"/ld4-631.dsk 
"${DISTDIR}"/ld4-631-1l.xdelta \
+                       "${WORKDIR}"/ld4-631.dsk || die
+       fi
+}
+
+src_compile() {
+       use ppc && append-flags -Dbig_endian
+       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
+}

Reply via email to