ChangeLog

# ChangeLog for app-emulation/pearpc
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/pearpc/ChangeLog,v 1.19 2008/06/12 23:16:56 darkside Exp $

12 Jun 2008; Jeremy Olexa pearpc-0.3.1.ebuild:
Remove ~amd64 kw, bug #179952

12 Jun 2008; Jeremy Olexa pearpc-0.4.ebuild:
Make pkg_setup() actually do something. Thanks to f.mensik for the fix in
bug #219004

21 Apr 2008; Christian Heim metadata.xml:
Fix up metadata.xml. If there's no maintainer for the package, the metadata
also needs to contain m-needed@g.o.

22 Jul 2007; David Shakaryan pearpc-0.3.1.ebuild,
pearpc-0.4.ebuild:
Remove virtual/x11 from dependencies.

25 Jan 2007; Marius Mauch pearpc-0.3.1.ebuild,
pearpc-0.4.ebuild:
Replacing einfo with elog

27 Aug 2006; pearpc-0.3.1.ebuild:
actually i just wanted to mark 0.4.0 -amd64

24 Aug 2006; pearpc-0.3.1.ebuild, pearpc-0.4.ebuild:
pearpc doesn't work on amd64; see bug 123461

12 Jul 2006; Stefan Schweizer
+files/pearpc-0.4-configure.patch, pearpc-0.4.ebuild:
ebuild updates thanks to cedk

18 Mar 2006; Joshua Baergen
pearpc-0.3.1.ebuild, pearpc-0.4.ebuild:
Add modular X dependencies.

25 Dec 2005; Diego Pettenò pearpc-0.4.ebuild:
Use bindnow-flags function instead of -Wl,-z,now.

*pearpc-0.4 (22 Dec 2005)

22 Dec 2005; Marcelo Goes +pearpc-0.4.ebuild:
0.4 version bump for bug 116212. Thanks to Jose daLuz com>.

24 Feb 2005; pearpc-0.3.1.ebuild:
append -Wl,-z,now to ldflags, #75660. Cleaned out old versions.

22 Sep 2004; Ian Leitch pearpc-0.3.1.ebuild:
Install ifppc_up/down.setuid. Provide a simple script to create disk images.

*pearpc-0.3.1 (18 Sep 2004)

18 Sep 2004; Jeremy Huddleston +pearpc-0.3.1.ebuild:
Version bump. Added ~amd64.

*pearpc-0.3.0 (16 Aug 2004)

16 Aug 2004; Ian Leitch +pearpc-0.3.0.ebuild:
Version bump. No gtk or qt support at the moment, neither work

19 Jun 2004; David Holm pearpc-0.2.0.ebuild:
Added to ~ppc.

*pearpc-0.2.0 (18 Jun 2004)

18 Jun 2004; Ian Leitch +pearpc-0.2.0.ebuild:
Initial commit, thanks to those in #50624 for their work on the ebuild

Manifest

AUX pearpc-0.4-configure.patch 1156 RMD160 cd24c87547ae8e1c5d607e1fd9519c521959ff55 SHA1 f1d1412dfbc169440ac1d7b20a272295eb910c5b SHA256 e1c70c701305ccbb556f63709e4a8b73e73717451560a40e31c5f9c4b8c07416
DIST createdisk.py 383 RMD160 ea30bd2d2c68754173e59d5423a68cfc738faff5 SHA1 529a7da0d0601be62055a52cc86e9d0d54925ac0 SHA256 59c41b98916df1a6a69cbc1d7e835a5662b8c08551893b22846d4a29accc6f6a
DIST pearpc-0.3.1.tar.bz2 641965 RMD160 2a901d3da7086598e86af2b4bf1b549de7b48a8b SHA1 dd72099397045dfb5b2b74bc8119ca54b7bcfeba SHA256 685c7ccf5f2a029e5e698c8cbb2fde65a60b0d9596e1f25158177e3b92184cec
DIST pearpc-0.4.tar.bz2 687776 RMD160 84c831b3ede69721d0fa48d71a30ee0e7ec512fc SHA1 1cfa4f19f9a1de73c209a38d8fda174c0ebe6ad5 SHA256 30e6fdc1e9b01cdcc263c3082ebf50013d886ea6f31d37b00c1ba8bc0233b182
EBUILD pearpc-0.3.1.ebuild 2655 RMD160 f1b71fd794fd692c43eb488924a9146d49e01993 SHA1 f536b6633cfd235a5b859e80383dca95ac6aca13 SHA256 937d2568b4c2f099866ff39500cd8592391c8a59fef907fd98c19e85ce630086
EBUILD pearpc-0.4.ebuild 2240 RMD160 37381de6e0cb362f7c965ef227b4392757587aa2 SHA1 0755ed7027af4eccd68ad346605ee73bbac08b6f SHA256 fed844bee8f2cef463d415c5918c5808e9a419ed01b5c90105e739260316e286
MISC ChangeLog 2549 RMD160 652a3dcd1df149d81557e3729e142caa97f1bad9 SHA1 bea2b32d57e6f608f699edbc8490d36812755461 SHA256 0b8eeb54de2820002b6f99e5828b7ca55afababbabe4c5df46a7325ac2cdeeb2
MISC metadata.xml 290 RMD160 b9b86283c09349c8827faef7d3ef5f724a248e77 SHA1 ae1c8e62d75c94ff50b8a5391afb6008460963aa SHA256 380e26e9262298b9cb31e863a9ab641f6fbdc8c50bda2cf2e47fd399f9cb5e85

files

metadata.xml




no-herd

maintainer-needed@gentoo.org
Default assignee for orphaned packages

pearpc-0.3.1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/pearpc/pearpc-0.3.1.ebuild,v 1.11 2008/06/12 23:16:56 darkside Exp $

