diff options
author | 2012-09-28 20:34:00 +0000 | |
---|---|---|
committer | 2012-09-28 20:34:00 +0000 | |
commit | ad17792ce64af0625c7e3744d09f56d3a2812c6b (patch) | |
tree | 46d60749eaf3d9c89a83907d886de61608566211 /app-emulation | |
parent | one more prefix fix. (diff) | |
download | gentoo-2-ad17792ce64af0625c7e3744d09f56d3a2812c6b.tar.gz gentoo-2-ad17792ce64af0625c7e3744d09f56d3a2812c6b.tar.bz2 gentoo-2-ad17792ce64af0625c7e3744d09f56d3a2812c6b.zip |
Specify LICENSE more precisely. Install non-free LDOS/LS-DOS disk images for Model 4P only with USE=ldos.
(Portage version: 2.1.11.23/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/xtrs/ChangeLog | 11 | ||||
-rw-r--r-- | app-emulation/xtrs/metadata.xml | 3 | ||||
-rw-r--r-- | app-emulation/xtrs/xtrs-4.9d-r1.ebuild | 66 |
3 files changed, 78 insertions, 2 deletions
diff --git a/app-emulation/xtrs/ChangeLog b/app-emulation/xtrs/ChangeLog index fd7f8ad37c5c..4271ec5b832c 100644 --- a/app-emulation/xtrs/ChangeLog +++ b/app-emulation/xtrs/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-emulation/xtrs -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xtrs/ChangeLog,v 1.39 2010/12/23 10:50:25 ulm Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xtrs/ChangeLog,v 1.40 2012/09/28 20:34:00 ulm Exp $ + +*xtrs-4.9d-r1 (28 Sep 2012) + + 28 Sep 2012; Ulrich Müller <ulm@gentoo.org> +xtrs-4.9d-r1.ebuild, + metadata.xml: + Specify LICENSE more precisely. Install non-free LDOS/LS-DOS disk images for + Model 4P only with USE=ldos. 23 Dec 2010; Ulrich Mueller <ulm@gentoo.org> xtrs-4.9d.ebuild: Fix bug 337941 properly. diff --git a/app-emulation/xtrs/metadata.xml b/app-emulation/xtrs/metadata.xml index 157f8da42e22..9a63d0ed7bb4 100644 --- a/app-emulation/xtrs/metadata.xml +++ b/app-emulation/xtrs/metadata.xml @@ -20,4 +20,7 @@ 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='ldos'>Install disk images for Model 4P</flag> +</use> </pkgmetadata> diff --git a/app-emulation/xtrs/xtrs-4.9d-r1.ebuild b/app-emulation/xtrs/xtrs-4.9d-r1.ebuild new file mode 100644 index 000000000000..c39c325e064f --- /dev/null +++ b/app-emulation/xtrs/xtrs-4.9d-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xtrs/xtrs-4.9d-r1.ebuild,v 1.1 2012/09/28 20:34:00 ulm Exp $ + +EAPI=4 + +inherit flag-o-matic toolchain-funcs + +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 + ldos? ( http://www.tim-mann.org/trs80/ld4-631.zip )" + +LICENSE="xtrs ldos? ( freedist )" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" +IUSE="ldos" + +DEPEND="sys-libs/ncurses + sys-libs/readline + >=x11-libs/libX11-1.0.0" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i -e 's/$(CC) -o/$(CC) $(LDFLAGS) -o/' Makefile || die +} + +src_compile() { + use ppc && append-flags -Dbig_endian + emake CC="$(tc-getCC)" DEBUG="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ + DISKDIR="-DDISKDIR='\"/usr/share/xtrs\"'" \ + DEFAULT_ROM="-DDEFAULT_ROM='\"/usr/share/xtrs/romimage\"' \ + -DDEFAULT_ROM3='\"/usr/share/xtrs/romimage.m3\"' \ + -DDEFAULT_ROM4P='\"/usr/share/xtrs/romimage.m4p\"'" +} + +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 ldos; 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 +} + +pkg_postinst() { + ewarn "For copyright reasons, xtrs does not include actual ROM images." + ewarn "Because of this, unless you supply your own ROM, xtrs will" + ewarn "not function in any mode except 'Model 4p' mode (a minimal" + ewarn "free ROM is included for this), which can be run like this:" + ewarn " xtrs -model 4p" + elog "" + elog "If you already own a copy of the ROM software (e.g., if you have" + elog "a TRS-80 with this ROM), then you can make yourself a copy of this" + elog "for use with xtrs using utilities available on the web. You can" + elog "also often find various ROMs elsewhere. To load your own ROM," + elog "specify the '-romfile' option." +} |