# ChangeLog for app-emulation/dosemu
-# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/dosemu/ChangeLog,v 1.14 2003/10/07 17:45:39 hanno Exp $
+# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/dosemu/ChangeLog,v 1.15 2004/01/14 12:37:58 hanno Exp $
+
+*dosemu-1.1.99.2 (14 Jan 2004)
+
+ 14 Jan 2004; Hanno Boeck <hanno@gentoo.org> dosemu-1.1.99.2.ebuild:
+ Version bump.
*dosemu-1.1.99.1-r1 (07 Oct 2003)
-MD5 161c2154031c2dfc6987c68324e85aea ChangeLog 2518
+MD5 da983435d742956ca19ce481b59b3461 ChangeLog 2637
MD5 1c96c5a9d90e0fa9e8a858b88e087b4c dosemu-1.1.5-r1.ebuild 1631
MD5 edcf48b4a5a1374ca1d101e4d62922a9 dosemu-1.1.99.1.ebuild 1202
+MD5 2ff523bd14d65bf29fb180f9a07ec36f dosemu-1.1.99.2.ebuild 1272
MD5 875d7073af05adac486dfce043a356f1 dosemu-1.1.99.1-r1.ebuild 1316
MD5 a72a06a37ca4e5905085ebff07fe9e9e metadata.xml 217
MD5 d9edbc98f1c06b2c5ad563ab29928ec0 files/dosemu_kernel26_patch 1480
+MD5 4bd099bfea08e3269779e92d45d1a25d files/digest-dosemu-1.1.99.2 136
MD5 1111d8e64602844f871f5c0f2deb839b files/digest-dosemu-1.1.5-r1 133
MD5 7512fcf270de5d4d5be6bdf556ad1d2a files/digest-dosemu-1.1.99.1 136
MD5 7512fcf270de5d4d5be6bdf556ad1d2a files/digest-dosemu-1.1.99.1-r1 136
--- /dev/null
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/dosemu/dosemu-1.1.99.2.ebuild,v 1.1 2004/01/14 12:37:58 hanno Exp $
+
+inherit eutils
+
+P_FD=dosemu-freedos-b9-bin
+DESCRIPTION="DOS Emulator"
+HOMEPAGE="http://www.dosemu.org/"
+SRC_URI="mirror://sourceforge/dosemu/${P_FD}.tgz
+ mirror://sourceforge/dosemu/${P}.tgz"
+
+LICENSE="GPL-2 | LGPL-2.1"
+SLOT="0"
+KEYWORDS="-* ~x86"
+IUSE="X svga"
+
+DEPEND="X? ( virtual/x11 )
+ svga? ( media-libs/svgalib )
+ sys-libs/slang"
+
+# Has problems with -O3 on some systems
+replace-flags -O[3-9] -O2
+
+src_unpack() {
+ unpack ${P}.tgz
+ cd ${S}
+ epatch ${FILESDIR}/dosemu-broken-links.diff
+ # extract freedos binary
+ cd ${S}/src
+ unpack ${P_FD}.tgz
+}
+
+src_compile() {
+ local myflags
+
+ use X || myflags="${myflags} --with-x=no"
+ use svga && myflags="${myflags} --enable-use-svgalib"
+
+ econf ${myflags} || die "DOSemu Base Configuration Failed"
+
+ emake || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ doman man/*.1
+ rm -rf ${D}/opt/dosemu/man/
+
+ mv ${D}/usr/share/doc/dosemu ${D}/usr/share/doc/${PF}
+
+ # freedos tarball is needed in /usr/share/dosemu
+ cp ${DISTDIR}/${P_FD}.tgz ${D}/usr/share/dosemu/dosemu-freedos-bin.tgz
+}