inherit flag-o-matic

IUSE="debug jit sdl"
#IUSE="debug qt gtk jit sdl"

DESCRIPTION="PowerPC Architecture Emulator"
HOMEPAGE="http://pearpc.sourceforge.net/"
SRC_URI="mirror://sourceforge/pearpc/${P}.tar.bz2
http://pearpc.sf.net/createdisk.py"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86"

DEPEND="x86? ( dev-lang/nasm )
x11-libs/libXt"

RDEPEND="media-libs/libmng
media-libs/jpeg
media-libs/libpng
sys-libs/zlib
media-libs/freetype
sdl? ( media-libs/libsdl )"
# gtk? ( >=x11-libs/gtk-2.0 )
# qt? ( >=x11-libs/qt-3.1.1 )"

DEFAULT_TO_X11=0

pkg_setup() {

append-ldflags -Wl,-z,now

# if (use qt && use sdl) || (use qt && use gtk) || (use gtk && sdl) || (use gtk && use qt && use sdl); then
# ewarn
# ewarn "More than one frontend USE flags enabled, defaulting to X11 support."
# ewarn
# DEFAULT_TO_X11=1
# fi
}

src_compile() {
local myconf
myconf="--enable-release"

use jit && myconf="${myconf} --enable-cpu=jitc_x86"

if use debug; then
myconf="${myconf} --enable-debug"
else
myconf="${myconf} --disable-debug"
fi

if [ $DEFAULT_TO_X11 = 1 ]; then
myconf="${myconf} --enable-ui=x11"
else
if use sdl; then
myconf="${myconf} --enable-ui=sdl"
# elif use qt; then
# myconf="${myconf} --enable-ui=qt"
# elif use gtk; then
# myconf="${myconf} --enable-ui=gtk"
else
myconf="${myconf} --enable-ui=x11"
fi
fi

econf ${myconf} || die "econf failed"
emake || die "emake failed"
}

src_install() {
dobin src/ppc
dodoc ChangeLog AUTHORS README TODO

dodir /usr/share/${P}
insinto /usr/share/${P}
doins scripts/ifppc_down scripts/ifppc_up scripts/ifppc_up.setuid scripts/ifppc_down.setuid
doins video.x
fperms u+s /usr/share/${P}/ifppc_up.setuid /usr/share/${P}/ifppc_down.setuid

insinto /usr/share/doc/${P}
sed -i -e "s:video.x:/usr/share/${P}/video.x:g" ppccfg.example
doins ppccfg.example

dodir /usr/share/${P}/scripts
insinto /usr/share/${P}/scripts
doins "${DISTDIR}"/createdisk.py
}

pkg_postinst() {
echo
elog "You will need to update your configuration files to point"
elog "to the new location of video.x, which is now"
elog "/usr/share/${P}/video.x"
echo
elog "To create disk images for PearPC, you can use the Python"
elog "script located at: /usr/share/${P}/scripts/createdisk.py"
elog "Usage: createdisk.py "
echo
elog "Also, be sure to check /usr/share/doc/${P}/ppccfg.example"
elog "for new configuration options."
echo
}

pearpc-0.4.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/pearpc/pearpc-0.4.ebuild,v 1.8 2008/06/12 22:57:15 darkside Exp $

inherit eutils flag-o-matic linux-info linux-mod

DESCRIPTION="PowerPC Architecture Emulator"
HOMEPAGE="http://pearpc.sourceforge.net/"
SRC_URI="mirror://sourceforge/pearpc/${P}.tar.bz2
http://pearpc.sf.net/createdisk.py"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-amd64 ~x86"
IUSE="debug jit X sdl"

DEPEND="virtual/libc
sys-devel/flex
sys-devel/bison
x86? ( dev-lang/nasm )
jit? ( dev-lang/nasm )
X? ( x11-libs/libX11 )
sdl? ( >=media-libs/libsdl-1.2.0 )"
RDEPEND="${DEPEND}
sys-apps/net-tools
net-firewall/iptables
net-misc/bridge-utils"

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/${P}-configure.patch"
}

pkg_setup() {
linux-mod_pkg_setup
if ! linux_chkconfig_present TUN; then
die "You must have TUN/TAP enabled in your kernel."
fi
}

src_compile() {
local myconf

use jit && myconf="${myconf} --enable-cpu=jitc_x86"
if use sdl; then
myconf="${myconf} --enable-ui=sdl"
elif use X; then
myconf="${myconf} --enable-ui=x11"
else
die "You must set at least one of this flags X, sdl"
fi

append-ldflags $(bindnow-flags)

econf \
$(use_enable debug) \
${myconf} \
|| die "econf failed"
emake || die "emake failed"
sed -i -e "s:video.x:/usr/share/${P}/video.x:g" ppccfg.example
}

src_install() {
dobin src/ppc
dodoc ChangeLog AUTHORS README TODO ppccfg.example

insinto /usr/share/${P}
doins scripts/ifppc_{down,up}{,.setuid} video.x "${FILESDIR}"/settings
fperms u+s,a+x /usr/share/${P}/ifppc_{up,down}.setuid

insinto /usr/share/${P}/scripts
doins "${DISTDIR}"/createdisk.py
}

pkg_postinst() {
elog "You will need to update your configuration files to point"
elog "to the new location of video.x, which is now"
elog "/usr/share/${P}/video.x"
elog ""
elog "To create disk images for PearPC, you can use the Python"
elog "script located at: /usr/share/${P}/scripts/createdisk.py"
elog "Usage: createdisk.py "
elog ""
elog "Also, be sure to check /usr/share/doc/${P}/ppccfg.example.gz"
elog "for new configuration options."
}