# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvs/lportage/games-board/glgo/glgo-1.3.1.ebuild,v 1.30 2006/01/07 14:59:13 jettero Exp $ # vi:filetype=ebuild: DESCRIPTION="PANDA-glGo" HOMEPAGE="http://www.pandanet.co.jp/English/glgo/" # This file should never change, it's just a .keep file... # All the real magic is in the ebuild SRC_URI="http://www.pandanet.co.jp/English/glgo/downloads/glGo-${PV}.rpm" LICENSE="perl" SLOT="0" KEYWORDS="x86" IUSE="" DEPEND="app-arch/rpm2targz dev-lang/perl" RDEPEND=" virtual/libc virtual/x11 media-libs/libsdl media-libs/sdl-sound media-libs/sdl-mixer media-libs/sdl-net media-libs/sdl-image media-libs/sdl-ttf dev-libs/expat " src_unpack() { cd "${WORKDIR}" || die "cd failed" rpm2targz "${DISTDIR}/${A}" || die "rpm2targz failed" } src_install() { cd ${D} || die "cd failed" tar -zxvvf "${WORKDIR}/glGo-${PV}".tar.gz || die "unpack failed" einfo "making correctly located libdir and moving libs into it" mkdir -p usr/games/lib || die "couldn't make usr/games dir in ${D}" mv -v usr/lib/games/glGo/* usr/games/lib || die "couldn't move glGo libs to appropriate location" einfo "cleaning up wrong lib dir mess"; rmdir -v usr/lib/games/glGo/ || die "couldn't remove wrong dir #1 (lib/games/glGo)" rmdir -v usr/lib/games || die "couldn't remove wrong dir #2 (lib/games)" rmdir -v usr/lib/ || die "couldn't remove superfluous libdir" einfo "chowning to :games" chown -R :games usr/games einfo "putting binaries in games/bin" cd usr/games || die "couldn't get into the games dir" mkdir bin || die "coudln't make the bin dir" for f in *; do if [ -f "$f" ]; then mv -v $f bin/ || die "couldn't move $f to games/bin/" fi done einfo "fixing wrong libexpat dependancy with vile hack" cd ${D}/usr/games/bin || die "couldn't get in the right place for the vile hack" perl -e ' use strict; use Fcntl qw(:seek); my $deploc = 0x7833; my $deplen = 13; open PATCH, "+