gentoo ebuild (tested only with amd64)

Feedback and support for the PC version of Osmos
noobsaibot
Posts: 2
Joined: Fri May 14, 2010 10:37 am

gentoo ebuild (tested only with amd64)

Postby noobsaibot » Fri May 14, 2010 10:54 am

hey guys,

here's an ebuild i created to keep everything in portage (and overlay). i only tested it on my box, and it's my very first ebuild.

Code: Select all

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

inherit eutils games

DESCRIPTION="Osmos is a puzzle game with physics-based gameplay, dreamlike
visuals and an ambient soundtrack."
HOMEPAGE="http://www.hemispheregames.com/osmos/"
RESTRICT="fetch"

LICENSE=""
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

DEPEND="x11-base/xorg-server
virtual/opengl
media-libs/openal"
RDEPEND="${DEPEND}"

MY_PN="Osmos"
SRC_URI="${MY_PN}_${PV}.tar.gz"
S=${WORKDIR}/${MY_PN}

pkg_nofetch() {
   echo
   elog "In order to play this game, you have to purchase it from ${HOMEPAGE}.
   After receiving the download link place the downloaded file in ${DISTDIR}."
   echo
}

src_install() {
   local d=${GAMES_PREFIX_OPT}/${MY_PN}

   insinto "${d}"
   doins -r * || die

   # create a symlink to the binary in the games bin directory
   dosym ${d}/${MY_PN} "${GAMES_BINDIR}"/${PN}

   # create an icon in the /usr/share/pixmaps directory
   newicon Icons/32x32.png ${PN}.png

   # create a desktop entry
   make_desktop_entry ${PN} Osmos

   pushd "${D}${d}" >/dev/null
   chmod a+rx ${MY_PN}* || die
   popd >/dev/null

   prepgamesdirs
}

User avatar
Meal Worms
Posts: 624
Joined: Wed Apr 22, 2009 12:22 pm
Location: Toronto, Ontario, Canada
Contact:

Re: gentoo ebuild (tested only with amd64)

Postby Meal Worms » Fri May 21, 2010 7:15 am

Thanks noobsaibot!

Um, please forgive my Linux n00b-ness, but what is an ebuild? :-)

Dave

She0gorath
Posts: 2
Joined: Thu Jun 03, 2010 2:41 am

Re: gentoo ebuild (tested only with amd64)

Postby She0gorath » Thu Jun 03, 2010 2:46 am

@ noobsaibot : Thanks, it'd be usefull

@ Meal Worms : In short, an ebuild is a script in Gentoo used to compile and install software (source or binaries). It contains the instructions to download, build (useflags, options for the ./configure script...), etc... packages.

noobsaibot
Posts: 2
Joined: Fri May 14, 2010 10:37 am

Re: gentoo ebuild (tested only with amd64)

Postby noobsaibot » Thu Jun 03, 2010 10:55 pm

basically what She0gorath said. that way whenever i remove osmos from my system, the package management system will know which additional libraries (e. g. OpenAL) are unused and can be dropped safely.


Return to “Osmos PC (Win/Mac/Linux)”

Who is online

Users browsing this forum: No registered users and 21 guests