Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 76521 Details for
Bug 45001
New Ebuild Request for glGo
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
This is just such an ebuild!
glgo-1.3.1.ebuild (text/plain), 2.55 KB, created by
Paul Miller
on 2006-01-08 06:05:37 UTC
(
hide
)
Description:
This is just such an ebuild!
Filename:
MIME Type:
Creator:
Paul Miller
Created:
2006-01-08 06:05:37 UTC
Size:
2.55 KB
patch
obsolete
># 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, "+<glGo" or die $!; > seek PATCH, $deploc, SEEK_SET or die $!; > > my $buf; > read(PATCH, $buf, $deplen) or die $!; > $buf eq "libexpat.so.1" or die "failed to locate the incorrect depenedancy"; > > seek PATCH, $deploc, SEEK_SET or die $!; > print PATCH "libexpat.so.0" or die $!; > close PATCH; > ' || die "vile hack part2 failed" > > x=`strings glGo | grep libexpat` > if [ -L "/usr/lib/$x" ]; then > einfo "vile hack complete" > else > die "vile hack failed even though it succeeded" > fi >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 45001
: 76521 |
92635
|
92637
|
92639