# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit eutils DESCRIPTION="BeebEm (Acorn BBC B and Master 128 Emulator)" HOMEPAGE="http://beebem-unix.bbcmicro.com/" URL="http://beebem-unix.bbcmicro.com/download/" SRC_URI="${URL}${P}.tar.gz ${URL}${P}_64bit.patch ${URL}${P}-keys.patch ${URL}${P}_menu_crash.patch" LICENSE="GPL-3" SLOT="0" KEYWORDS="~x86 ~sparc" RESTRICT="fetch" IUSE="debug econet" DEPEND="media-libs/libsdl media-libs/sdl-gfx x11-libs/gtk+" RDEPEND="${DEPEND}" pkg_nofetch() { einfo "Due to licence restrictions, we cannot redistribute or fetch the distfiles" einfo "Please visit: ${URL}" einfo "You'll need to download ${SRC_URI} into ${DISTDIR}" einfo "Then restart emerge: 'emerge --resume'" } src_unpack() { unpack ${A} cd "${S}" # patch the sources epatch "${DISTDIR}/${P}_64bit.patch" epatch "${DISTDIR}/${P}-keys.patch" epatch "${DISTDIR}/${P}_menu_crash.patch" } src_compile() { econf $(use_with econet) $(use_with debug) || die "econf failed" emake || die } src_install() { emake \ DESTDIR="${D}" \ datadir="${D}"/usr/share \ install || die make_desktop_entry beebem "BeebEm" ${PN} "Emulators" } pkg_postinst() { elog elog "You will need to obtain ROMs to use with this package. We cannot" elog "legally provide you with them as they are still under copyright." echo }