--- /dev/null
+# ChangeLog for media-sound/workman
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/workman/ChangeLog,v 1.1 2004/10/07 09:22:44 trapni Exp $
+
+ 07 Oct 2004; Christian Parpart <trapni@gentoo.org> :
+ Original ebuild submitted by Matija Suklje <matija.suklje@rutka.net>
+ Adapted to meet ebuild policies.
+
--- /dev/null
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/workman/workman-1.3.4.ebuild,v 1.1 2004/10/07 09:22:44 trapni Exp $
+
+inherit eutils
+
+DESCRIPTION="Graphical tool for playing audio CDs on a CD-ROM drive"
+
+# I've crawled the web for a homepage of workman, I found alot users using it
+# on solaris/debian/etc, however, no (official) homepage available.
+# instead, I'll just point $HOMEPAGE to the mainpage of the author. (trapni)
+#HOMEPAGE="http://www.midwinter.com/WorkMan"
+#HOMEPAGE="http://www.midwinter.com/~workman/index.html"
+HOMEPAGE="http://www.midwinter.com/"
+
+# This is our compound patch derived from debian. We use it because:
+# * No more updates come from midwinter.com, no more workman seems to be on their site
+# * It does little harm, only some defaults are changed which we can redefine anyway
+SRC_PATCH="${P/-/_}-16.diff"
+
+# We use the xview tarball available from debian because the original ftp is dead
+# original source: ftp://ftp.midwinter.com/WorkMan/workman-1.3.4.tar.gz
+SRC_URI="http://ftp.debian.org/pool/main/w/workman/${PN}_${PV}.orig.tar.gz
+ http://ftp.debian.org/pool/main/w/workman/${SRC_PATCH}.gz"
+
+LICENSE="GPL-2"
+
+SLOT="0"
+IUSE=""
+
+DEPEND="
+ >=x11-libs/xview-3.2
+ sys-apps/groff
+"
+
+KEYWORDS="-* ~x86"
+
+src_unpack() {
+ unpack ${A}
+ epatch ${SRC_PATCH}
+}
+
+src_compile() {
+ emake -f Makefile.linux PASS="${CFLAGS}" || die "emake failed"
+ make workbone -f Makefile.linux || die "making workbone failed"
+}
+
+src_install() {
+ dobin workman workbone
+ doinfo workman.info
+
+ newman workman.man workman.1
+ newman workmandb.man workman.5
+
+ dodoc README
+ newdoc debian/changelog Changelog.debian
+ dohtml HTML/*
+
+ insinto /usr/share/pixmaps
+ doins debian/workman.xpm
+}
+
+pkg_postinst() {
+ einfo
+ einfo "You need to have created /dev/cdrom with read/executable permissions"
+ einfo
+}