Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
americas-army-221 amateur ebuild...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
je_fro
Retired Dev
Retired Dev


Joined: 14 Dec 2002
Posts: 236
Location: Republic of Texas

PostPosted: Tue Dec 14, 2004 10:28 pm    Post subject: americas-army-221 amateur ebuild... Reply with quote

I took the americas-army-21ebuild and changed a couple of things...put it in /usr/local/portage/games-fps/americas-army (after I copied the contents of the real directory in there too...) then I enabled the PORTDIR_OVERLAY in make.conf...
Now I'll see you guys on americas-army-221...SF Hospital. I'm [TA]-je_fro.
Come prepared!
:D

Code:
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/americas-army/americas-army-221.ebuild,v 1.9 2004/11/17 18:55:02 wolf31o2 Exp $

inherit games

MY_P="armyops221-linux.run"
DESCRIPTION="America's Army: Operations - military simulations by the U.S. Army to provide civilians with insights on soldiering"
HOMEPAGE="http://www.americasarmy.com/"
SRC_URI="mirror://3dgamers/pub/3dgamers5/games/${PN/-/}/${MY_P}
   mirror://3dgamers/pub/3dgamers/games/${PN/-/}/${MY_P}"

LICENSE="Army-EULA"
SLOT="0"
KEYWORDS="x86 amd64"
RESTRICT="nostrip nomirror"

IUSE="opengl dedicated"

DEPEND="virtual/libc
   app-arch/unzip"
RDEPEND="virtual/libc
   opengl? ( virtual/opengl )
   amd64? ( app-emulation/emul-linux-x86-xlibs
          app-emulation/emul-linux-x86-nvidia )"

S=${WORKDIR}
dir=${GAMES_PREFIX_OPT}/${PN}
Ddir=${D}/${dir}

pkg_setup() {
   games_pkg_setup
   ewarn "The installed game takes about 1.6GB of space when installed and 2.4GB of space in ${PORTAGE_TMPDIR} to build!"
}

src_unpack() {
   unpack_makeself ${DISTDIR}/${MY_P} || die "unpacking game"
   tar -zxf setupstuff.tar.gz || die
}

src_install() {
   einfo "This will take a while ... go get a pizza or something"

   dodir ${dir}

   tar -jxf armyops221.tar.bz2 -C ${Ddir}/ || die "armyops untar failed"
   tar -jxf binaries.tar.bz2 -C ${Ddir}/ || die "binaries untar failed"

   dodoc README.linux
   insinto ${dir}
   doins ArmyOps.xpm README.linux ArmyOps221_EULA.txt || die "doins failed"
   insinto /usr/share/pixmaps
   doins ArmyOps.xpm || die "doins failed"
   exeinto ${dir}
   doexe bin/armyops || die "doexe failed"

   if use dedicated; then
      exeinto /etc/init.d ; newexe ${FILESDIR}/armyops-ded.rc armyops-ded
      insinto /etc/conf.d ; newins ${FILESDIR}/armyops-ded.conf.d armyops-ded
   fi

   games_make_wrapper armyops ./armyops ${dir}

   prepgamesdirs
   make_desktop_entry armyops "America's Army" ArmyOps.xpm
}

pkg_postinst() {
   games_pkg_postinst
   einfo "To play the game run:"
   einfo " armyops"
   echo
   if use dedicated; then
      einfo "To start a dedicated server, run"
      einfo "   /etc/init.d/armyops-ded start"
      echo
   fi
}


oh yeah...
here's some more info:
Code:
$ ls /usr/local/portage/games-fps/americas-army/
ChangeLog  americas-army-210.ebuild  files
Manifest   americas-army-221.ebuild  metadata.xml

you will also have to do:
Code:
ebuild /usr/local/portage/games-fps/americas-army/americas-army-221.ebuild digest
before you can emerge it...
have fun
_________________
Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect.
--Linus Torvalds

My site with some gentoo config files:
http://je-fro.net/page.html
Back to top
View user's profile Send private message
brenden
l33t
l33t


Joined: 09 Mar 2004
Posts: 710
Location: Calgary, AB

PostPosted: Tue Dec 14, 2004 11:08 pm    Post subject: Reply with quote

has anyone got a torrent?

ps: creepy avatar
Back to top
View user's profile Send private message
brenden
l33t
l33t


Joined: 09 Mar 2004
Posts: 710
Location: Calgary, AB

PostPosted: Tue Dec 14, 2004 11:11 pm    Post subject: Reply with quote

also, it appears there is already and ebuild:

http://cia.navi.cx/stats/project/gentoo/.message/3560674
Back to top
View user's profile Send private message
gehidore
n00b
n00b


Joined: 06 May 2004
Posts: 16
Location: near the pine trees

PostPosted: Wed Dec 15, 2004 7:14 am    Post subject: Reply with quote

Prepare to get owned!

(I'm really running away, je_fro always frags me on hospital :( )

[BroS]_gehidore_
_________________
windows get broken, penguins don't get sucked into jet engines.
--gehidore
Back to top
View user's profile Send private message
ions
Apprentice
Apprentice


Joined: 16 Jul 2003
Posts: 235

PostPosted: Wed Dec 15, 2004 7:16 am    Post subject: Reply with quote

It's also gone stable in portage as of earlier this everning. What timing! ;)
Back to top
View user's profile Send private message
TR34DH34D
n00b
n00b


Joined: 12 Dec 2004
Posts: 10
Location: Belleville, MI

PostPosted: Wed Dec 15, 2004 8:32 am    Post subject: Reply with quote

Am I to understand that all I have to do is...

emerge americas-army

and it will download and install???


Yep...n00b here, and still learning.
Back to top
View user's profile Send private message
je_fro
Retired Dev
Retired Dev


Joined: 14 Dec 2002
Posts: 236
Location: Republic of Texas

PostPosted: Wed Dec 15, 2004 2:22 pm    Post subject: yeah.... Reply with quote

use the official one though...this one was for fiends like me who couldn't go ONE MORE MINUTE without AA.
_________________
Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect.
--Linus Torvalds

My site with some gentoo config files:
http://je-fro.net/page.html
Back to top
View user's profile Send private message
Fitzsimmons
Guru
Guru


Joined: 01 Jan 2003
Posts: 415
Location: Waterloo, Ontario, Canada

PostPosted: Wed Dec 15, 2004 2:22 pm    Post subject: Reply with quote

TR34DH34D wrote:
Am I to understand that all I have to do is...

emerge americas-army

and it will download and install???


Yep...n00b here, and still learning.


Yeah, that's all. Use
Code:
$armyops
on the commandline to launch it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum